AbanteCart Community

Shopping Cart Operations => Support => Topic started by: PFreeman008 on May 29, 2020, 12:13:12 PM

Title: Thumbnails do not link to product page
Post by: PFreeman008 on May 29, 2020, 12:13:12 PM
I think this is more of a bug report, but if someone clicks on the thumbnail of something on my store, it takes them to either a blank page or an error 500 page & not the product. Not sure if there is anything I can do to fix it.
Title: Re: Thumbnails do not link to product page
Post by: maxter on May 30, 2020, 09:44:26 PM
How is this a bug? What makes you think that? Most likely you have file permission. Anything in the logs?
Title: Re: Thumbnails do not link to product page
Post by: eCommerce Core on May 31, 2020, 08:20:01 AM
There must be an error in the log file.
Post short extract from the log. Get it right after you get an error.

Here is how you get the error log:
http://forum.abantecart.com/index.php?topic=834.0
Title: Re: Thumbnails do not link to product page
Post by: PFreeman008 on June 02, 2020, 07:14:52 AM
The log says this over and over again for pretty much every image. These are all images and products I've not touched since updating the AbanteCart Cart, so if AbanteCart Cart changed something to break them, its a bug & not something I did.
Quote
2020-06-01 23:34:17 - App Warning: AbanteCart core v.1.2.16 Error: Cannot load image {root removed}/public_html/store/resources/image/18/7d/8.jpg. Unable to create internal image from file {root removed}/public_html/store/resources/image/18/7d/8.jpg. Try to decrease original image size 1024x300px or reduce file size or increase memory limit for PHP. in {root removed}/public_html/store/core/lib/image.php on line 73

The images show up fine, you just can't click on them to take you to the product page.

peter
Title: Re: Thumbnails do not link to product page
Post by: maxter on June 02, 2020, 09:35:28 PM
Looks like one of you images public_html/store/resources/image/18/7d/8.jpg. is very large and PHP can not process it.
Try to increase the memory limit for PHP

To increase PHP memory limit setting, edit your PHP.ini file. Simply increase the value of the PHP memory limit line in php.ini.

Example:
memory_limit = 512M

Alternatively, you can edit your .htaccess file

php_value memory_limit 512M
Title: Re: Thumbnails do not link to product page
Post by: abolabo on June 12, 2020, 03:01:02 AM
Hi.
You have php directive   "memory_limit   1G"  in the php.ini.
Try to replace with 1024M