|
|
| Author |
Message |
zy_milan
Joined: 30 Jun 2006 Posts: 27
|
Posted: Thu Aug 03, 2006 4:15 am Post subject: error message,help! |
|
|
After install the weathermap in cacti, I found the weathermap icon display in the cacti menu.
And when I access http://localhost/cacti/plugins/weathermap/editor.php
I received some error message shown as below.
NOTE: This editor is not finished! There are many features of Weathermap that you will be missing out on if you choose to use the editor only.These include: curves, node offsets, font definitions, colour changing, per-node/per-link settings and image uploading. You CAN use the editor without damaging these features if you added them by hand, however.
when I created the map ,I also received the error message.
Fatal error: Call to undefined function imagecreatetruecolor() in C:\Inetpub\wwwroot\cacti\plugins\weathermap\Weathermap.class.php on line 2962
I have gave the "configs" and "output" folders permission to the webserver user.
Pls give some advice ,Thanks
| Description: |
|
| Filesize: |
127.38 KB |
| Viewed: |
4105 Time(s) |

|
| Description: |
|
| Filesize: |
47.38 KB |
| Viewed: |
4105 Time(s) |

|
| Description: |
|
| Filesize: |
57.15 KB |
| Viewed: |
4105 Time(s) |

|
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Aug 14, 2006 2:27 am Post subject: Re: error message,help! |
|
|
| zy_milan wrote: |
Fatal error: Call to undefined function imagecreatetruecolor() in C:\Inetpub\wwwroot\cacti\plugins\weathermap\Weathermap.class.php on line 2962
|
Probably, you don't have the GD module for your PHP installation. Try running php -m from the command prompt, and look for 'gd' in the list.
How to enable the module depends on your PHP install. Sometimes it's provided but disabled by default, other times you will need to download something extra or even compile it.
(0.9 will make this error more obvious - it's supposed to tell you that the module is missing, like the main weathermap poller plugin does)
|
|
| Back to top |
|
 |
timi Cacti User
Joined: 09 Nov 2005 Posts: 134 Location: Timisoara, Romania
|
Posted: Mon Oct 23, 2006 10:30 am Post subject: |
|
|
hi, I got the same problem when I enter the editor, Fatal error: Call to undefined function: imagecreatetruecolor() in /srv/apache/htdocs/cacti/plugins/weathermap/Weathermap.class.php on line 2962
my php -m looks like this
[PHP Modules]
ctype
gd
mysql
overload
pcre
posix
session
standard
tokenizer
xml
zlib
[Zend Modules]
any ideea why i get that error ? 10q
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 23, 2006 10:53 am Post subject: |
|
|
| timi wrote: | hi, I got the same problem when I enter the editor, Fatal error: Call to undefined function: imagecreatetruecolor() in /srv/apache/htdocs/cacti/plugins/weathermap/Weathermap.class.php on line 2962
my php -m looks like this
[PHP Modules]
ctype
gd
mysql
overload
pcre
posix
session
standard
tokenizer
xml
zlib
[Zend Modules]
any ideea why i get that error ? 10q |
Do you have more than one php install? It's possible that your CLI php interpreter is not the same as the mod_php one. The normal weathermap/poller stuff uses the CLI php. The editor uses the mod_php, as it's a web page I'm assuming that the plugin part is working for you (does the example.conf work if you add it to the list of maps?)
I believe some earlier versions of GD did not support truecolor either, so you might need to upgrade GD, then recompile/upgrade the php install to use it.
I would start with:
and see if you have more 'php' executables that you expect.
|
|
| Back to top |
|
 |
timi Cacti User
Joined: 09 Nov 2005 Posts: 134 Location: Timisoara, Romania
|
Posted: Tue Oct 24, 2006 1:30 am Post subject: |
|
|
hmm weird, in phpinfo does not apear the gd library looks like I need to reinstall php/gd/blabla
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Tue Oct 24, 2006 2:14 am Post subject: |
|
|
| timi wrote: | hmm weird, in phpinfo does not apear the gd library looks like I need to reinstall php/gd/blabla |
OK - I'll try and add some more explanation to this error message in future.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
|
| Back to top |
|
 |
timi Cacti User
Joined: 09 Nov 2005 Posts: 134 Location: Timisoara, Romania
|
Posted: Tue Oct 24, 2006 2:54 am Post subject: |
|
|
problem solved, the gd module was in the wrong directory looked in apache error file
|
|
| Back to top |
|
 |
bengelly
Joined: 26 Jan 2007 Posts: 49
|
Posted: Thu Feb 08, 2007 5:51 am Post subject: |
|
|
Hi,
could you be a little more specific about you solved this problem... I'm having the same one and I can't seem to find the solution...
Thanks
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Thu Feb 08, 2007 6:10 am Post subject: |
|
|
| bengelly wrote: | Hi,
could you be a little more specific about you solved this problem... I'm having the same one and I can't seem to find the solution...
Thanks |
There isn't a specific fix - it depends on your installation!
You need to be sure that both the CLI PHP interpreter and mod_php have the gd module loaded. The normal poller-process weathermap plugin runs from the CLI, but the editor uses mod_php (or the ISAPI module for IIS), to draw the map.
Sometimes, the two different PHP modes have different php.ini files. Sometimes, you can have two PHP installs without realising it (e.g. one from RPM + one from source in /usr/local). To see what you have in mod_php, you can create a page with the following contents:
| Code: |
<?php
phpinfo();
?>
|
and go to it in a webbrowser, which will tell you what modules are loaded, and where they are loaded from.
|
|
| Back to top |
|
 |
|