Elxis CMS Forum

Extensions => Components => Topic started by: rentasite on June 04, 2010, 09:05:38

Title: Fatal error - Ios Downloads/Graphs
Post by: rentasite on June 04, 2010, 09:05:38

Hi, i get this fatal error when clicking on Ios Downloads/Graphs

Fatal error: Call to undefined function imagecreatetruecolor() in /var/www/html/administrator/components/com_downloads/includes/libchart.php  on line 605


Title: Re: Fatal error - Ios Downloads/Graphs
Post by: webgift on June 04, 2010, 10:19:04
It can't define the function imagecretetruecolor () from that file.

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 "http://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.
Title: Re: Fatal error - Ios Downloads/Graphs
Post by: rentasite on June 04, 2010, 13:01:53

Ok, GD library not loaded (probably). It's not on my server so i won't investigate further.

Thanks!
Title: Re: Fatal error - Ios Downloads/Graphs
Post by: webgift on June 04, 2010, 13:09:36
Ok. Just to know what happen then.

Nothing ... my pleasure  ::) ;D