Fatal error: Fatal error: Cannot redeclare addgetpostvars() in ....
Posted by Metalixia
Fatal error: Fatal error: Cannot redeclare addgetpostvars() in .... February 24, 2006 04:56AM |
Registered: 16 years ago Posts: 4 |
Hiya, I've been using Phorum for about 3 years, and I love it.
Recently, I migrated my content to another server, and I now get the following message if I try to view a page whilst not logged in:
Fatal error: Cannot redeclare addgetpostvars() in /var/www/XXXXXXXXXXXXXXXXX/devega/htdocs/board/common.php on line 7
My message board is here: [www.sega-devega.net]
Could someone spread some light over this issue?
Thanks,
Lewis
Recently, I migrated my content to another server, and I now get the following message if I try to view a page whilst not logged in:
Fatal error: Cannot redeclare addgetpostvars() in /var/www/XXXXXXXXXXXXXXXXX/devega/htdocs/board/common.php on line 7
My message board is here: [www.sega-devega.net]
Could someone spread some light over this issue?
Thanks,
Lewis
February 24, 2006 05:20AM |
Admin Registered: 17 years ago Posts: 8,532 |
I think some part of your page is loading common.php for a second time. If you change all include statements that include the common.php script to use include_once("./common.php"), the problem should not occur in that case.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Fatal error: Fatal error: Cannot redeclare addgetpostvars() in .... February 24, 2006 06:37AM |
Registered: 16 years ago Posts: 4 |
February 24, 2006 07:09AM |
Admin Registered: 17 years ago Posts: 8,532 |
Not really (Phorum 3 is officially no longer supported and there's more than enough work to do for Phorum 5 already). The problem simply is that somehow the function addgetpostvars() is defined twice. It's either because common.php is loaded twice or because the function definition is in two different files. You should be able to find the spot where one of these two occurs by searching through the files.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Fatal error: Fatal error: Cannot redeclare addgetpostvars() in .... February 24, 2006 11:10AM |
Registered: 16 years ago Posts: 4 |
February 24, 2006 11:34AM |
Admin Registered: 17 years ago Posts: 8,532 |
Sure, ... but we did not change those files either ;)
Still something apparently is reloading that common.php file. If you change all occurances of include("./common.php") to include_once("./common.php") it should work. If not, then you missed a spot (maybe require is used instead of include) or your PHP is somehow broken.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Still something apparently is reloading that common.php file. If you change all occurances of include("./common.php") to include_once("./common.php") it should work. If not, then you missed a spot (maybe require is used instead of include) or your PHP is somehow broken.
Maurice Makaay
Phorum Development Team



Re: Fatal error: Fatal error: Cannot redeclare addgetpostvars() in .... February 25, 2006 04:04PM |
Registered: 16 years ago Posts: 4 |
February 25, 2006 07:00PM |
Admin Registered: 17 years ago Posts: 8,532 |
Sorry, you do not have permission to post/reply in this forum.