View Full Version : Cannot redeclare update_whoonline()
October 13th, 2006, 11:59 AM
Trying to upgrade from 5.21 to 5.5 and I get the following error when I try to upgrade from 5.3 to 5.5
Fatal error: Cannot redeclare update_whoonline() (previously declared in /path/to/album/photo-album/pp-inc.php:4118) in /path/to/album/photo-album/forums/phorum.php on line 479
Album is integrated with phorum (users authentication)
October 13th, 2006, 12:51 PM
You need to ensure when upgrading you upload all the new required files.
October 13th, 2006, 01:55 PM
I have uploaded the following files:
1. All *.php in album's root directory exept config-inc.php.NEW, config-int.php.NEW, inc_features.php, and inc_photopost.php
2. nothing for me to upoad in /forums . I use phorum.php wich is not included in zip file (custom integration module)
3. english.php in /languages
4. all *.tmpl that had do be upgraded.
Did I miss something? I have already done that twice.
Thank you for your time
October 13th, 2006, 06:44 PM
There is your problem. Your using some none standard custom file and you need to alter it.
The following functions need to be removed from your phorum file I think these are the ones
October 14th, 2006, 03:08 AM
I removed the following functions from phorum.php
and it worked
I did not remove function convert_markups. If I remove it I get an error message.
The problem is that now I get another error
Fatal error: Call to undefined function: get_forum_style() in /path/to/album/photo-album/pp-inc.php on line 562
I had to comment line 562 in pp-inc.php and because I did not get the css loaded I had to add a line in $header in order to load the css file.
Most parts of my album work, but there are many areas that do not work as I get the "get_forum_style()" error in line 3131.
Any ideas on how to fix this problem.
I copied function get_forum_style() from /forums/photopost.php and placed it in /forums/phorum.php and enerything seems to work fine.
I will test the script to make sure that threre are no other problems.
October 14th, 2006, 08:25 AM
yep new function you needed to add.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.