jvbh Posted June 19, 2020 Share Posted June 19, 2020 Hi there — my client is having an issue with his store (www.heyday-mo.com); here's his description of what happened: Quote I was working on the site adding products, and all was fine until suddenly I couldn't upload images. I checked the file manager and clicked on images, but it's now a blank page. Seems like a link of some kind has broken. I've tried clearing the cache, but still nothing comes up. The images are all still present in the catalogue, except for the product where things stopped working. I looked in the error log and it looks like something has happened with the PHP. I definitely think it's something to do with the uploaded image. The image was ticked to say it had uploaded, but then nothing happened and the list of images in file manager disappeared. The image was apparently just a jpeg, so I don't see how that could have caused such an issue... products can still be added, but the images don't display. Any ideas? The site is using 6.2.9; the Cubecart install was up to date at the tine of the issue and has not been updated since. Link to comment Share on other sites More sharing options...
bsmither Posted June 19, 2020 Share Posted June 19, 2020 The error_log may still offer a clue as to why, in admin, Images, the "Image Filemanager" is not showing a list of image filenames - any image filenames. Link to comment Share on other sites More sharing options...
jvbh Posted June 24, 2020 Author Share Posted June 24, 2020 All I'm seeing in the error log is [Exception] /home1/heydaymo/public_html/catalog/classes/gd.class.php:118 - Call to undefined function imagecreatefromwebp() Does that help? Link to comment Share on other sites More sharing options...
bsmither Posted June 24, 2020 Share Posted June 24, 2020 That's a known issue: https://github.com/cubecart/v6/issues/2431 https://github.com/cubecart/v6/issues/2443 Until your hosting provider changes your hosting environment to include WEBP images, this edit will remove the statements causing this error. The downside is that you must not use 'webp' type images. In /classes/gd.class.php, lines 118 and 205: From: $this->_gdImageSource = imagecreatefromwebp($file); To: // $this->_gdImageSource = imagecreatefromwebp($file); From: $this->_gdImageSource = imagewebp($im, $file, $this->_gdJpegQuality); To: // $this->_gdImageSource = imagewebp($im, $file, $this->_gdJpegQuality); Link to comment Share on other sites More sharing options...
jvbh Posted June 24, 2020 Author Share Posted June 24, 2020 Ah, so it was the file type! What is the best way to fix it? Will deleting the product listing be sufficient to take care of the issue? (Update — I deleted the problem item, but the image problem remains; images still don't appear after uploading) Link to comment Share on other sites More sharing options...
bsmither Posted June 24, 2020 Share Posted June 24, 2020 Any new entries in the error_log? Link to comment Share on other sites More sharing options...
jvbh Posted June 24, 2020 Author Share Posted June 24, 2020 Yes, same error — I just uploaded an image and got 3 more instances of the same error in the log. Link to comment Share on other sites More sharing options...
bsmither Posted June 25, 2020 Share Posted June 25, 2020 Make sure the edits above (the first edit is for line 118 and the second edit is for line 205) are still in place. Link to comment Share on other sites More sharing options...
havenswift-hosting Posted June 29, 2020 Share Posted June 29, 2020 On 6/24/2020 at 6:19 PM, bsmither said: Until your hosting provider changes your hosting environment to include WEBP images This or move to a hosting provider that supports Webp image types ! Give us a shout if you are interested in moving over to us ! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.