Fatal error: Cannot redeclare title_trim

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

blacksky

Post by blacksky »

I send it also...
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I set Apache to CGI mode and ran into a couple of problems. I fixed them, but am unsure if they are related to the problem you are all seeing. Can some of you download the following file and give it a try?

http://www.raxnet.net/downloads/beta/wi ... 030602.zip

Thanks,

-Ian
Mike R.

Post by Mike R. »

Downloaded new file, set SQL password to match my existing config, restarted Apache, and got the exact same error:

"Fatal error: Cannot redeclare title_trim() (previously declared in D:\Apache\Apache2\htdocs\cacti\include\functions.php:27) in d:\apache\apache2\htdocs\cacti\include\functions.php on line 27"



:(
blacksky

Post by blacksky »

Install the new file... same error here also...

Fatal error: Cannot redeclare title_trim() (previously declared in C:\webroot\cacti\include\functions.php:27) in c:\webroot\cacti\include\functions.php on line 27
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

I think I found it... If my php.ini contains the following, I get the error:

Code: Select all

include_path=c:/apache2/htdocs/cacti-0.8.1
If I comment this out, or change it to another path, the error goes away. I hope it turns out to be this easy *crosses fingers*

-Ian
Mike R.

Hmmm...

Post by Mike R. »

Well, I commented that line out of my php.ini, and it fixed the problem. It allowed me to login, create a new password, and then start editing the configuration. However, when I clicked on the "graphs" tab at the top of the page, it took me to the graphs page then I couldn't go anywhere from there. None of the tabs or buttons worked. I had to restart the browser and relog in to get back to cacti. I went through the process again and the same thing happened. I don't know if it's related to the above problem or not, or if there's just something wrong with my configuration.

Antway, it's getting late and I'm going home, but I'll look here for any updates or information tomorrow.

Thanks for the help Ian!
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Re: Hmmm...

Post by raX »

Mike R. wrote:Well, I commented that line out of my php.ini, and it fixed the problem. It allowed me to login, create a new password, and then start editing the configuration. However, when I clicked on the "graphs" tab at the top of the page, it took me to the graphs page then I couldn't go anywhere from there. None of the tabs or buttons worked. I had to restart the browser and relog in to get back to cacti. I went through the process again and the same thing happened. I don't know if it's related to the above problem or not, or if there's just something wrong with my configuration.
The problem you are experiencing now is a known one. Check out the following thread for more details:

http://www.raxnet.net/board/viewtopic.php?t=1811
Mike R. wrote:Thanks for the help Ian!
No problem :D Next time someone comes to me with this problem, I will know exactly how to fix it. Not only that, but now I know to update my win32 install doc so users do not add the 'include_path' line to their php.ini file.

-Ian
Mike R.

It works!

Post by Mike R. »

Woohoo! Cacti is alive and kickin'! After making the requisite changes to my php.ini and my apache config, Cacti is working like a charm. :D
aubhall
Posts: 2
Joined: Thu Jul 04, 2002 9:42 am
Contact:

Getting the same error

Post by aubhall »

Getting the same error as the rest of this tread tried commenting out the lines of the include_path but no joy. Any ideas?

Using winnt4
iis4
latest cacti
claquetteman
Posts: 13
Joined: Thu Jul 03, 2003 10:20 am
Location: France

Re: Fatal error: Cannot redeclare title_trim

Post by claquetteman »

ETNOC wrote:Fatal error: Cannot redeclare title_trim() (previously declared in C:\webroot\cacti\include\functions.php:27) in c:\webroot\cacti\include\functions.php on line 27
Hi my english is poor but i have a piece of explanation, i get the same problem as you

i think you should change your php.ini like :

include_path = C:/Apache2/htdocs/cacti

cacti works correctly now
Stream

Still the same probs

Post by Stream »

Have tried to comment out the include_path but without luck. Still get the same error message.
W2K profes.
PHP 4.3.2
MYSQL 4.0.14b
Cacti 0.8.2a

What is the problem? Help please :cry:
Stream

Working

Post by Stream »

A reboot solved the problem. Now its working.
sweeet :D
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests