|
|
| Author |
Message |
Bazou
Joined: 10 Apr 2007 Posts: 28 Location: Brussels/Belgium
|
Posted: Mon May 14, 2007 9:38 am Post subject: Editor Error when a node is in the conf file (solved) |
|
|
Hello everybody,
I'm running weathermap 0.91 with plugarch v1.1 on cacti 0.8.6i on Debian.
I try to get the editor working since some hours but no way...
When I add a node on a new conf file, or when I open an existing conf file (like example.conf or simple.conf), the editor display a "The page cannot be displayed" HTML page :/
If I delete the node part in the conf file it's OK, but as soon as I add them again, I get the same error.
I runned check.php in both apache2 and cli php side and all is OK (memory_limit of 256M).
When I run weathermap in debug mode, I get this result (which I don't understand):
| Code: | # php weathermap --debug --config /usr/share/cacti/site/plugins/weathermap/configs/simple.conf
PHP Warning: Function registration failed - duplicate name - gd_info in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagearc in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imageellipse in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagechar in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecharup in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorat in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorallocate in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagepalettecopy in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecreatefromstring in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorclosest in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorclosesthwb in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolordeallocate in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorresolve in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorexact in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorset in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolortransparent in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorstotal in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorsforindex in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecopy in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecopymerge in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecopymergegray in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecopyresized in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecreate in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecreatetruecolor in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imageistruecolor in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagetruecolortopalette in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagesetthickness in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagefilledarc in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagefilledellipse in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagealphablending in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagesavealpha in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorallocatealpha in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorresolvealpha in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorclosestalpha in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecolorexactalpha in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecopyresampled in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagesettile in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagesetbrush in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagesetstyle in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecreatefrompng in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecreatefromgif in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecreatefromjpeg in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecreatefromwbmp in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecreatefromgd in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecreatefromgd2 in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagecreatefromgd2part in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagepng in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagegif in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagejpeg in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagewbmp in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagegd in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagegd2 in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagedestroy in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagegammacorrect in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagefill in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagefilledpolygon in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagefilledrectangle in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagefilltoborder in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagefontwidth in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagefontheight in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imageinterlace in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imageline in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imageloadfont in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagepolygon in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagerectangle in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagesetpixel in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagestring in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagestringup in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagesx in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagesy in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagedashedline in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagettfbbox in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagettftext in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imageftbbox in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagefttext in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagepsloadfont in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagepsfreefont in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagepsencodefont in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagepsextendfont in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagepsslantfont in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagepstext in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagepsbbox in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - imagetypes in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - jpeg2wbmp in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - png2wbmp in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - image2wbmp in Unknown on line 0
PHP Warning: gd: Unable to register functions, unable to load in Unknown on line 0
Warning: main(Console/Getopt.php): failed to open stream: No such file or directory in /usr/share/cacti/site/plugins/weathermap/weathermap on line 9
Fatal error: main(): Failed opening required 'Console/Getopt.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/site/plugins/weathermap/weathermap on line 9
|
Any Idea?
thanks,
Gilles
Last edited by Bazou on Mon May 14, 2007 11:25 am; edited 1 time in total |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2162 Location: United Kingdom
|
Posted: Mon May 14, 2007 10:45 am Post subject: Re: Editor Error when a node is in the conf file |
|
|
| Bazou wrote: | PHP Warning: Function registration failed - duplicate name - imagearc in Unknown on line 0
|
Is it possible you have somehow got two "extension=gd.so" lines somehow? Remember they may not be in the same file... (check in check.php output for which .ini files are being read).
Also, you need PEAR, and the PEAR Console_Getopt module installed. If you install PEAR, I believe it comes with that module though. You only need PEAR to use the command-line weathermap tool. For normal cacti-plugin use, don't worry about it. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2162 Location: United Kingdom
|
Posted: Mon May 14, 2007 10:48 am Post subject: Re: Editor Error when a node is in the conf file |
|
|
| Bazou wrote: |
I'm running weathermap 0.91 with plugarch v1.1 on cacti 0.8.6i on Debian.
I try to get the editor working since some hours but no way...
When I add a node on a new conf file, or when I open an existing conf file (like example.conf or simple.conf), the editor display a "The page cannot be displayed" HTML page :/
If I delete the node part in the conf file it's OK, but as soon as I add them again, I get the same error. |
FINALLY, as a third problem. This sounds like the same GD bug mentioned in the FAQ - this seems to be common on Debian. See this post: http://forums.cacti.net/viewtopic.php?p=98806#98806 |
|
| Back to top |
|
 |
Bazou
Joined: 10 Apr 2007 Posts: 28 Location: Brussels/Belgium
|
Posted: Mon May 14, 2007 11:02 am Post subject: |
|
|
Yes it was the Debian GD Library the problem, it's now fixed, many thanks!
So, as I use the cacti plugin, i don't have to install the PEAR module, right?
And I uncommented "extension=gd.so" in both PHP & Apache php.ini files, but this line is present only once in each. It's OK no?
Thanks again, this plugin is a very nice work (I'm sur I'll see that now;))! |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2162 Location: United Kingdom
|
Posted: Mon May 14, 2007 11:21 am Post subject: |
|
|
| Bazou wrote: | So, as I use the cacti plugin, i don't have to install the PEAR module, right?
|
Yes. It's used to help the command-line weathermap take options (like --debug).
| Bazou wrote: |
And I uncommented "extension=gd.so" in both PHP & Apache php.ini files, but this line is present only once in each. It's OK no? |
Well, see if it works, I guess. The errors you had there looked like it was defined twice somehow, but if it works OK, then it is OK  |
|
| Back to top |
|
 |
Bazou
Joined: 10 Apr 2007 Posts: 28 Location: Brussels/Belgium
|
Posted: Mon May 14, 2007 11:25 am Post subject: |
|
|
Thank you!
I will look how the overlib works tomorrow
Problem solved. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|