TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-15-2007, 04:45 AM   #1 (permalink)
The Acquainted
 
obolus's Avatar
 
Join Date: Oct 2007
Location: florida
Posts: 110
Thanks: 36
obolus is on a distinguished road
Default 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?
obolus is offline  
Reply With Quote
Old 12-15-2007, 07:41 AM   #2 (permalink)
The Wanderer
 
Join Date: Dec 2007
Posts: 7
Thanks: 2
kevthedude is on a distinguished road
Default

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.
kevthedude is offline  
Reply With Quote
The Following User Says Thank You to kevthedude For This Useful Post:
obolus (12-15-2007)
Old 12-15-2007, 06:12 PM   #3 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

...Or even maybe you're including the file twice. That's why I use include_once.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following 2 Users Say Thank You to Wildhoney For This Useful Post:
obolus (12-15-2007), SOCK (12-15-2007)
Old 12-15-2007, 06:58 PM   #4 (permalink)
The Acquainted
 
obolus's Avatar
 
Join Date: Oct 2007
Location: florida
Posts: 110
Thanks: 36
obolus is on a distinguished road
Default

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!
obolus is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 04:34 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design