imagecreatefromjpeg() an undefined function?!?

Associate
Joined
16 May 2005
Posts
680
I've got client with their own cpanel linux hosting and for some reason, a normally perfectly functioning page using imagecreatefromjpeg() is now saying:

Fatal error: Call to undefined function: imagecreatefromjpeg() in
/home/website/public_html/contman/resizer.php on line 6

PHP is 4.4.2, any thoughts on what the issue could be? The status says the server load is high, would that affect it?

(These aren't big files, 250x150 pixels eg)
 
Last edited:
paulsheff said:
I've got client with their own cpanel linux hosting and for some reason, a normally perfectly functioning page using imagecreatefromjpeg() is now saying:

Fatal error: Call to undefined function: imagecreatefromjpeg() in
/home/website/public_html/contman/resizer.php on line 6

PHP is 4.4.2, any thoughts on what the issue could be? The status says the server load is high, would that affect it?

(These aren't big files, 250x150 pixels eg)

Dumb one but have you actually got a file set as the parameter in there, calling it with no parameters won't work.
 
paulsheff said:
I've got client with their own cpanel linux hosting and for some reason, a normally perfectly functioning page using imagecreatefromjpeg() is now saying:

Fatal error: Call to undefined function: imagecreatefromjpeg() in
/home/website/public_html/contman/resizer.php on line 6

PHP is 4.4.2, any thoughts on what the issue could be? The status says the server load is high, would that affect it?

(These aren't big files, 250x150 pixels eg)
Try this:

Code:
<?php
var_dump(gd_info());
?>
 
Sounds like the hosting provider has removed GD functionality from PHP. This may not be intentional - I'd suggest he contacts them.
 
Back
Top Bottom