Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


SQL ERRORS
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track)
Author Message
pupo888



Joined: 05 Sep 2007
Posts: 8

PostPosted: Thu Sep 06, 2007 2:40 pm    Post subject: Cannot redeclare get_dns_from_ip error Reply with quote

I'm wondering if a definitive solution to this problem exists. I installed Mactrack, imported the database file, but got this error in the browser window:

Fatal error: Cannot redeclare get_dns_from_ip() (previously declared in D:\Inetp
ub\wwwroot\cacti\plugins\settings\include\functions.php:149) in D:\Inetpub\wwwro
ot\cacti\plugins\mactrack\lib\mactrack_functions.php on line 1176

After reading this thread I disabled the plugin, tried to run php database_upgrade.php but I get the same error at the command line in response to the database_upgrade.php script.

Can someone offer some insight?

I'm running Cacti 0.8.6j from the Windows installer.

Thanks.
Back to top
pupo888



Joined: 05 Sep 2007
Posts: 8

PostPosted: Thu Sep 06, 2007 4:04 pm    Post subject: Reply with quote

Disabled the "Settings" plugin and the database upgrade script worked. The problem now is that every time I re-enable the Settings plugin I get the same error on the web page when I click on the Mactrack tab.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Thu Sep 06, 2007 11:25 pm    Post subject: Reply with quote

mactrack and settings have a function name collision. Go into mactrack_function.php and edit out that function.

TheWitness
Back to top
giobbi



Joined: 09 Sep 2007
Posts: 15

PostPosted: Sun Sep 09, 2007 2:44 am    Post subject: Reply with quote

Hello TheWitness.
I have been following this thread and got stuck at the same place when enabeling the settings-plugin again.

Search for the function collision but i don't seems to have it anywhere i in the mactrack-plugin folder (did a grep -niR collision /usr/share/cacti/site/plugins/mactrack/).

I happely try you next tip!

thx.

p
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Sun Sep 09, 2007 12:41 pm    Post subject: Reply with quote

giobbi wrote:
Hello TheWitness.
I have been following this thread and got stuck at the same place when enabeling the settings-plugin again.

Search for the function collision but i don't seems to have it anywhere i in the mactrack-plugin folder (did a grep -niR collision /usr/share/cacti/site/plugins/mactrack/).

I happely try you next tip!

thx.

p


That's funny, sorry for me laughing, but you must search for the following:

get_dns_from_ip()

TheWitness
Back to top
giobbi



Joined: 09 Sep 2007
Posts: 15

PostPosted: Mon Sep 10, 2007 3:47 pm    Post subject: Reply with quote

javascript:emoticon('')

Erhm, yes, that was kinda funny, im a noob..

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (MAC Track) All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group