PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Cannot redeclare update_whoonline() (http://www.photopost.com/forum/photopost-pro-installation-upgrades/127945-cannot-redeclare-update_whoonline.html)

nikos October 13th, 2006 11:59 AM

Cannot redeclare update_whoonline()
 
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)

Please advise.

Chuck S October 13th, 2006 12:51 PM

You need to ensure when upgrading you upload all the new required files.

nikos 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
Nikos

Chuck S 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

function ppconvert_markups
function update_whoonline
function get_whoonline

nikos October 14th, 2006 03:08 AM

I removed the following functions from phorum.php

function update_whoonline
function get_whoonline
function cache_catonline

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.
Thank you,
Nikos

------------------------------------------------------
Solved
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.

Nikos

Chuck S October 14th, 2006 08:25 AM

yep new function you needed to add.


All times are GMT -5. The time now is 09:04 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97