close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpeg()

Thread began 3/01/2021 9:35 am by Nathon Jones Web Design | Last modified 3/03/2021 8:59 am by Ray Borduin | 1581 views | 3 replies |

Nathon Jones Web Design

Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpeg()

Just starting a new thread on this as I was more than beginning to hijack the other thread!

I'm getting this error when I attempt to upload an image via MySQLi Insert Record and File Manipulation Upload Wizard:

Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpeg() in C:\inetpub\wwwroot\tammyssweetstems\webassist\file_manipulation\helperphp.php:962 Stack trace: #0 C:\inetpub\wwwroot\tammyssweetstems\webassist\file_manipulation\helperphp.php(174): WA_DFP_ResizeImage() #1 C:\inetpub\wwwroot\tammyssweetstems\njadmin\add_banner.php(78): WA_DFP_UploadFiles() #2 {main} thrown in C:\inetpub\wwwroot\tammyssweetstems\webassist\file_manipulation\helperphp.php on line 962

Is this definitely related to not having GD installed in PHP?

I have checked some support sites and I don't have php_gd2.dll installed in the ext directory of my PHP install directory, nor is php_gd2.dll referenced in my php.ini file. It simply references php_gd.dll (which may well be a change of refernce in PHP8, I don't know)?

I just wanted to double check that it's not related to the helperphp.php file, which is referenced in the error that's displayed.

Line 962 helperphp.php is:
$src = imagecreatefromjpeg($imageFilePath);

Line 174 helperphp.php is:
$resizeResult = WA_DFP_ResizeImage($tmpFileNamePath, $val);

and Line 78 add_banner.php is:
WA_DFP_UploadFiles("WA_UploadResult1", "NJbannerIMG", "2", "[NewFileName]_[Increment]", "true", $WA_UploadResult1_Params);

Sign in to reply to this post

Ray BorduinWebAssist

The issue is that GD library is not installed on your php server. It doesn't appear to be an issue with the php code itself, this is a server configuration issue.

Sign in to reply to this post
Did this help? Tips are appreciated...

Nathon Jones Web Design

I followed the instructions detailed here: did not resolve the issue.

I have PHP8 installed on Windows 10 and there is no php_gd2.dll in the ext folder, yet it is referenced in the php.ini.
So, I copied php_gd2.dll from an earlier version of PHP and dropped it into to the PHP ext directory.

I stopped and restarted IIS, to no avail, and when I check http://localhost/phpinfo.php, it does not show any settings for GD, suggesting that it is not installed.

So, considering that the php.ini file references php_gd2.dll yet in the ext directory of the PHP folder it only has php_gd.dll, I edited the php.ini file to reference, instead, php_gd.dll and when I run http://localhost/phpinfo.php it now shows GD info and the WebAssist extension is back working again!

I can only assume that this is an error with installation of PHP8. It's referencing php_gd2.dll when in actual fact the file, in PHP8, is php_gd.dll.

However, I fear my troubles are not over yet as I'm now getting this...

C:\>php -v
PHP Warning: PHP Startup: Unable to load dynamic library 'php_xmlrpc.dll' (tried: C:\Program Files\PHP\v8.0\ext\php_xmlrpc.dll (The specified module could not be found), C:\Program Files\PHP\v8.0\ext\php_php_xmlrpc.dll.dll (The specified module could not be found)) in Unknown on line 0
PHP 8.0.0 (cli) (built: Nov 24 2020 22:02:58) ( NTS Visual C++ 2019 x64 )

THere is no php_xmlrpc.dll in the ext directory of the PHP8 install.

Teething problems with PHP8? Should I be reporting this kind of thing?

Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

Server configuration isn't my expertise. You might want to find an IIS forum to ask questions on to resolve issues with your server configuration.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...