 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
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.
|
| |
September 22nd, 2005, 07:50 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
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.
|
| |
September 22nd, 2005, 08:20 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
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).
|
| |
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.
|
| |
September 22nd, 2005, 08:28 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
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?
|
| |
September 22nd, 2005, 10:27 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
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. |
| |
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.
|
| |
September 24th, 2005, 09:49 PM
|
#11 (permalink)
| | Junior Member Verified Customer
Join Date: Jan 2005
Posts: 14
|
This fixed it, thanks! |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 09:40 AM. | |