Jump to content

PlainCart Help - imagejpeg function


phildiggle

Recommended Posts

Hi Guys,

 

Just signed up to the forum, but have addiquate experience in PHP coding. However, this one's throwing me.

 

Just downloaded PlainCart from phpwebcommerce.com (topic has been posted on here a couple of times)

 

Had a couple of problems but managed to iron them out - however, one has been persistant. This is that when I create a category through the Admin pages I get an error thrown out of:

 

Warning: imagejpeg(): Unable to open '/www/shoptrial/images/category/df3b73b51a50b6b4259a18b1bd843b2e.jpg' for writing in /vhost/vhost7/p/h/i/phildiggle.co.uk/www/shoptrial/admin/library/functions.php on line 254

 

Warning: Cannot modify header information - headers already sent by (output started at /vhost/vhost7/p/h/i/phildiggle.co.uk/www/shoptrial/admin/library/functions.php:254) in /vhost/vhost7/p/h/i/phildiggle.co.uk/www/shoptrial/admin/category/processCategory.php on line 50

 

Now, I've sorted out the WEB_HOST and SRV_HOST problems that first occured, so I know directories are fine. The images folder has been set to 777 as have the sub folders Catergory and Product. Still no luck though.

 

Offending lines are:

 

switch($size[2])
    {
       case 1:
       case 2:
           imagejpeg($dest,$destFile,$quality);   // Line 254
           break;
       case 3:
           imagepng($dest,$destFile);
    }

 

I've checked with phpinfo(); that GD support is fully enabled for all image types, and is version 2.0.28.

 

Any pointers would be greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/154321-plaincart-help-imagejpeg-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.