Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images don't display after server move


dowser

Recommended Posts

Hi!

 

I've moved my website to a new server - everything looked ok, but when I checked the store section - the pictures are not displaying!

The logo is there, but not other pictures, like specials, new, also in product descriptions - no pictures!

 

When I check the page source - there is:

<img src="image.php?src=images/xxx.jpg&width=248&height=110"

 

When I click on that - I get:

 

<br />

<b>Warning</b>: exif_imagetype() [<a href=function.exif-imagetype'>function.exif-imagetype</a>]: Filename

cannot be empty in <b>/home/xxxxx/public_html/store/image.php</b> on line <b>12</b><br />

<br />

<b>Fatal error</b>: Call to undefined function tep_not_null() in <b>/home/xxxxx/public_html/store/image.php

</b> on line <b>21</b><br />

 

Line 9-22 are:

 

$srcsize = getimagesize($_GET['src']);

$dest_x = ($_GET['height']);

$dest_y = ($_GET['width']);

$img_type = exif_imagetype($src);

 

if ($img_type == IMAGETYPE_JPEG) { $src_img = imagecreatefromjpeg($_GET['src']); } // Resize JPG images

if ($img_type == IMAGETYPE_PNG) { $src_img = imagecreatefrompng($_GET['src']); } // Resize PNG images

if ($img_type == IMAGETYPE_GIF) { $src_img = imagecreatefromgif($_GET['src']); } // Resize Gif images

if ($img_type == IMAGETYPE_WBMP ) { $src_img = imagecreatefromwbmp($_GET['src']); } // Resize BMP images

 

$dst_img = imagecreatetruecolor($dest_y, $dest_x);

 

if (empty($width) && tep_not_null($height)) {

$ratio = $height / $srcsize[1];

 

I've checked with the server guys and the GD library is enabled (by default) on my account. Is there a call to it with a specific path?

Sorry, I'm completely green where php is concerned

Link to comment
Share on other sites

Hi!

 

I've moved my website to a new server - everything looked ok, but when I checked the store section - the pictures are not displaying!

The logo is there, but not other pictures, like specials, new, also in product descriptions - no pictures!

 

When I check the page source - there is:

<img src="image.php?src=images/xxx.jpg&width=248&height=110"

 

When I click on that - I get:

 

<br />

<b>Warning</b>: exif_imagetype() [<a href=function.exif-imagetype'>function.exif-imagetype</a>]: Filename

cannot be empty in <b>/home/xxxxx/public_html/store/image.php</b> on line <b>12</b><br />

<br />

<b>Fatal error</b>: Call to undefined function tep_not_null() in <b>/home/xxxxx/public_html/store/image.php

</b> on line <b>21</b><br />

 

Line 9-22 are:

 

$srcsize = getimagesize($_GET['src']);

$dest_x = ($_GET['height']);

$dest_y = ($_GET['width']);

$img_type = exif_imagetype($src);

 

if ($img_type == IMAGETYPE_JPEG) { $src_img = imagecreatefromjpeg($_GET['src']); } // Resize JPG images

if ($img_type == IMAGETYPE_PNG) { $src_img = imagecreatefrompng($_GET['src']); } // Resize PNG images

if ($img_type == IMAGETYPE_GIF) { $src_img = imagecreatefromgif($_GET['src']); } // Resize Gif images

if ($img_type == IMAGETYPE_WBMP ) { $src_img = imagecreatefromwbmp($_GET['src']); } // Resize BMP images

 

$dst_img = imagecreatetruecolor($dest_y, $dest_x);

 

if (empty($width) && tep_not_null($height)) {

$ratio = $height / $srcsize[1];

 

I've checked with the server guys and the GD library is enabled (by default) on my account. Is there a call to it with a specific path?

Sorry, I'm completely green where php is concerned

 

OK, got it solved - found out that register_globals was off...

I'm learning, but slowly

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...