Author Topic: Upgrade instructions from Bakery older 1.70  (Read 2561 times)

Offline Gast

  • Posts: 5920
Upgrade instructions from Bakery older 1.70
« on: October 17, 2015, 12:16:34 PM »
We make a Upgrade from a older Bakery Version 1.59 directly to a 1.73 in the last week and have some problems, to add the old pictures into the new image-database.  the code for that is missing in bakery 1.73 and 1.74.
No problem, if you know, that you have to upgrade to a Vers. 1.70 or 1.71 first, if you start with a older Version, but i didnt found any instructions about this

is it possible, to make a little notice about this step in the upgrade instructions here

freeSbee

  • Guest
Re: Upgrade instructions from Bakery older 1.70
« Reply #1 on: October 17, 2015, 10:44:36 PM »
Hallo Uwe

ENGLISH

This little helper script scans the Bakery image directory and adds all item images to the database, as long as they are not yet saved. In other words it synchronizes the database with the Bakery image directory.

  • I strongly recommend that you test the script locally, before running it on  a productive site!
  • It is always a good idea to backup your current WB installation before running this script.
  • The use of this helper script is at your own risk!

1. Download _sync_img_helper.php.zip.
2. Unzip _sync_img_helper.php.zip.
3. Upload _sync_img_helper.php via FTP into the "bakery" module directory.
4. Call the script in your browser (replace "example" by your domain): http://www.example.com/modules/bakery/_sync_img_helper.php
5. Depending on the number of images it may take a moment until the job is done.
6. The script prints a log that should be saved for later use. Please post errors in this thread.
7. Delete the helper script from your webspace.


DEUTSCH

Hier ein kleines Helper-Skript, welches alle Bakery-Bilder, die im Bilderverzeichnis von Bakery abgelegt sind, in der Datenbank ergänzt, sofern sie noch nicht vorhanden sind. Mit anderen Worten: Es synchronisiert die Datenbank mit dem Bakery Bilderverzeichnis.

  • Ich empfehle dringend, das Skript lokal zu testen, bevor es im produktiven Shop zur Anwendung kommt!
  • Zudem ist ein Backup immer eine gute Idee.
  • Die Verwendung des Skripts erfolgt auf eigenes Risiko!

1. _sync_img_helper.php.zip herunterladen.
2. _sync_img_helper.php.zip entpacken.
3. _sync_img_helper.php per FTP ins Modulverzeichnis "bakery" laden.
4. Im Browser das Skript aufrufen unter: http://www.example.com/modules/bakery/_sync_img_helper.php
5. Je nach Anzahl Bilder kann es einen Moment dauern, bis der Job abgearbeitet ist.
6. Das Skript gibt Rückmeldungen, die bei Fehlern kopiert und in diesem Thread gepostet werden können.
7. Das Skript am Schluss löschen.

Gruss Christoph
« Last Edit: October 18, 2015, 08:22:25 PM by freeSbee »

Offline Gast

  • Posts: 5920
Re: Upgrade instructions from Bakery older 1.70
« Reply #2 on: October 18, 2015, 03:26:19 PM »
hi christoph and thanks for the fast solution  (Y)

everythings works fine!

Offline mgeene

  • Posts: 148
Re: Upgrade instructions from Bakery older 1.70
« Reply #3 on: January 18, 2016, 12:47:46 PM »
Hello,

I did not work for me, ik had 1.6.0. and upgrade to 1.7.6 do you have a solution to sync the images?

freeSbee

  • Guest
Re: Upgrade instructions from Bakery older 1.70
« Reply #4 on: January 18, 2016, 02:03:01 PM »
Hi mgeene

What did the error log tell you after you have run the helper script _sync_img_helper.ph p ?
Hope you saved a copy as the instructions at step 6 have told to do!

Regards Christoph

Offline mgeene

  • Posts: 148
Re: Upgrade instructions from Bakery older 1.70
« Reply #5 on: January 18, 2016, 02:08:35 PM »
Hi Christoph,

Thanks for your reply, but i dont get a error log.
When i upload the file _sync_img_helper.ph p in the bakery folder and ik go to the browser and run the script i anly see the text :

"In order to complete the image settings go to the Bakery backend and edit the newly added items:

    Please enter your image data like title and alt attributes and order the images using the up- and down-arrows.
    The alt attribute is mandatory.
    If you set a title and no alt attribute, the title will be used as alt attribute as well.
    The image at the top position (position 1) will be used as the main image.
    If you enter a image caption, the image will be wrapped in a <div> container and the image will be followed after a <br> by your caption.
    The item attribute generates a unique id like mod_bakery_img_attr XX_f where the XX stands for the image attribute id. This can be used for any JavaScript actions depending on the selected option attribute. Eg. change main image depending on selected item option.
    Not used images can be deactivated or deleted in the backend."

And nothing else.

freeSbee

  • Guest
Re: Upgrade instructions from Bakery older 1.70
« Reply #6 on: January 18, 2016, 02:28:25 PM »
Hi mgeene

You only got the pure HTML-part of the script. It looks like the PHP was not executed or stopped …
Please set the php error reporting to E_ALL and run the script again.
Code: [Select]
error_reporting(E_ALL);
Regards Christoph

Offline mgeene

  • Posts: 148
Re: Upgrade instructions from Bakery older 1.70
« Reply #7 on: January 18, 2016, 02:51:53 PM »
Is this with a .htaccess file?

freeSbee

  • Guest
Re: Upgrade instructions from Bakery older 1.70
« Reply #8 on: January 18, 2016, 02:58:20 PM »
Hi mgeene

Paste the code into the _sync_img_helper.ph p file right after the opening php tag.

Regards Christoph

Offline mgeene

  • Posts: 148
Re: Upgrade instructions from Bakery older 1.70
« Reply #9 on: January 18, 2016, 03:03:58 PM »
YES it works!!!!!

WOW thanks a lot Christoph!

 

postern-length