Jump to content
Sign in to follow this  
dowser

Images don't display after server move

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×