Welcome!
Log In
Create A New Profile
Home
>
Outdated forums
>
Phorum 3 forums (READ ONLY)
>
Phorum3 Support Forum (READ ONLY)
>
Topic
Fatal error: Fatal error: Cannot redeclare addgetpostvars() in ....
Posted by Metalixia
|
Fatal error: Fatal error: Cannot redeclare addgetpostvars() in .... February 24, 2006 03:56AM |
Registered: 7 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 04:20AM |
Admin Registered: 8 years ago Posts: 8,782 |
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
my blog
linkedin profile
secret sauce
|
Re: Fatal error: Fatal error: Cannot redeclare addgetpostvars() in .... February 24, 2006 05:37AM |
Registered: 7 years ago Posts: 4 |
|
February 24, 2006 06:09AM |
Admin Registered: 8 years ago Posts: 8,782 |
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
my blog
linkedin profile
secret sauce
|
Re: Fatal error: Fatal error: Cannot redeclare addgetpostvars() in .... February 24, 2006 10:10AM |
Registered: 7 years ago Posts: 4 |
|
February 24, 2006 10:34AM |
Admin Registered: 8 years ago Posts: 8,782 |
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
my blog
linkedin profile
secret sauce
|
Re: Fatal error: Fatal error: Cannot redeclare addgetpostvars() in .... February 25, 2006 03:04PM |
Registered: 7 years ago Posts: 4 |
|
February 25, 2006 06:00PM |
Admin Registered: 8 years ago Posts: 8,782 |
Sorry, you do not have permission to post/reply in this forum.