Editor Parsing error

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

Editor Parsing error

Post by zgamer »

PHP Parse error: parse error, unexpected $end in C:\Inetpub\wwwroot\cacti\plugins\weathermap\editor.php on line 859

09/26/2006 10:12:15 AM - SYSTEM STATS: Time:13.3601 Method:cactid Processes:2 Threads:3 Hosts:123 HostsPerProcess:62 DataSources:436 RRDsProcessed:218
09/26/2006 10:12:15 AM - WEATHERMAP: Poller[0] Weathermap 0.82 in da house
09/26/2006 10:12:15 AM - WEATHERMAP: Poller[0] Normal logging mode. If things are going wrong, turn on DEBUG in Cacti for more information!
09/26/2006 10:12:15 AM - WEATHERMAP: Poller[0] Map: c:\Inetpub\wwwroot\cacti\plugins\weathermap\configs\reshalls.conf -> c:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_3.html & c:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_3.png
09/26/2006 10:12:15 AM - WEATHERMAP: Poller[0] Target C:\inetpub\wwwroot\cacti\rrd\kg_base_traffic_in_188.rrd doesn't exist. Is it a file?
09/26/2006 10:12:15 AM - WEATHERMAP: Poller[0] ReadData: Link KG2A_UP, target: C:\inetpub\wwwroot\cacti\rrd\kg_base_traffic_in_188.rrd on config line 52 had no valid data
09/26/2006 10:12:15 AM - WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini
09/26/2006 10:12:15 AM - WEATHERMAP: Poller[0] Wrote map to c:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_3.png and c:\Inetpub\wwwroot\cacti\plugins\weathermap\output\weathermap_thumb_3.png
09/26/2006 10:12:15 AM - WEATHERMAP: Poller[0] Weathermap has left the building
09/26/2006 10:12:16 AM - THOLD: Poller[0] Checking Thresholds


Any suggestions?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Editor Parsing error

Post by Howie »

zgamer wrote:PHP Parse error: parse error, unexpected $end in C:\Inetpub\wwwroot\cacti\plugins\weathermap\editor.php on line 859

Any suggestions?
What does your editor-config.php look like? The only thing I can think of at the moment would be an error in that - like an open { without a close }, for example.
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!)
User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

Post by zgamer »

<?php
$cacti_base = 'C:/inetpub/wwwroot/cacti';

if(is_dir($cacti_base))
{
// include the cacti-config, so we know about the database
include_once($cacti_base."/include/config.php");

// CHANGE: this to be the URL of the base of your Cacti install
// it MUST end with a / character!
$config['base_url']='http://10.0.25.2/cacti/';
}

// where to look for config files. The directory must be readable
// AND writable by whatever user your webserver runs as.
// this name is correct if you are using the Cacti plugin
//
// NOTE: You MIGHT need to use the full path to the configs folder here,
// (it seems to depend on the PHP or OS version)
$mapdir= $cacti_base.'/plugins/weathermap/configs';
?>
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Just in case you haven't got it working, I believe the fix for this is

Code: Select all

short_open_tag=On
in your php.ini

This won't be necessary in 0.9. I've just gone through and pulled out all the remaining short tags. ( <? instead of <?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!)
User avatar
zgamer
Cacti User
Posts: 86
Joined: Sat Sep 23, 2006 7:50 pm
Location: WI, USA

Post by zgamer »

Howie wrote:Just in case you haven't got it working, I believe the fix for this is

Code: Select all

short_open_tag=On
in your php.ini

This won't be necessary in 0.9. I've just gone through and pulled out all the remaining short tags. ( <? instead of <?php )
I ended up going the other way and adding the php to all the short tags;)
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests