Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Fatal error: Call to undefined function: imagecreatetruecolor

  • Vince Patron
  • Vince Patron's Avatar Topic Author
  • Offline
  • New Member
More
17 years 6 months ago - 16 years 9 months ago #4867 by Vince Patron
Hi folks, I ran into this problem and was stumped for days. I finally got it fixed. I thought I'd post some reference info here in case others run into it.

ERROR IS THIS:
Fatal error: Call to undefined function: imagecreatetruecolor() in
<your home directory>/mambots/content/plugin_jw_sigpro/sigpro_engine.php on line 138

The cause is that you do not have the version 2.0 GD library loaded in PHP which defines this function, which is used to create the thumbnails.

Use this PHP code to view what extensions you have loaded on your hosting account.

<?php
print_r(get_loaded_extensions());
print_r(var_dump(gd_info()));
?>

Just create a text file with the four lines above in your public_html folder (or wherever your web root is), name it with a .php extension like "test.php" and then run it by using your web browser like "www.yourdomain.com/test.php"

This does not write correct HTML but will show you the info you need. (Just do a View/Source on your browser if you want a nicer looking format.) Look for text like "[some number] => gd". If you don't see this, you do NOT have the GD library loaded.

Next you want to look for the version number. Something like: ["GD Version"]=>  string(27) "bundled (2.0.28 compatible)"

This needs to say version 2.0 or later.

If you do not see GD version 2.0, you must get your hosting provider to install or upgrade your system.

In my case, I was using a virtual dedicated server on GoDaddy.com with their Simple Control Panel and all was good. When I upgraded to Cpanel, my gallery pages no longer worked. It turned out they didn't have the GD library in the default installation when using Cpanel.

I had to pay them 30 minutes of labor to recompile PHP for me to include it. (It would have taken me another day to figure out how to recompile it!) It's really dumb not to have the same libraries loaded for both types of control panel. I'll file a complaint.

LEARN MORE:

Learn more about the GD library:
www.php.net/manual/en/ref.image.php

Learn more about this function:
www.php.net/manual/en/function.imagecreatetruecolor.php


Hope that helps someone out. Enjoy!

-Vince

Please Log in or Create an account to join the conversation.

More
17 years 6 months ago #4868 by JoomlaWorks
Thank you very much Vince for sharing this with everyone here!

I will make your post a "sticky" for others to read.  ;)

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Vince Patron
  • Vince Patron's Avatar Topic Author
  • Offline
  • New Member
More
17 years 6 months ago - 17 years 6 months ago #4869 by Vince Patron
Cool. Thanks! -Vince  8)  Thanks, too, for making a really nice, simple yet very effective gallery at a reasonable price.

Please Log in or Create an account to join the conversation.

More
17 years 4 months ago #4870 by Ingrid Wildschut
Thank you for this, my hosting has { ["GD Version"]=> string(27) "bundled (2.0.28 compatible
thats the right one but still the problem. How many gallery you can have one 1 pages?

Please Log in or Create an account to join the conversation.

More
17 years 4 months ago #4871 by Ingrid Wildschut
I have deleted al the images and ftp new one and the problem was gone.
;D

Please Log in or Create an account to join the conversation.

More
16 years 2 months ago - 16 years 2 months ago #4872 by Vincent Sullivan
Would you be referring to below error?


Warning: getimagesize(/home/content/a/r/i/user/html/images/stories/Bars/etdcrt003.jpg): failed to open stream: No such file or directory in /home/content/a/r/i/user/html/plugins/content/jwsigpro/sigpro_engine.php on line 86
Image type not supported

This is what I got as a fatal error, other than a webpage.  :)

I changed the permissions on the php file and temp folder, no change in response, I had tried all the different versions for compatibility with no luck.

My config is Joomla 1.5.6, php v5, I am checking on the GD library with my provider.

I appreciate any thoughts and help, I am in the process of updating my site, I am currently running the 1.2 version with no problems on Joomla 1.0.11.

Now I get the following error:

Warning: getimagesize(/home/content/a/r/i/user9/html/images/stories/bars/etdpbr007.gif) [function.getimagesize]: failed to open stream: No such file or directory in /home/content/a/r/i/user9/html/plugins/content/jwsigpro/sigpro_engine.php on line 86
Image type not supported

[function.getimagesize] is linked to category/function.getimagesize vs. category/article (just thought I would mention this)

I using a Rockettheme Chromatophore template , I check with my provider, using the help button on Joomla 1.5.6 I see that I am using php 5.2.5, GD is bundled (2.0.34 compatible), it also says gif, jpg and png are enabled.

I have uploaded my pictures to stories/bars/ and renamed them in lowercase as seen in this latest fatal error above, even the picture directory I renamed in a lower case.

On the page I am trying to get this work I have {gallery}bars{/gallery}

I revalidated my permissions, but still no love.  Any thoughts, this is now holding up my transition to my new site.

SOLVED My Problem:

No kidding you have to have EVERYTHING in lowercase, folder, file name and extension in my case for the second error shown above it was the extension. I had the picture saved as etdpbr007.GIF, didn't work.  As soon as I changed it to etdpbr007.gif, WOW it worked!!! Yeah, I am very happy once again.  Now I have a lot of pictures to edit, ugghhh  :P

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum