Guest estelle Posted November 15, 2005 Share Posted November 15, 2005 Hey everyone, I'm still not quite sure what is causing this, but I'm going to have to assume that CubeCart is at fault because its just too weird otherwise. Thumbnails keep disappearing, as in - the file is being deleted. I'm not yet quite sure why or when, but i'm guessing that it happens when I edit the product (since I know CubeCart tries to regenerate the thumbnails). I currently have GD enabled (version 2). I'm running CubeCart 3.0.6 Two other users, smallbang and suss, have both reported the exact same problem. (Another thread here) To be honest it looks like a new bug in CubeCart 3.0.6 Sir Will, are you going to save us this time? Estelle. Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 15, 2005 Share Posted November 15, 2005 Come to think of it, perhaps its an incompatability with a newer version of PHP? I know my webhost provider did something to PHP recently (i'm assuming they upgraded it), because I initially got some GD library error messages, but they've since gone away. This is the only interesting stuff i can see in Server Info: PHP Version 4.3.11 GD Version bundled (2.0.28 compatible) Quote Link to comment Share on other sites More sharing options...
Guest nightmare Posted November 16, 2005 Share Posted November 16, 2005 got answer from my webhost... they say they change back to old php 4... and ask me to see if it helps... not very much of help thou I suppose /Susanne Quote Link to comment Share on other sites More sharing options...
markscarts Posted November 16, 2005 Share Posted November 16, 2005 To be honest it looks like a new bug in CubeCart 3.0.6 Actually, this happened to me twice before upgrading to 3.0.6 . . . while running 3.0.5 I thought it strange but never mentioned it here. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 16, 2005 Share Posted November 16, 2005 Just noticed this on mine 2 couple of products had thumbnails deleted using v3.0.5 never saw it before i upload to froogle very strange :errm: Quote Link to comment Share on other sites More sharing options...
Guest idara Posted November 16, 2005 Share Posted November 16, 2005 Hi I tried editing my products, Thumbnails working fine. CC v3.0.6 PHP Version 4.4.0 GD Version bundled (2.0.28 compatible) Yunus Quote Link to comment Share on other sites More sharing options...
Guest jodi Posted November 16, 2005 Share Posted November 16, 2005 My thumbnails are being deleted as well, I'm running 3.0.5 (didn't even attempt .6) and my host just upgraded PHP. edited to add... Not sure if this helps, but this is the email sent by my host before the PHP upgrade... MAINTENANCE ACTION: ---------------------------- Please be advised that with the change from the 4.3.x versions of PHP to the 4.4.x versions, a bug was fixed that affects how references are handled. This may in some rare cases cause warnings to appear in PHP pages where there were none previously. More information on this topic is available at the official PHP web site here. Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 16, 2005 Share Posted November 16, 2005 Okay, it seems to be due to a change to the way the way the imageJPEG() function operates. I'm looking into finding a fix... Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 16, 2005 Share Posted November 16, 2005 Okay, I can't replicate this bug because I think my webhost company must have recently reverted to this version of PHP (4.3.11), but I'm guessing they had previously tried upgraded to PHP 4.4.1 which appears to be the problematic version. So can someone who can replicate the problem please test the following code change... Edit classes/gd.inc.php Find this line: function save($save="") Now scroll down 14 lines and find this line: if ($config['gdversion']>0) { Insert these lines *below* it: // Estelle - fix for imageJPEG() problems in PHP 4.4.1 touch($save); Estelle. Quote Link to comment Share on other sites More sharing options...
convict Posted November 16, 2005 Share Posted November 16, 2005 Ask host to patch PHP 4.4.1. In safe mode there is a bug in gd.c :errm: Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 16, 2005 Share Posted November 16, 2005 Yep, convict is right, but it doesn't matter whether you're running in safe mode or not (most people aren't). There's more info about it here. Quote Link to comment Share on other sites More sharing options...
convict Posted November 16, 2005 Share Posted November 16, 2005 ...it doesn't matter whether you're running in safe mode or not ... Really? (PG(safe_mode) && !php_checkuid(fn, "rb+", CHECKUID_CHECK_FILE_AND_DIR))) BTW stable hosting company is ALWAYS providing PHP in safe mode only. They know for what. @estelle may i guess? You are using PHP in safe mode too...but id doesnt matter who is right and who is not :errm: Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 16, 2005 Share Posted November 16, 2005 I can confirm that I am not running safe_mode now, nor was I running it a few weeks back or anytime earlier than that. But I guess my webhost company must have switched safe_mode on at the same time as they tried to upgrade to 4.4.1.... I'm happy to admit when i'm wrong, but i always harbor a grudge towards the person who pointed it out :errm: Quote Link to comment Share on other sites More sharing options...
convict Posted November 16, 2005 Share Posted November 16, 2005 women must be always right :errm: Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 16, 2005 Share Posted November 16, 2005 women must be always right LOL... whatever. I did point out twice that you were right, in this thread alone... :errm: Quote Link to comment Share on other sites More sharing options...
convict Posted November 16, 2005 Share Posted November 16, 2005 MEAN NO HARM dont take it big, please estelle :errm: Quote Link to comment Share on other sites More sharing options...
Guest jodi Posted November 17, 2005 Share Posted November 17, 2005 I was going to test it out that fix tonight, but appearantly my host has fixed the problem... Quote Link to comment Share on other sites More sharing options...
Guest sunshine Posted November 17, 2005 Share Posted November 17, 2005 Yep, that was one of the issues I had. Can't verify PHP4.4 was the reason, but the day my, 'then' host upgraded to that are when I got new problems. Quote Link to comment Share on other sites More sharing options...
Guest designsolutions Posted December 19, 2005 Share Posted December 19, 2005 ;) it Works! Thanks Estelle, our images are back! Quote Link to comment Share on other sites More sharing options...
Guest Bindi Posted February 4, 2006 Share Posted February 4, 2006 estelle, would this fix work on version 2.6 of cubecart - i `have someone who won't upgrade and with php 4.4 i have a issue creating thumbnails. If so which files get upgraded as ver2 does not have the gd.inc file mentioned thanks ian Quote Link to comment Share on other sites More sharing options...
markscarts Posted February 13, 2006 Share Posted February 13, 2006 JMHO!!! for people reading this thread - while Estelle's fix may be a good workaround, note that there is nothing wrong with the CubeCartâ„¢ code here - the problem is a bug in PHP 4.4.1 Rather than patching CubeCartâ„¢ files, I would suggest you contact your webhost, and ask them to apply the patch to 4.4.1 and THIS WILL FIX THE PROBLEM FOR EVERYONE ON THEIR SERVER. If you have a really good host, you do not have this problem - because they would be aware of this bug, and their PHP version will already be patched. Just send this link to your webhost, explain the problem you're having with GD on your ecommerce site, and ask them to patch the PHP 4.4.1 files. http://bugs.php.net/bug.php?id=35071 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.