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 December 18th, 2009, 08:31 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2009
Posts: 8
SQL error after 7.0 upgrade

I just upgraded from 5.3 to 7.0. PP is sending me emails with the following:

Quote:
An error was encountered during execution of the query:

SELECT id,user,userid,cat,storecat,date,title,description,ismature,keywords,bigimage,width,height,filesize,views,medwidth,medheight,medsize,approved,rating,votes,allowprint,numcom,lastposter FROM pp_photos WHERE userid= AND storecat=0 ORDER BY disporder,date DESC

The query returned with an errorcode of:
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 'AND storecat=0 ORDER BY disporder,date DESC' at line 1
It looks like the userid is missing causing the SQL error, but I can't figure out what page this is on as from my quick look over my gallery frontend I don't see anything obviously missing or erroring.
cdub is offline   Reply With Quote
Old December 18th, 2009, 09:28 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
well that url I would suspect is coming from a bot playing with urls. I dont see anywhere that we dont pass the userid called ppuser

You can post a url here and as well to diagnose this try turning your debug setting to display errors not email errors and click around your gallery and see if you can replicate where its happening.
__________________
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 December 18th, 2009, 10:02 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2009
Posts: 8
Can you explain how to do this:

Quote:
turning your debug setting to display errors
I don't see it in any documentation.

As for the URL its http://www.woodcarvingillustrated.com/gallery/
cdub is offline   Reply With Quote
Old December 18th, 2009, 10:11 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
it is in your photopost admin panel under global options
__________________
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 December 18th, 2009, 01:14 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2009
Posts: 8
Aww the most obvious place...

I got that turned on, but I don't see any errors. Any way to easily change the debug routine to include some server vars?

$_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT'] . $_SERVER['HTTP_REFERER'] . $_SERVER['REQUEST_URI']

would be mighty helpful.
cdub is offline   Reply With Quote
Old December 18th, 2009, 02:04 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
no sorry none of those would be useful in any manner to our discussion.

Basically what I am saying is the only way this is going to happen is if a bot is playing with urls I would think. I dont see anywhere in the actual program we are passing an empty ppuser statement.

JacobG Gallery - Wood Carving Illustrated Photo Gallery

Thats a members gallery link in your program

- Wood Carving Illustrated Photo Gallery

I can do something like this and I dont see errors so the issue really is how is this error happening. The problem has to be generated someway through showgallery that much I know because that query is only issued one place and only if ppuser exists. Thats what I really mean by changing to display the error and not email it. You then can try and click links like that and see if you can replicate the issue.

I sure cant on your site.
__________________
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 December 18th, 2009, 02:42 PM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2009
Posts: 8
ok, show errors is enabled.
cdub is offline   Reply With Quote
Old December 18th, 2009, 02:53 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Yep still dont see anywhere in the program clicking links to showgallery that one can get the error.
__________________
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 December 21st, 2009, 11:43 AM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2009
Posts: 8
I think I fixed this. It looks like the error was coming from an old renamed script that was never removed from a previous upgrade. Sorry for the fuzz.
cdub is offline   Reply With Quote
Old December 21st, 2009, 11:44 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Thanks not a problem yeah no wonder we could not find the issue clicking through the normal files.
__________________
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 December 29th, 2009, 03:01 PM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2006
Posts: 8
Quote:
Originally Posted by cdub View Post
I think I fixed this. It looks like the error was coming from an old renamed script that was never removed from a previous upgrade. Sorry for the fuzz.
I'm having the same error. Could you let me know which script triggered the error?
Infinite is offline   Reply With Quote
Old December 29th, 2009, 09:32 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
His issue seems to be from some old custom script he was using.
__________________
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
Sql Error after upgrade TCS Photopost Pro Bug Reports 3 May 13th, 2009 09:17 PM
Getting SQL error emails after upgrade damon18 Photopost Pro Bug Reports 1 July 16th, 2008 09:26 AM
SQL error after upgrade to 6.0 Pasqualis Photopost Pro Bug Reports 1 October 2nd, 2007 10:24 AM
SQL Error after Upgrade dondaniel Photopost Pro Installation & Upgrades 3 September 23rd, 2007 09:06 AM
SQL error after VB3 upgrade tstaut Photopost Pro Installation & Upgrades 4 December 14th, 2004 12:17 PM


All times are GMT -5. The time now is 09:06 PM.

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