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 17th, 2007, 02:54 AM   #1 (permalink)
cookie
Guest
 
Posts: n/a
MySQL error email

I received some emails that shows :


------------------------------------------------

An error was encountered during execution of the query:

SELECT p.id,p.title,p.userid,p.cat,p.approved,p.storecat,p.bigimage FROM pp_photos p LEFT JOIN pp_categories c ON p.cat=c.id WHERE p.userid= AND c.password='' ORDER BY p.date DESC LIMIT 5

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 c.password='' ORDER BY p.date DESC LIMIT 5' at line 1

If you need assistence or feel this is a 'bug'; please report it to our support forums at: http://www.photopost.com/members/forum/f66/index.html

To turn off these emails, set $debug=0 in your config-inc.php file.

-----------------------------------


An error was encountered during execution of the query:

SELECT photo,comment FROM pp_comments WHERE userid= AND comment != '' ORDER BY date DESC 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 'AND comment != '' ORDER BY date DESC LIMIT 1' at line 1

If you need assistence or feel this is a 'bug'; please report it to our support forums at: http://www.photopost.com/members/forum/f66/index.html

To turn off these emails, set $debug=0 in your config-inc.php file.





any idea how to fix this error?

thanks

Last edited by cookie; December 17th, 2007 at 03:07 AM.
  Reply With Quote
Old December 17th, 2007, 09:00 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
Line 364 of member.php should be this. Simple encapsulate(place single quotes around) the $uid variable in the query.

Code:
Content visible to verified customers only.
also line 540 of that same file the same issue.

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
Old December 18th, 2007, 02:37 AM   #3 (permalink)
cookie
Guest
 
Posts: n/a
Chuck, i replaced the code. but now i get another error message.

We're sorry, but the system experienced an unrecoverable error. Please try again later.

Script:

Query: SELECT photo,comment FROM pp_comments WHERE userid= AND comment != '' ORDER BY date DESC LIMIT 1

Result: 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 comment != '' ORDER BY date DESC LIMIT 1' at line 1

Database handle: Resource id #24
  Reply With Quote
Old December 18th, 2007, 10:04 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
that error tells me you have no applied the first query alteration. If you had added that query you would not get the same error you initially posted and you are.
__________________
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
Getting MySQL error ssslippy Photopost Pro Bug Reports 3 May 14th, 2007 01:51 PM
Mysql error StuartDH Photopost Pro Installation & Upgrades 6 February 23rd, 2006 11:51 AM
Mysql Error - 8meg email(NOT A BUG) trackpads Photopost Pro Bug Reports 4 December 14th, 2005 08:11 PM
MySQL error... Rich Z Photopost Pro Bug Reports 1 August 29th, 2005 09:29 PM
HELP! MySQL error scrap32 Photopost Pro Installation & Upgrades 1 November 15th, 2004 12:18 PM


All times are GMT -5. The time now is 01:51 AM.

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