PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Warning: mysql_fetch_row() pp-inc.php on line 2836 (http://www.photopost.com/forum/photopost-pro-installation-upgrades/132033-warning-mysql_fetch_row-pp-inc-php-line-2836-a.html)

Silver_2000 May 29th, 2007 08:57 AM

Warning: mysql_fetch_row() pp-inc.php on line 2836
 
After upgrade Im getting these errrors while uploading

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/domain/public_html/photopost/pp-inc.php on line 2836

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/domain/public_html/photopost/pp-inc.php on line 2845


line 2836 is

list( $lastphoid, $lastphoby, $lastphobyid, $lastphotime ) = mysql_fetch_row($lastp);


line 2845 is

list( $lastpostby, $lastpostbyid, $lastposttime, $lastpostlink ) = mysql_fetch_row($lastc);

Chuck S May 29th, 2007 09:36 AM

Have you ran all upgrades you needed to?

What did you upgrade from what version?

Silver_2000 May 29th, 2007 09:52 AM

I think so - I didnt check the version first ...

I reran from 5.2 up ....

Chuck S May 29th, 2007 09:57 AM

well what site is this?

You have 4 licenses and i have viewed every last one of those sites and none of them have that error

Silver_2000 May 29th, 2007 11:05 PM

Quote:

Originally Posted by Chuck S (Post 1197524)
well what site is this?

You have 4 licenses and i have viewed every last one of those sites and none of them have that error

www.Nloc.net/gallery

Chuck S May 30th, 2007 06:00 AM

Okay someone elses site not yours

Your link is wrong above I think you mean this photopost but you have it closed so I cant see anything

http://www.nloc.net/photopost/

Silver_2000 May 30th, 2007 07:28 AM

Quote:

Originally Posted by Chuck S (Post 1197587)
Okay someone elses site not yours

Your link is wrong above I think you mean this photopost but you have it closed so I cant see anything

http://www.nloc.net/photopost/

I closed it to prevent potential DB damage
Its open now

Chuck S May 30th, 2007 07:46 AM

I am not seeing any mysql errors on that site

Silver_2000 May 30th, 2007 07:49 AM

Quote:

Originally Posted by Silver_2000 (Post 1197517)
After upgrade I'm getting these errors while uploading

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/domain/public_html/photopost/pp-inc.php on line 2836

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/domain/public_html/photopost/pp-inc.php on line 2845


While uploading or deleting a file I get the above errors

Doug

Chuck S May 30th, 2007 11:30 AM

I would suggest you reupload all core files and rerun upgrades 5.0 thru the last one no reason I would see that those queries would be wrong

Silver_2000 May 30th, 2007 12:04 PM

I went ahead and deleted everything BUT the data folder and then uploaded 5.6x files and ran the upgrade.pho from 5.0 on and only saw one error that wasnt a result of the changes already existing

it was

Quote:

Error performing MySQL command: UPDATE settings SET setting = 'Powered by: PhotoPost --replaceme--
Copyright 2007 All Enthusiast, Inc.' WHERE id=37
Error: Table 'usernameXX_vbulletin.settings' doesn't exist
it appears the table prefix was left off this command

Still getting same error on upload and on delete

Chuck S May 30th, 2007 12:43 PM

Interesting try turning on display errors in the debug setting in global options and tell me the exact error

Silver_2000 May 30th, 2007 01:56 PM

uploading error

Quote:

We're sorry, but the system experienced an unrecoverable error. Please try again later.

Script:

Query: SELECT id,user,userid,date FROM pp_photos WHERE cat IN (1,500,) ORDER BY date DESC LIMIT 1

Result: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY date DESC LIMIT 1' at line 1

Database handle: Resource id #22

Chuck S May 30th, 2007 03:56 PM

What cat are you trying to upload to?

You can post a test user login here as well

Trying to understand what your doing would help because I see no forseeable reason why you would get that error.

Why is category 500 in that query thats what I want to know obviously your trying to upload somewhere else besides the members gallery because there is a separate set of queries if its the members gallery.

Looks to me somewhere in your categories the children variable is not right.

Try editing your cats and saving them to update the children fields

Silver_2000 May 30th, 2007 04:24 PM

I wasn't doing anything special
I simply clicked upload and then picked a picture and clicked upload

- the good news is that after taking your recommendation of adding a test cat and saving and for good measure updating the user groups from the forum the issue seems to be gone

THANKS !!!

Chuck S May 30th, 2007 04:50 PM

Yep your child field seemed to be fubared


All times are GMT -5. The time now is 02:53 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