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 Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 27th, 2007, 11:52 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2004
Posts: 19
Send a message via MSN to dwaters
Exclamation Bug with Upgrade

We are trying to upgrade from 5.14 to 5.62 and seem to be encountering a bug. We ahve over 20 GB of photos in our database. Our gallery can be found at http://gallery.off-road.com/photobb/ . Here is the details:



We are in the process of upgrading our PhotoPost 5.14 to the latest version, 5.61.

We have an enormously large, over 20 Gigabyte, PhotoPost managed photo gallery.

We're encountering an incredibly long upgrade in the upgrade 5.5 -> 5.6 portion, and what I'm experiencing is that the database is repeatedly doing the same thing over and over again, wasting time and not really accomplishing anything:

Here's the code from the upgrade.php file I'm talking about:

$resulta = mysql_query("SELECT userid FROM {$pp_db_prefix}photos WHERE userid > 0", $link);
while ( list( $puser ) = mysql_fetch_row($resulta) )
{
$resultb = mysql_query("SELECT id,user,date FROM {$pp_db_prefix}photos WHERE userid=$puser ORDER BY date DESC LIMIT 1", $link);

while ( list( $pid, $pname, $pdate) = mysql_fetch_row($resultb) )
{
$resultc = mysql_query("SELECT userid FROM {$pp_db_prefix}users WHERE userid=$puser LIMIT 1", $link);
list ( $checkid ) = mysql_fetch_row($resultc);

if ( $checkid )
{
$resultd = mysql_query("UPDATE {$pp_db_prefix}users SET lastphoto=$pid,lastdate=$pdate WHERE userid=$puser", $link);
}
else
{
$pname = addslashes($pname);
$resultd = mysql_query("INSERT INTO {$pp_db_prefix}users (userid,username,lastphoto,lastdate) VALUES ($puser,'$pname',$pid,$pdate)", $link);
}
}
}

print "<br />Upgrade complete! You should continue to <a href=\"upgrade.php?upgrade=56\">next step</a>";
print "</td></tr></table></td></tr></table>";
exit;

I think that the first select statement in the above code snippet needs to be optimized from:
SELECT userid FROM {$pp_db_prefix}photos WHERE userid > 0
to:
SELECT distinct userid FROM {$pp_db_prefix}photos WHERE userid > 0

As we have hundreds of thousands of rows in our photos table, with almost all of them with the same userid, so it keeps updating the same userid over and over and over again.

Do you concur that this is an appropriate bug fix?
dwaters is offline   Reply With Quote
Old February 27th, 2007, 12:12 PM   #2 (permalink)
Registered User
 
Join Date: Feb 2007
Posts: 2
I Need Help..

First of all I am able to show the gallery in my forumhome but the picture do not display I am only seeing black spaces can someone help me

www.timeplusbeats.tv
jr_george is offline   Reply With Quote
Old February 27th, 2007, 05:14 PM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,794
You can do this if you wish or also add a GROUP BY userid on the end of the query

Now to this other gentleman please refrain from posting in someone else's thread. If you are in need of assistance please open your own support ticket. Your issue though is simple add a trailing slash on the data url in edit integration in admin
__________________
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 February 27th, 2007, 06:28 PM   #4 (permalink)
Registered User
 
Join Date: Feb 2007
Posts: 2
Thanks..

For some strange reason I cannot post anywhere else and I am a license member..all rooms are closed to me.. I need help..

Oh and thanks thanks that worked...
jr_george is offline   Reply With Quote
Old February 27th, 2007, 06:43 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,794
I suggest you read the announcement at the top of every one of our forums on how to become verified
__________________
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
Upload Category is weird. (my last bug report I swear!)(NOTA BUG) rcsmith ReviewPost Bug Reports 1 October 25th, 2005 09:25 PM
5.2 Bug: Random images on main page do not change on refresh(NOT A BUG) South Fork Photopost Pro Bug Reports 3 October 4th, 2005 10:52 PM
upgrade to 2.41 then new adds impossible(NOT A BUG) francisr6 Classifieds Bug Reports 4 August 19th, 2005 02:27 PM
thumbnail prob since 5.12 upgrade?(NOT A BUG) sanddancer Photopost Pro Bug Reports 3 June 30th, 2005 09:34 AM
PhotoPost 4.1.1 install problems still, looks like a bug need free upgrade videorov8847 Photopost Pro Installation & Upgrades 13 January 28th, 2005 11:58 AM


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

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