Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Error log image issues  (Read 501 times)

Offline perplexed

  • Newbie
  • *
  • Posts: 15
  • Karma: +2/-0
    • View Profile
Error log image issues
« on: June 29, 2025, 09:19:32 PM »
This is a fresh install of 1.4.2 and receiving multiple errors about webp images....we are not installing webp images....why are we getting this error messages?
We just lost our 1.4.1 version due to a corrupt database and restore did not work either....this is scary...

2025-06-29 23:36:36 - App Warning: AbanteCart core v.1.4.2 Error: Cannot load image /home/copperkf/garlicstore.copperkfarm.com/resources/image/18/71/2.webp. Unable to create internal image from file /home/copperkf/garlicstore.copperkfarm.com/resources/image/18/71/2.webp. Try to decrease original image size 866x203px or reduce file size or increase memory limit for PHP. in /home/copperkf/garlicstore.copperkfarm.com/core/lib/image.php on line 72

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6157
  • Karma: +285/-2
    • View Profile
Re: Error log image issues
« Reply #1 on: June 30, 2025, 01:08:37 AM »
Hello.
The image error you’re seeing is most likely related to the PHP GD library on your server. Specifically, older versions of GD don’t support WebP format, which can trigger those types of errors even if you’re not directly uploading WebP images yourself—AbanteCart or the browser might be trying to serve them automatically if supported.
The good news is that this is usually an easy fix. I recommend contacting your hosting provider and asking them to make sure the server has an up-to-date version of PHP with full GD and WebP support enabled.

When you say the database was “corrupt,” could you clarify what exactly made you think that? Were there specific errors or behaviors? Often, a proper backup restore should resolve most issues unless the backup itself was incomplete or taken while the database was in an unstable state. If you have any logs or symptoms you noticed before the crash, it might help narrow down the root cause.

Offline perplexed

  • Newbie
  • *
  • Posts: 15
  • Karma: +2/-0
    • View Profile
Re: Error log image issues
« Reply #2 on: June 30, 2025, 10:51:58 PM »
Thank you for taking the time to respond and helping out. I will forward your information to our web-hosting IT staff and see if we can get this corrected. I thought for sure I had a screen shot of the errors, but was unable to find them. Anyways that's water over the damn now as we upgraded to 1.4.2 (fresh install) and now adding content into it. BYT Abantecart has really nice front end, and hopefully will get all our products in for the upcoming market season. Again Thank You for your time....

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6157
  • Karma: +285/-2
    • View Profile
Re: Error log image issues
« Reply #3 on: July 01, 2025, 02:04:20 AM »
Thank you for the kind words, glad to hear you’re enjoying AbanteCart’s front end! We appreciate your feedback and are happy to know the upgrade to 1.4.2 went smoothly.

In the meantime, while your hosting support looks into resolving the issue with WebP image handling, feel free to safely use standard image formats like JPG or PNG. These formats are fully supported and should work without any issues as you continue adding content.

Offline perplexed

  • Newbie
  • *
  • Posts: 15
  • Karma: +2/-0
    • View Profile
Re: Error log image issues
« Reply #4 on: July 02, 2025, 11:41:44 AM »
Ok, I received this message from the IT team at our webhosting site. Not sure if backing down to PHP 8.3 would help, any comments would be appreciated. Thank You!"
"Hello there,

Thank you for reaching out to us and for trusting and using our services.

After checking, the GD library version installed on your cPanel hosting is 2.3.3, which is the most stable version currently supported by cPanel. You can also check the version by accessing the following  , this page will display the GD library version currently in use on your hosting.
In terms of compatibility, this version is supported on PHP versions 7.4.x through 8.3.x.

Since you are currently using PHP version 8.4, we recommend switching to PHP version 8.3 using the PHP Selector in your cPanel, as it may offer better compatibility with the GD library.

And perhaps , could you also kindly elaborate in more detail on how the error appears, especially if it's related to the WebP cannot loades issue. That way, we can investigate further from our side.


Regards,

Okbar Gumelar
Hosting.com Support Team"

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6157
  • Karma: +285/-2
    • View Profile
Re: Error log image issues
« Reply #5 on: Today at 04:07:13 AM »
Hello.
You’re safe to downgrade to PHP 8.3, or even 8.2. The demo data includes WebP images, so it’s likely that some demo products are triggering the image resize function on the storefront, which utilizes the GD library. Are you experiencing any issues with PNG or JPG images?

Offline perplexed

  • Newbie
  • *
  • Posts: 15
  • Karma: +2/-0
    • View Profile
Re: Error log image issues
« Reply #6 on: Today at 01:17:53 PM »
No, we do not have any issues with jpg or png files. It seems the hosting site IT team made some changes that seem to help considerably. Here below is there response:
"We’ve reviewed the issue reported on your website and found that it was likely related to PHP’s memory limit settings not properly reflecting on the site.

To address this, we have created a .user.ini file within the root directory of your site and increased the PHP memory_limit to 2048M (2GB). This change ensures that your application has access to more memory, which can help prevent memory-related errors during operation.

At this time, no further errors are appearing in the logs, but we recommend that you test the site and let us know if you experience the same issue again. We appreciate the productive communication with the AbanteCart IT team during this process."

 

Powered by SMFPacks Social Login Mod