PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   mysql_fetch_row() (http://www.photopost.com/forum/photopost-pro-installation-upgrades/127328-mysql_fetch_row.html)

Barticus89 September 18th, 2006 12:31 AM

mysql_fetch_row()
 
When I click on "My Photos", I get this error:

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

And the main window says "You do not have permission to view this category."

I think I've set the permissions in the admin control panel correctly, but maybe I'm missing something.

Thanks.
-Bart

Chuck S September 18th, 2006 08:44 AM

Link to your site?

Thats a weird error line to have.

Barticus89 September 18th, 2006 12:22 PM

Hi Chuck,
I appreciate your help. My site is a private forum for a fraternity, and they're really weird about outsiders looking at the forums.... Can I give you a temporary guest login?
Thanks for your help.
-Bart

Chuck S September 18th, 2006 12:51 PM

You can

Barticus89 September 20th, 2006 06:55 PM

Chuck,

When I try to create an album from my user account, it does not get created, and I get this error:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/phibeta2/public_html/photos/pp-inc.php on line 4250

When I try to create categories in the Admin Control Panel, I get this error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/phibeta2/public_html/photos/adm-cats.php on line 241
And it says, "Unable to find categoy: 508"

However, if I look at the directory structure on the server, the 508 directory is there, along with a bunch of others (apparently created as I've tried to set up new categories.)

Any ideas about what might be wrong? I've checked my permissions, and /data and all the subdirectories are set to 755.

Thanks,
-Bart

Barticus89 September 21st, 2006 11:45 AM

Also, I'm getting errors when I even just click on a category under the Main heading.
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/phibeta2/public_html/photos/showgallery.php on line 122
And the display area says, "You do not have permission to view this category"

I also get these errors when I upload photos during the bulkupload process, when the redirect page comes up that says the upload was successful. These error messages are at the top of the screen before it takes me to the category where they were uploaded (where it says I don't have permission to view this category).

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

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

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

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

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

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

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

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

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

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

Chuck S September 21st, 2006 02:38 PM

Hello still no info from you so without knowing more on the exact situation hard to say. In your global options set display errors as the default in debug option.

Did you upgrade and not run an upgrade script? we need to see the real error to comment so turn on the debug and post the real error

Chuck S September 21st, 2006 02:39 PM

Check to see your categories table is not using phpmyadmin

Barticus89 September 21st, 2006 03:00 PM

Ok, I turned debug "on". When I simply try to view a category under the Main heading, this error appears:

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

Script:

Query: SELECT c.id,c.catname,c.thumbs,c.cattype,c.parent,c.theme,c.thumbtype, c.sortorder,c.frames,c.intro,c.introtitle,c.introcopy,c.ratingtype,c.takevotes,c.ismember,n.userid FROM pp_categories c LEFT JOIN pp_notify n ON (n.userid='1' AND n.photo=c.id AND n.type=1) WHERE c.id=505

Result: Unknown column 'c.thumbtype' in 'field list'

Database handle: Resource id #22

Barticus89 September 21st, 2006 03:02 PM

Quote:

Originally Posted by Chuck S (Post 1172589)
Check to see your categories table is not using phpmyadmin

Please explain how to do that, Chuck. I have no idea what that means.
Thank you.
-Bart

Chuck S September 21st, 2006 04:59 PM

In your control panel of your site you should see a phpmyadmin link

You can in there view your database and check the table names and select repair or use the sql box and type this

REPAIR TABLE pp_categories

Again without more info on what you did to your site like upgrading or what not I am stabbing in the dark

Barticus89 September 21st, 2006 06:38 PM

Done. Repair status: OK.

This is a re-install. A long time ago, I had an older version of Photopost on the server, but it was using it's own database and installed in a different directory (/gallery), and I couldn't get it to work well so I took it off. This time around, I chose to use one common database for vBulletin and Photopost, installed it in a different directory (/photos). Do you think there may be some lingering settings, tables, code, etc that's messing with the new installation?

These are colocated servers running Linux 2.6.16.17-grsec on an i686 with Apache 1.3.36 (Unix), PHP 4.4.2 and mySQL 4.1.21-standard.

Hope that helps. Thanks.
-Bart

Chuck S September 21st, 2006 10:14 PM

Looks to me like you have old database tables. if this is a total reinstall probaly best to drop the photopost tables and reinstall otherwise you need to run the applicable upgrade scripts from your last version forward if your using an older database structure

Barticus89 September 22nd, 2006 08:17 PM

The upgrade script took care of the problems. Thanks Chuck.
-Bart

mukoh October 6th, 2006 12:41 PM

I am getting the same type errors.
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/mukohbox55/domywife.com/forums/photopost.php on line 373 Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/mukohbox55/domywife.com/forums/photopost.php on line 332

What can I do? Chuck the site is domywife.com (NOT SAFE FOR WORK)

Chuck S October 6th, 2006 02:05 PM

Using your sites control panel use phpmyadmin and type this sql when viewing the photopost database

REPAIR TABLE pp_iponline


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