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 July 14th, 2005, 07:53 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jun 2003
Location: Wales
Posts: 30
5.13 + ubbthreads - statistics fail

I upgraded 2 sites to 5.13 with ubbthreads integration including the new 5.13 forum/threads.php

One worked the other had "unrecoverable errors".

It turns out that if the statistics sidebar is on, then this error is identified:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/httpd/site/mysite/htdocs/myphotopost/forums/threads.php on line 56
Line 56 seeks the SQL table that has my Admin-forum-options set to (ubb_) then it appends Cache, so seeks for the table "ubb_cache" that does not exist. It used to work in 5.11 - what should I alter to get this to function?

Code in 5.13 is like this - lines 48/60
// For each BB, get the total number of users
//

function get_totalusers() {
global $Globals, $db_link;

$query = "SELECT C_Users FROM {$Globals['dprefix']}Cache";
$queryv = ppmysql_query($query, $db_link);
list( $totalusers ) = mysql_fetch_row($queryv);

return( $totalusers );
}

//

The photoposts work is statistics are switched off in admin.
encaustic is offline   Reply With Quote
Old July 14th, 2005, 10:11 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Okay you have an old threads. try changing the query line here as you see

$query = "SELECT C_Users FROM {$Globals['dprefix']}Cache";

to

$query = "SELECT COUNT(*) FROM {$Globals['dprefix']}Users";
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 14th, 2005, 10:56 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jun 2003
Location: Wales
Posts: 30
That worked a treat and seems to have solved the problem perfectly thanks.
encaustic 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
Tentative to upgrade from 4,67 fail jean louis Classifieds Installation & Upgrades 5 December 28th, 2004 06:22 PM


All times are GMT -5. The time now is 04:50 PM.

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