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 September 22nd, 2005, 06:56 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 14
Unknown table in where clause 5.14 vb 3.5rc3

I am getting emailed error reports similar to the following, version 5.14 pp with vb3.5 rc3, any ideas?

An error was encountered during execution of the query:

SELECT id,user,userid,cat,storecat,storeid,date,title,description,keywords,bigimage,width,height,filesize,views,medwidth,medheight,medsize,approved,rating,extra1,extra2,extra3,extra4,extra5,extra6,disporder,ipaddress,allowprint FROM pp_photos WHERE id=clear.gif

The query returned with an errorcode of:

Unknown table 'clear' in where clause


another example . . .

An error was encountered during execution of the query:

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

The query returned with an errorcode of:

Unknown table 'external' in where clause


Note: Edited to remove quote tags as they appear to mess the display of the forum. Actually, it appears that the forum is not set to wrap characters after a certain number, sorry for the scrollbars.

Last edited by jribz; September 22nd, 2005 at 06:58 AM.
jribz is offline   Reply With Quote
Old September 22nd, 2005, 07:50 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
quite interesting indeed since the query you have is in showphoto.php

Code:
Content visible to verified customers only.
Now photo is typecast as INT so it should be null if it is not an integer so I dont understand how that query can be ran.

Same thing goes for the next query in showgallery $ppuser is typecast as INT so I do not know how the external.php is being injected there

Let me do some checking and shall see if I come up with anything
__________________
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 September 22nd, 2005, 07:57 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 14
Thanks, looking forward to the next reply. Appreciate the support.
jribz is offline   Reply With Quote
Old September 22nd, 2005, 08:20 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Okay well have you modified the code in any way?

Talking with the main developer the response is the same as I have outlined. We typecast the photo and ppuser variables as INT. If they are passed as anything else they are nullified(emptied).
__________________
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 September 22nd, 2005, 08:26 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 14
Quote:
Originally Posted by omegatron
Okay well have you modified the code in any way?

Talking with the main developer the response is the same as I have outlined. We typecast the photo and ppuser variables as INT. If they are passed as anything else they are nullified(emptied).
I don't think I have modified the code in any fashion, but if you tell me what php files might be causing the error, I will upload ones from the download package to see if it resolves the issue. From your previous post I note that you are referring to showphoto.php and showgallery.php, I will reupload those let me know if there are others please.
jribz is offline   Reply With Quote
Old September 22nd, 2005, 08:28 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Those are the one's

The typecast function nullifies any variable that is not as it is suppose to be so I do not understand how those non INT values are in those queries
__________________
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 September 22nd, 2005, 10:12 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 14
I don't really follow what you mean my INT and non INT, just not familiar with that. But I have reuploaded the files and the errors are still coming via email. Any other suggestions on what to look for?
jribz is offline   Reply With Quote
Old September 22nd, 2005, 10:27 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Okay the typecast function process's and makes sure a variable whether its a STRING an INT(integer)

If it is not that then the variable is null so I right now have no other suggestions since I have no idea how those queries are getting ran. The variables themselves should be nullified so let me do some testing
__________________
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 September 22nd, 2005, 12:20 PM   #9 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,860
This is a problem for users of vB3.5 RC3; in pp-inc.php at line 36, you need to change the code in bold:

Code:
Content visible to verified customers only.
This only effects the vB3.5 RC users, we'll have to update all our intgerations accordingly.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old September 22nd, 2005, 02:52 PM   #10 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 14
Quote:
Originally Posted by Michael P
This is a problem for users of vB3.5 RC3; in pp-inc.php at line 36, you need to change the code in bold:

Code:
Content visible to verified customers only.
This only effects the vB3.5 RC users, we'll have to update all our intgerations accordingly.
I have made that change, will let you know if it resolves it. Thanks.
jribz is offline   Reply With Quote
Old September 24th, 2005, 09:49 PM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Jan 2005
Posts: 14
This fixed it, thanks!
jribz 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: Unknown column 'notcat' in 'where clause' mtha Photopost Pro Bug Reports 9 November 3rd, 2005 08:17 PM
SQL Error: Unknown column 'notcat' in 'where clause'(FIXED) qwk98gt Photopost Pro Bug Reports 10 October 21st, 2005 02:37 PM
Unknown Location cointech Photopost Pro How Do I...? 1 October 8th, 2005 11:47 AM
Unknown location when i view whose on line simple_john How Do I? - vBulletin 3.0.X 1 May 18th, 2005 11:17 AM
Unknown column 'myprod' Tom1234 ReviewPost Bug Reports 8 August 3rd, 2004 07:08 PM


All times are GMT -5. The time now is 09:40 AM.

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