Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.