WebsiteBaker Support (2.8.x) > Bakery Shop
Upgrading to Bakery 1.7+ : Product images disappear
svsanchez:
Hello, I just tried upgrading from bakery 1.6 to 1.78. The problem is after the product images disappeared.
I tried following the instructions that appeared during the upgrade:
In order to set the image settings you have to open each item in the Bakery backend:
The database will then be synced automatically with the item images currently saved in the /media/bakery/ directory.
Please enter your image data.
If you set a title and no alt attribute, the title will be copied and used for the alt attribute as well.
The alt attribute is mandatory.
The image at the top position (position 1) will be used as 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 attribut 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.
For what I understand with the above instructions all I had to do was open each item so it's image would then appear and the DB would be synced. However, when I open any item no image is displayed and nothing is synced. The Product Images section for each image says "None Found". It's like Bakery is asking me to upload each image once again (I can't even chose the image from the uploaded images).
Could someone please tell me what I'm doing wrong?
Thank you!!!
freeSbee:
* Make sure the images are really existing at /media/[bakery]/images/ ([bakery] could be renamed)
* If false, restore the bakery images directory using your backup.
* If true, use the _sync_img_helper.php to do the rest.
svsanchez:
Hello freeSbee, thanks a lot for your reply. I followed your instructions:
1. Images do exist at /media/[bakery]/images/item[n]
2. I uploaded the _sync_imag_helper.p hp file to the /modules/bakery folder and executed it, but:
- There was no log printed to the screen
- The only thing that appeared on the screen were the instructions from point 8 (In order to complete the image settings go to the Bakery backend and enter your image data like title and alt attributes or order the images using the up- and down-arrows...)
3. I checked the site, and there are still no images showing for the products
4. Images still not appearing on the Bakery backend, but I if I go to Media via the backend I can see them all.
In case it helps, this is the URL of one of the problematic site's catalog pages:
http://issgt.com/pages/catalogo/parqueos.php
Thanks again!!!
freeSbee:
There must be a php error.
Please enable the php error reporting or check the php error log.
Run the helper script again and report.
svsanchez:
Hi freeSbee, I enabled PHP reporting and still nothing is shown with the sync script:
http://issgt.com/modules/bakery/_sync_img_helper.php
There are 2 droplet errors on the site though but I don't think they have anything to do with the missing images:
Notice: Undefined variable: section_id in /home/issguate/public_html/modules/droplets/droplets.php(37) : eval()'d code on line 7
Notice: Undefined variable: ioldSectionId in /home/issguate/public_html/modules/droplets/droplets.php(37) : eval()'d code on line 12
ALSO NOTE: I had the lastitems module installed on the homepage, and I got this error which maybe can bring some light into what is happening:
Fatal error: Call to a member function fetchRow() on a non-object in /home/issguate/public_html/modules/lastitems/include.php on line 121
Navigation
[0] Message Index
[#] Next page
Go to full version