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 June 6th, 2009, 11:06 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2006
Posts: 77
Syntax errors

Several syntax errors came in today.

Quote:
SELECT p.id,p.user,p.userid,p.cat,p.title,p.bigimage,p.views FROM cp_products p
LEFT JOIN cp_favorites f ON (f.product=p.id)
WHERE p.approved=1 AND f.userid=

ORDER BY date DESC
LIMIT 30

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 'ORDER BY date DESC
LIMIT 30' at line 5
Quote:
SELECT msgid,datestamp,message,type,product FROM cp_messages WHERE userid= AND status=0 ORDER BY datestamp DESC LIMIT 15

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 status=0 ORDER BY datestamp DESC LIMIT 15' at line 1
Quote:
SELECT userid,username,title,signature,avatar,usergroupid,homepage,icq,aim,yahoo,joindate,posts,birthday,location,interests,occupation,bio,offset FROM cp_users WHERE userid= LIMIT 1

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 'LIMIT 1' at line 1
Marshal Halloway is offline   Reply With Quote
Old June 6th, 2009, 04:31 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 52,666
1. That error is on the recent products block a favorites case although I dont know how that would be triggered so might have to look and see how that case is called

2. The second one is in member.php and again your userid variable is empty just like the first error. My suggestion although again maybe its a bot doing it I would suggest in member.php line 518 this line making it this encapsulating the $uid variable just so it does not throw an error if its 0

Code:
Content visible to verified customers only.
3. Same thing line 355 in member.php try making the line this

Code:
Content visible to verified customers only.
__________________
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
Ajax syntax error v.fey2621 Photopost Pro Installation & Upgrades 1 August 9th, 2008 01:47 PM
Parse error: syntax error Cajunle Classifieds Bug Reports 2 April 18th, 2007 02:53 PM
ou have an error in your SQL syntax pennylessz28 Installs and Upgrade - vBulletin 3.5.X 3 May 22nd, 2006 03:23 PM
HTML syntax wrong aacircle Photopost Pro How Do I...? 5 January 22nd, 2006 08:57 PM
Error in SQL syntax sail247 Classifieds Bug Reports 2 January 30th, 2005 11:30 AM


All times are GMT -5. The time now is 11:26 AM.

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