Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error Message on product listing page


blr044

Recommended Posts

Posted

I get an warning error message whenever I click one of the category titles. I have checked html_output.php, categories.php for a possible reason why this is happening. I am running RC2a. The message I receive is this:

 

Warning: imagejpeg() [function.imagejpeg]: Unable to open '/XXXX/XXXXX/public_html//-100x100.jpgs/12033-100x100.jpg' for writing: No such file or directory in /XXXX/XXXXX/public_html/includes/functions/html_output.php on line 208

 

 

When I refer to /public_html/includes/functions/html_output.php on line 208, this is waht I see. About half way down, line 208 is in bold text:

 

// Check image format. Only process JPG or PNG. GIF not supported by PHP.

// The results with gifs were no good anyway

// We set the memory limit very high so that the script can handle big images.

// The image resize only needs to be done once anyway.

ini_set("memory_limit","64M");

$newName = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'thumbs/', $newName);

switch ( $size[2] )

{

case 2: // JPG

$sourceImg = ImageCreateFromJPEG (DIR_FS_CATALOG . '/' . $src);

if (function_exists('ImageCopyResampled'))

ImageCopyResampled($destImg, $sourceImg, $xpos, $ypos, 0, 0, $newwidth, $newheight, $size[0], $size[1]);

else

ImageCopyResized($destImg, $sourceImg, $xpos, $ypos, 0, 0, $newwidth, $newheight, $size[0], $size[1]);

imagejpeg($destImg, DIR_FS_CATALOG . '/' . $newName, 90);

$src = $newName; // Use the resampled image

$width = $height = ""; // and it's own properties

break;

case 3: // PNG

$sourceImg = ImageCreateFromPNG (DIR_FS_CATALOG . '/' . $src);

if (function_exists('ImageCopyResampled'))

ImageCopyResampled($destImg, $sourceImg, $xpos, $ypos, 0, 0, $newwidth, $newheight, $size[0], $size[1]);

else

ImageCopyResized($destImg, $sourceImg, $xpos, $ypos, 0, 0, $newwidth, $newheight, $size[0], $size[1]);

imagejpeg($destImg, DIR_FS_CATALOG . '/' . $newName, 90);

$src = $newName;

$width = $height = "";

break;

}

if($supressOutput == true){

return $newName;

} else {

return tep_default_image($src, $alt, $width, $height, $parameters);

}

}

 

function tep_default_image($src, $alt = '', $width = '', $height = '', $parameters = '') {

if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {

return false;

}

 

So am hoping someone can give me a clue where else to look or might have an idea what is causing this warning. I do have a THumbs in the root directory. Am also loking at modules in which i have installed that might refer to this.

 

You may view warning at this Link.

Thanks.

 

Bennett

Posted

I get an warning error message whenever I click one of the category titles. I have checked html_output.php, categories.php for a possible reason why this is happening. I am running RC2a. The message I receive is this:

 

Warning: imagejpeg() [function.imagejpeg]: Unable to open '/XXXX/XXXXX/public_html//-100x100.jpgs/12033-100x100.jpg' for writing: No such file or directory in /XXXX/XXXXX/public_html/includes/functions/html_output.php on line 208

 

Did solve problem. Once i changed images settings in configuration -> images all is fine now. Not sure if that was the correct producure, but it works.

Archived

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

×
×
  • Create New...