PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old October 13th, 2006, 11:59 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Posts: 11
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.
nikos is offline   Reply With Quote
Old October 13th, 2006, 12:51 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
You need to ensure when upgrading you upload all the new required files.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 13th, 2006, 01:55 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Posts: 11
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
nikos is offline   Reply With Quote
Old October 13th, 2006, 06:44 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 14th, 2006, 03:08 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Posts: 11
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

Last edited by nikos; October 14th, 2006 at 03:55 AM.
nikos is offline   Reply With Quote
Old October 14th, 2006, 08:25 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
yep new function you needed to add.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with 5.31 : Cannot redeclare update_whoonline() WebDork Photopost Pro Installation & Upgrades 1 July 10th, 2006 06:47 PM


All times are GMT -5. The time now is 11:29 PM.

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