[FC] Mac Track SVN error in Win2003, Cannot modify header

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
Isamu
Posts: 6
Joined: Thu Apr 19, 2007 8:47 am

[FC] Mac Track SVN error in Win2003, Cannot modify header

Post by Isamu »

Currently running PHP 5.2.1 with Cacti installed with the latest patches and also have the newest Mysql. I was running 0.0.1b of mactrack, but ran into issues getting the MAC/IP report working. That issue will be addressed in another post... Anyhow, to install the new SVN version, I right-clicked saved all of the files in the right folders and then renamed my old mactrack folder under my cacti/plugin directory and placed it in there. I then removed the old tables for mactrack using the DROP TABLE command and then imported both the macktrack.sql and the macktrack.sql.0.0.1 since it it would error if I tried to import them since the tables already existed . I then ran the database_upgrade.php file and mostly displayed successes... minus a few "already exists".

Now, when I go to add/modify a Device type, I get the following error after clicking, "Save."


Warning: Cannot modify header information = headers already sent by (output started at c:\Inetpub\wwwroot\cacti\plugins\mactrack\lib\mactrack_foundry.php:152) in c:\Inetpub\wwwroot\cacti\plugins\mactrack\mactrack_device_types.php on line 103"

I looked on the web and they said something about blanks near the headers within a PHP item, but I'm not good enough in PHP to know where to go or where the problem is. Any ideas?
Last edited by Isamu on Mon Apr 23, 2007 10:33 am, edited 1 time in total.
Dacob9906
Cacti User
Posts: 209
Joined: Tue Apr 03, 2007 1:01 pm
Location: Pullman Washington

Post by Dacob9906 »

I am getting that same error if I try to do anything with adding a new device type.
Jacob Bergman
Pullman School District
jbergman@psd267.wednet.edu

Operating System: winserv 2003
Webserver: IIS 6.0
Cacti: BETA windows installer 1.5 (BSOD2600)
gordon
Posts: 11
Joined: Fri May 18, 2007 10:53 am

Post by gordon »

Best I can tell from looking at it quickly, is that the mactrack_foundry.php file is causing the problem. I don't have any Foundry devices, so for now I am just commenting that particular file out in the mactrack_vendors.php file.

Code:
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_cabletron.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_cisco.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_norbay.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_hp.php");
#include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_foundry.php");


It will still show up as a scan type on device type screens. I might remove it from the mac_track_scanning_type table in the database for my install as well, as I don't anticipate needing that function for my environment.
wardrobe
Posts: 17
Joined: Wed May 31, 2006 2:16 pm

Post by wardrobe »

problem i had was whitespace at the end of the foundry file, i deleted it and it worked
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests