weather map problem with php 5.4

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
javigreen
Posts: 1
Joined: Mon Oct 24, 2011 7:31 am

weather map problem with php 5.4

Post by javigreen »

I have installed cacti 0.8.7i with Plugin network weather map. The server has php 5.4. Map shows no cacti and the editor does not work.
The apache log shows the following error:
PHP Warning: Creating default object from empty value in / var / www / cacti / plugins / weathermap / Weathermap.class.php on line 409
Weathermap I think is not compatible with Apache 5.4 Is that true?
Do you have any solution?
thanks
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: weather map problem with php 5.4

Post by Howie »

Looks like php 5.4 no longer creates objects when they are first referred to, without warnings. Apart from the warning message, I don't see why it wouldn't work though, so either move to PHP 5.3, or add this at line 21 in Weathermap.class.php:
error_reporting(E_NONE);
to disable the warning.

That will disable all other warnings though, so you may find it harder to fix other problems later.

I'll investigate what is required for 5.4 before Weathermap 0.98 is released.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
AHering
Posts: 1
Joined: Fri Jan 20, 2012 7:09 am

Re: weather map problem with php 5.4

Post by AHering »

Howie,

is there any result on your investigation?
We are going to globally migrate to PHP 5.4, and I'd like to use your awesome weathermap plugin further on w/o the need to have an own PHP environment for it.

Thank you.
Alexander
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest