Upgrade instructions from Bakery older 1.70

mgeene

YES it works!!!!!

WOW thanks a lot Christoph!

freeSbee

Hi mgeene

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

Regards Christoph

mgeene


freeSbee

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.
error_reporting(E_ALL);

Regards Christoph

mgeene

Hi Christoph,

Thanks for your reply, but i dont get a error log.
When i upload the file _sync_img_helper.php 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_attrXX_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

Hi mgeene

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

Regards Christoph

mgeene

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?

Gast

hi christoph and thanks for the fast solution  (Y)

everythings works fine!

freeSbee

#2
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

Gast

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