TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   Fatal Error: Cannot redeclare partial_str() (http://www.talkphp.com/absolute-beginners/1742-fatal-error-cannot-redeclare-partial_str.html)

obolus 12-15-2007 04:45 AM

Fatal Error: Cannot redeclare partial_str()
 
I helped build a site for a gaming tournament last year, but the php coding was done almost entirely by someone else. It's a pretty sophisticated setup, and I'm still learning php. I got a message that the site was broken and this is the error being thrown when I pull up the site:

Quote:

Fatal error: Cannot redeclare partial_str() (previously declared in /xxx/xxx/phpincludes/functions.php:68) in /xxx/xxx/xxx/xxx/widgets.php on line 53
As far as I know, none of the 4 people who have ftp access have tinkered with the site. Especially since there isn't a need for updates. Could someone point me in the right direction as to how to fix this?

kevthedude 12-15-2007 07:41 AM

This message means that you're making a function with the same name twice. In the widgets.php it's being called again but it's already in functions.php. You have to either rename one or remove one.

Wildhoney 12-15-2007 06:12 PM

...Or even maybe you're including the file twice. That's why I use include_once.

obolus 12-15-2007 06:58 PM

That's what I figured the problem was, but I'm wondering why it happened just out of the blue/at random, when the site was fine for the past few months. Hmmm.

Thanks for the replies!


All times are GMT. The time now is 10:00 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0