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 June 11th, 2004, 10:51 AM   #1 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
PP 4.8c incompatible with PHP 4.3.6

I've reported on another thread a problem with function mysql_num_rows() that popped up since my host upgraded their PHP to 4.3.6

Now, I'm getting reports from users that are getting the same error in several other places where this function is used, like listing all photos in any category.

These are the errors when I try to list all photos on my site:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /path/to/photopost/showgallery.php on line 409

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /path/to/photopost/showgallery.php on line 416
note paths edited for the sake of reading

I need a fix for these urgent!

Thanks!
Ricardo
rbl is offline   Reply With Quote
Old June 11th, 2004, 12:16 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
Well mysql_num_rows is not incompatible with 4.3.6 at least thats what php.net says

http://www.php.net/manual/en/functio...l-num-rows.php

That is at least what they say. I dont have 4.3.6 to test on.
__________________
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 June 11th, 2004, 12:23 PM   #3 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Well.. maybe not incompatible, pardon my english =)

I can't had count(*) to it because this is the main function that calls the photos from the database in showgallery.php and not a simple function to count the number of rows.
rbl is offline   Reply With Quote
Old June 11th, 2004, 12:29 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
What I am saying is given PHP.net documentation mysql_num_rows and * are still valid thats all I am saying.
__________________
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 June 11th, 2004, 12:32 PM   #5 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
I'm not questioning that!
But that doesn't change the fact that I'm getting these errors all over the place where mysql_num_rows is used.
rbl is offline   Reply With Quote
Old June 11th, 2004, 04:15 PM   #6 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
what about replacing mysql_num_rows by mysql_fetch_array?
rbl is offline   Reply With Quote
Old June 11th, 2004, 04:20 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
well I just installed bigapache on my home machine with includes php 4.36 and mysql 4.0.18 and everything is fine with mysql_num_rows and Photopost.

Let us check into this more. I will talk with Michael some about this when he gets back in town. Everything I am reading in the php docs etc says no problem with mysql_num_rows and it works fine for me so dont know yet whether its just server specific or whether they updated mysql as well when they updated php and messed something up.
__________________
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 June 11th, 2004, 04:28 PM   #8 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
I appreciate it!
Let me know if you need access to a phpinfo page.
rbl is offline   Reply With Quote
Old June 12th, 2004, 11:05 AM   #9 (permalink)
Registered User
 
Join Date: Sep 2002
Posts: 40
I'm running 4.3.6 and have no problems.
DerekT is offline   Reply With Quote
Old June 12th, 2004, 11:11 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
Yep there is not a problem with php 4.3.6 and mysql_num_rows. I have installed 4.3.6 and also went back and checked phpinfo pages on some of the last installs I have done and many are running 4.3.6 and some even 4.3.7 with no problems

Has to be an isolated incident where RBL's host messed something up when they updated their php/mysql

rbl you can PM me a test account and url etc and I will take a look
__________________
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 June 30th, 2004, 01:24 AM   #11 (permalink)
rbl
Senior Member
Verified Customer
 
Join Date: Aug 2003
Location: Portugal
Posts: 492
Send a message via AIM to rbl Send a message via MSN to rbl
Sorry for the delay on this one but it was a very nasty bug to solve.
After a few tries, we have isolated this to a kernel problem. Took a lot of time because the logs were clean: no clues, no traces... nothing.

The problem was constant lost connections to the mysql server. These caused the mysql_num_rows errors in every file that used them. I've kept my changes for the times mysql_num_rows was used to count rows. The COUNT(*) function is better.

As soon as I know anything else about this particular kernel issue, I'll post here. Maybe it would be helpfull for someone.

Anyway, my apologies and thanks to everyone that lost time with this issue but unfortunately this was beyhond my control =(

Ricardo

PS: almost forgot! PP is running on php 4.3.7 with no problem whatsoever =)

Last edited by rbl; June 30th, 2004 at 01:26 AM.
rbl is offline   Reply With Quote
Old June 30th, 2004, 09:15 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,806
RBL

Understand completely. Server issues and misconfigurations etc can be a biatch.
__________________
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
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
question re header-inc.php and install.php Carolem Photopost Pro Installation & Upgrades 1 June 8th, 2005 06:24 AM
Upgrade init.php conflicting with functions_gallery.php golfrewind Installs and Upgrade - vBulletin 3.0.X 2 January 12th, 2005 04:17 AM
Problem with showproduct.php and showcat.php jed423 Classifieds Bug Reports 4 November 14th, 2004 11:48 AM


All times are GMT -5. The time now is 02:45 PM.

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