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 Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old December 2nd, 2005, 07:44 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 124
Question database error message(FIXED)

I received several error messages this morning like the one below. Any idea what would cause this? Thanks.

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

SELECT id,catname,template FROM class_categories WHERE id=2forums/images/buttons/collapse_tcat.gif

The query returned with an errorcode of:

Unknown column '2forums' in 'where clause'
ncangler is offline   Reply With Quote
Old December 2nd, 2005, 08:58 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
well I would like to know how the query is running for one. Notice the wrap saying is_numeric($cat) well thats definitely not a numeric cat.

elseif ( is_numeric($cat) ) {
$query = "SELECT id,catname,template FROM {$Globals['pp_db_prefix']}categories WHERE id=$cat";
$ctitleq = ppmysql_query($query, $link);
if ( $ctitleq ) {
list( $catid, $thecatname, $Globals['cattemp'] ) = mysql_fetch_row($ctitleq);
}

I would not worry probally an quirk but I do the query is properly sanitized. $cat is ran through the typecast function and there is even a constraint phrase to only run this query is cat is numeric
__________________
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 2nd, 2005, 09:05 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 124
I have no idea where this came from. The assumption is that someone was in the PHoto Gallery and clicked on something that generated the error message to me. I had about a dozen of them in the inbox this morning.
ncangler is offline   Reply With Quote
Old December 2nd, 2005, 09:48 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
Okay most likely a spider. I dont see how that query would run still.

You can do this though

WHERE id='$cat'"; just encapsulate $cat like so '$cat' and you will not get the errors
__________________
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 2nd, 2005, 10:23 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 124
Thumbs up

Where do I make that change? Do you think it is necessary or should I just forget it? Thanks Chuck!
ncangler is offline   Reply With Quote
Old December 2nd, 2005, 10:49 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,702
You dont have to make it as I think this is a spider doing it but it still boggles my mind how that cat string is getting past the php internal is_numeric clause we use to only run that query if cat is numeric. You can surpress the error by encapsulating the variable which means this

In the query meantioned just make WHERE id=$cat to WHERE id='$cat'
__________________
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
3.01 closed message(FIXED) sbb ReviewPost Bug Reports 2 September 27th, 2005 04:31 PM
3.0 and VB3 - "Required fields" error message(FIXED) rastacat ReviewPost Bug Reports 3 September 4th, 2005 06:41 AM
error message? How serious?? StanJensen Photopost Pro Bug Reports 1 June 19th, 2005 09:21 AM
Error message armagan Bugs From 1.0.0 6 April 2nd, 2005 12:27 PM
error message: cannot connect to the user database asherariel Photopost Pro Installation & Upgrades 1 July 24th, 2004 11:13 AM


All times are GMT -5. The time now is 12:20 PM.

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