Jump to content

Can't edit stock levels


Guest autumnmoon

Recommended Posts

Guest autumnmoon

cube cart was working fine until today. When i went to edit stock levels i got this error:

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/autumnmo/public_html/store/classes/gd.inc.php on line 48img

here is the string i think it refers to

img["format"]=ereg_replace(".*\.(.*)$","\\1",$imgfile);

$this->img["format"]=strtoupper($this->img["format"]);

if($config['gdversion']>0)

{

if ($this->img["format"]=="JPG" || $this->img["format"]=="JPEG")

{

//JPEG

$this->img["format"]="JPEG";

$this->img["src"] = imagecreatefromjpeg($imgfile);

ive not changed anything so am at a loss as whats happened, anyone know what i need to do to get it working again.

I have removed the product image which will then enable me to edit the stock level, but when I add the image back to the product I get the same error!

This is doing my head in and also costing me business as I can't show new items in stock!

Please note I am not technically minded at all - so in giving a response could you please make it a 'for dummies' answer with step by step instructions. Thanks a lot.

Link to comment
Share on other sites

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.   Paste as plain text instead

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