Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Error when inputting 'Specials'


Recommended Posts

Hi when i have inputted items into 'Specials' in admin i get the follwing error on the website page



Warning: getimagesize(images/http://www.atssitecentre.co.uk/images/products/37000/5006037949f.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/petcorne/public_html/includes/modules/boxes/az/az_specials_flow.php on line 5


Warning: Division by zero in /home/petcorne/public_html/includes/modules/boxes/az/az_specials_flow.php on line 11



The coding for az_specials_flow.php is




function imageRestrict_s($image) {

$maxwidth = 69;

$maxheight = 69;

list($width,$height) = getimagesize($image);

if ($width > $height) {

$newheight = round($maxwidth/$width * $height);

return '<img src="'.$image.'" width="'.$maxwidth.'" height="'.$newheight.'" alt="" />';


else {

$newwidth = round($maxheight/$height * $width);

if ($newwidth > $maxwidth) {

return '<img src="'.$image.'" width="'.$maxwidth.'" alt="" />';


return '<span class="space_1"><img src="'.$image.'" width="'.$newwidth.'" height="'.$maxheight.'" alt="" /></span>';






Can Anyone spot the error....???


Any help would be appreciated..



Link to comment
Share on other sites


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

  • Create New...