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 May 16th, 2005, 02:35 PM   #1 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 50
line 2786 error

After upgrading to 5.03, I get this message:


Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/shelley/domains/picketfencedesignsforums.net/public_html/gallery/pp-inc.php on line 2786


what is this wanting to know?
pfdwebgal is offline   Reply With Quote
Old May 16th, 2005, 07:57 PM   #2 (permalink)
Senior Member
 
Join Date: Mar 2003
Posts: 1,319
Hi..

Was this an upgrade from an older version of photopost? - i mean a really old version of photopost?, looks like theres some table entries missing for the new query... i'll look into this and report back.

-T
b6gm6n is offline   Reply With Quote
Old May 16th, 2005, 08:24 PM   #3 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 50
it was an upgrade from 4.86
pfdwebgal is offline   Reply With Quote
Old May 16th, 2005, 10:05 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Looking at the line in 5.03 which has nothing to do with a query the only guess to venture is you did not update all the files. Try uploading from 5.03 a new pp-inc.php file.
__________________
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 May 17th, 2005, 10:47 AM   #5 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 50
I did try that. I went ahead and re-uploaded all of the files again this morning and I am still having the same issues.
pfdwebgal is offline   Reply With Quote
Old May 17th, 2005, 10:55 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Might I suggest you try deleting pp-inc.php on the webserver and then reupload it.

Line 2786 is not a mysql query line and in Photopost 5.03 is within the login function that only gets called when a user is on the login screen so your file has to not be getting updated when you try and upload it.
__________________
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 May 17th, 2005, 11:13 AM   #7 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 50
ok...did that...still getting that error; still can't get to the admin panel
pfdwebgal is offline   Reply With Quote
Old May 17th, 2005, 11:39 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Okay what is line 2786 for you in pp-inc.php?

Have you ran all the upgrades from upload.php?

That will tell me alot here. The error on your site if the file is correct should not be there. I just did a phpbb install about 15 mins ago.
__________________
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 May 17th, 2005, 11:56 AM   #9 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 50
what if I just delete the whole dang thing and start over? Will I lose my data tables if I do that?
pfdwebgal is offline   Reply With Quote
Old May 17th, 2005, 12:25 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Yes you will.

The point I am trying to make is with the error your getting the line number does not match any mysql queries so your file would appear at least to me to be old.

If you tell me what line 2786 is in your file we can move forward from there.
__________________
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 May 17th, 2005, 12:51 PM   #11 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 50
i am trying to figure out how to find that line. i don't have anything that has numbers on it....
pfdwebgal is offline   Reply With Quote
Old May 17th, 2005, 01:07 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
A good tool to use would be beyond compare from scootersoftware.com
__________________
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 May 17th, 2005, 05:01 PM   #13 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 50
this is what I got from my server guy...

Here is that line and several around it for context:

2780 if ( $xloop == 0 ) {
2781 $Globals['cats'] = array();
2782 $query = "SELECT
id,ugnoupload,ugnoanno,ugnoview,ugnopost,ugnovote,password,watermark,cat
type,catname,parent,childre
n,thumbs,canzip,moderators,header,footer,headtags FROM {$Globals['pp_db_prefix']}categories";
2783 $resultb = ppmysql_query($query,$link);
2784
2785 // need to do this loop for each group user is a member
of
2786 while ( $row = mysql_fetch_row($resultb) ) {
2787 $arraykey = $row[0];
2788 $Globals['cats'][$arraykey] = $row;
2789 }
2790 }
2791
2792 foreach( $Globals['cats'] as $key => $value ) {
2793 list( $catugid, $ugnoup, $ugnoanno, $ugnoview,
$ugnopost, $ugnovote, $cpass, $cwatermark, $cattype, $catname, $catpa
rent, $children, $catthumb, $catzip, $mods, $header, $footer, $headtags ) = $value;
2794 $noupload=0; $noann=0; $noview=0; $nopost=0; $novote=0;
pfdwebgal is offline   Reply With Quote
Old May 17th, 2005, 05:34 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Okay you did not run your upgrades.

I did not want to run all way through them not knowing what you ran. Open up your board so I can see what it looks like and then we can run the other upgrades. your error should be gone.
__________________
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 May 17th, 2005, 07:45 PM   #15 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 50
open up the board? the url is www.picketfencedesignsforums.net/gallery . LMK what else you need if you need anything else...
pfdwebgal is offline   Reply With Quote
Old May 17th, 2005, 08:06 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
The boards are temporarily down for maintainence. PM me the admin login
__________________
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 May 18th, 2005, 12:37 AM   #17 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 50
you are awesome....

when I tried to rebuild the thumbnails I get this now:

Warning: getimagesize(/home/shelley/domains/picketfencedesignsforums.net/public_html/gallery/data/500/always_dance.jpg): failed to open stream: No such file or directory in /home/shelley/domains/picketfencedesignsforums.net/public_html/gallery/image-inc.php on line 215

Warning: copy(/home/shelley/domains/picketfencedesignsforums.net/public_html/gallery/data/500/always_dance.jpg): failed to open stream: No such file or directory in /home/shelley/domains/picketfencedesignsforums.net/public_html/gallery/image-inc.php on line 261

Warning: Division by zero in /home/shelley/domains/picketfencedesignsforums.net/public_html/gallery/image-inc.php on line 288


and this error message:

Error creating thumbnail! Error code: 1

Command:

"/usr/bin/mogrify" +profile "*" -size 0x100 -quality 70 -geometry 0x100 '/home/shelley/domains/picketfencedesignsforums.net/public_html/gallery/data/500/thumbs/always_dance.jpg'
pfdwebgal is offline   Reply With Quote
Old May 18th, 2005, 07:51 AM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
You tried rebuilding thumbs without finishing the upgrade per the upgrade instructions.

You need to restore the photos table and run through the upgrade script again. Only run step3 of upgrade 486 ONCE.
__________________
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 May 18th, 2005, 08:58 AM   #19 (permalink)
Registered User
 
Join Date: Jan 2005
Posts: 50
i tried to upload some of the photos again and get this error:

Warning: copy(/home/shelley/domains/picketfencedesignsforums.net/public_html/gallery/data/500/thumbs/BLbazziladdict.gif): failed to open stream: Permission denied in /home/shelley/domains/picketfencedesignsforums.net/public_html/gallery/image-inc.php on line 261


and this:


Error creating thumbnail! Error code: 1

Command:

"/usr/bin/mogrify" +profile "*" -size 100x33 -quality 70 -geometry 100x33 '/home/shelley/domains/picketfencedesignsforums.net/public_html/gallery/data/500/thumbs/BLbazziladdict.gif'
pfdwebgal is offline   Reply With Quote
Old May 18th, 2005, 09:33 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Are you restoring your old table to get the photos back?

Looks to me as if your data subdirectories are not set to 777
__________________
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
Bug in slideshow.php: Parse error: parse error, unexpected '\"' in line 282 (FIXED) dontom Photopost Pro Bug Reports 2 September 30th, 2005 09:09 AM
Error: pp-inc.php on line 129 fpoole ReviewPost Installation & Upgrades 14 September 8th, 2005 11:15 AM
install error line 450 bill03 Classifieds Installation & Upgrades 1 August 25th, 2005 08:30 AM
Fatal Error: gallery_NewImages.php Line 69 bbensen Installs and Upgrade - vBulletin 3.0.X 7 July 13th, 2005 07:22 AM
Gallery_Global.php error (Line 202) GiJoe Installs and Upgrade - vBulletin 3.0.X 8 March 14th, 2005 12:38 PM


All times are GMT -5. The time now is 11:27 AM.

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