Notice: Undefined index in weathermap

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
ece24544
Posts: 8
Joined: Mon Dec 21, 2009 1:28 am

Notice: Undefined index in weathermap

Post by ece24544 »

Hi Cacti Community,

Weather Map is running well but i encounter error (see details below) in weathermap page. Any advice how to solve this one? Thanks.

Notice: Undefined index: action in C:\Inetpub\wwwroot\cacti\plugins\weathermap\setup.php on line 146
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Which version of Weathermap, Cacti, Windows, PHP?
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!)
calebk
Posts: 1
Joined: Tue Dec 29, 2009 4:01 am

Post by calebk »

Sorry to hijack this track.

I had the same issue as ece24544, am running on Linux, Weathermap version 0.96a , cacti 0.8.7e, php 5.2.10.

Fixed this by changing the weathermap setup.php at line 146
from:

Code: Select all

                if($_REQUEST["action"] == 'viewmapcycle')
                {
                        return(86400);
                }
to

Code: Select all

        
        if(array_key_exists('action',$_REQUEST))
        {
                if($_REQUEST["action"] == 'viewmapcycle')
                {
                        return(86400);
                }
        }
Am not sure if this would help. :)
ece24544
Posts: 8
Joined: Mon Dec 21, 2009 1:28 am

Help Please...

Post by ece24544 »

Hi Howie

Please see details below. Thanks.

Weathermap - 0.96a
Cacti - 0.8.7e
Windows - XP
PHP - 5.2.12
Apache -2.2.14 (Win32)


Hi Calebk,

I have modified the line 146 but I have encounter different error. Please see details below. Thanks.

Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting '(' in C:\Inetpub\wwwroot\cacti\plugins\weathermap\setup.php on line 169

Line 169
calebk wrote:Sorry to hijack this track.

I had the same issue as ece24544, am running on Linux, Weathermap version 0.96a , cacti 0.8.7e, php 5.2.10.

Fixed this by changing the weathermap setup.php at line 146
from:

Code: Select all

                if($_REQUEST["action"] == 'viewmapcycle')
                {
                        return(86400);
                }
to

Code: Select all

        
        if(array_key_exists('action',$_REQUEST))
        {
                if($_REQUEST["action"] == 'viewmapcycle')
                {
                        return(86400);
                }
        }
Am not sure if this would help. :)
ece24544
Posts: 8
Joined: Mon Dec 21, 2009 1:28 am

Help Please...

Post by ece24544 »

UP.... Help pleaseeeeeee. Please.................
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

At this stage, I would say try 0.97test4 - there are changes related to this in there, and 0.97 will be out in the next couple of weeks. There's almost a year of bugfixes and updates.
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests