SOLUTION: GPSMAP not working after upgrade to 0.8.8c

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
hmorandell
Cacti User
Posts: 73
Joined: Mon May 03, 2010 11:48 am

SOLUTION: GPSMAP not working after upgrade to 0.8.8c

Post by hmorandell »

Hi,

my GPSMAP was not working anymore after upgradine to the latest release of Cacti. No device shows up at the map which is correctly loaded.
The problem is the (I guess newly integrated) cross site request forgery library (csrf-magic).

When you look at the html code generated from gpsmap.php, at the bootom you see the code messed up. A Quick fix (I did'nt have time to look for a better solution) is to not use the csrf-magic library. (As I use cacti only in a intranet I have no problem living without it).

Just comment out the following lines in your "include/global.php" file (from line 226 onwards):

Code: Select all

/* cross site request forgery library */
//include_once($config["include_path"] . "/csrf/csrf-magic.php");
//function csrf_startup() {
//      global $config;
//      csrf_conf('rewrite-js', $config['url_path'] . 'include/csrf/csrf-magic.js');
//}
ciao
Hans
_________________
Cacti - 1.2.14
Poller Type - SPINE 1.2.14
Devices 3,892
Graphs 21,483
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests