WebsiteBaker Support (2.8.x) > Bakery Shop
PHP Warning: getimagesize(…) view_cart.php on line 86
(1/1)
scratch:
Having problems with a slow loading basket in Bakery..
The server log states the following error:
PHP Warning: getimagesize(…) view_cart.php on line 86
Can anyone help?
Many thanks
freeSbee:
Hi Scratch
The function getimagesize() does only work with urls if your server configuration (php.ini) has set the option allow_url_fopen = 1:
http://php.net/manual/de/function.getimagesize.php
Ask your hosting provider to do so.
Alternatively you can modify the Bakery file view_cart.php on line 83:
--- Code: ---$items[$i]['thumb_url'] = WB_URL.MEDIA_DIRECTORY.$thumb_dir.$items[$i]['main_image'];
--- End code ---
Change it to
--- Code: ---$items[$i]['thumb_url'] = WB_PATH.MEDIA_DIRECTORY.$thumb_dir.$items[$i]['main_image'];
--- End code ---
Regards Christoph
scratch:
Many thanks!
I changed the view_cart file and it's working great now!
Much appreciated!
J
freeSbee:
There is a new Version of Bakery available that fixes the bug:
https://forum.WebsiteBaker.org/index.php/topic,18439.msg152782.html#msg152782
Regards Christoph
Navigation
[0] Message Index
Go to full version