|
|
| Author |
Message |
pupo888
Joined: 05 Sep 2007 Posts: 8
|
Posted: Thu Sep 06, 2007 2:40 pm Post subject: Cannot redeclare get_dns_from_ip error |
|
|
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
|
Posted: Thu Sep 06, 2007 4:04 pm Post subject: |
|
|
| 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
|
Posted: Thu Sep 06, 2007 11:25 pm Post subject: |
|
|
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
|
Posted: Sun Sep 09, 2007 2:44 am Post subject: |
|
|
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
|
Posted: Sun Sep 09, 2007 12:41 pm Post subject: |
|
|
| 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
|
Posted: Mon Sep 10, 2007 3:47 pm Post subject: |
|
|
javascript:emoticon(' ')
Erhm, yes, that was kinda funny, im a noob..
 |
|
| Back to top |
|
 |
|