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 March 4th, 2012, 02:37 AM   #1 (permalink)
Member
 
Join Date: Mar 2006
Posts: 279
Mysql error: SELECT lastphoto FROM pp_users WHERE userid= LIMIT 1

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

SELECT lastphoto FROM pp_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
PP 8.01
vb3.8
PHP 5.3.8
LSWS 5.5
MySQL5.5.11

IIC I have had this error in previous versions as well.
Please advise how to resolve this.
Alfa1 is offline   Reply With Quote
Old March 4th, 2012, 09:13 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,668
What are you doing to get that error?

I would suspect some bot playing with the urls and variables because one would never get an error through normal program operation.

Here is the query in editphoto.php or adm-misc.php

Code:
Content visible to verified customers only.
$puserid is definately defined but you can stop any error if this is indeed a bot by encapsulating $puserid in that query with single quotes

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 March 4th, 2012, 11:20 PM   #3 (permalink)
Member
 
Join Date: Mar 2006
Posts: 279
Im not sure whats causing it. It could be caused by editing / deleting photos.
Alfa1 is offline   Reply With Quote
Old March 5th, 2012, 06:59 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,668
I do not see any issues deleting photos through editphoto but as I said encapsulating that variable indeed will resolve the query error your posting. The reason I say is a bot playing with urls is $puserid would NEVER be empty through normal script operation.
__________________
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
MySQL Error : Lost connection to MySQL server during query TruthElixirX vBGallery Import Scripts 9 March 15th, 2010 05:03 PM
SELECT joindate,usergroupid FROM pp_users WHERE userid= LIMIT 1 foxfirediego Photopost Pro Bug Reports 1 September 5th, 2009 08:46 AM
No pp_users table shickles Photopost Pro Installation & Upgrades 3 January 1st, 2009 12:52 AM
SELECT userid FROM vb_session WHERE sessionhash Fortissimo Photopost Pro Bug Reports 1 November 18th, 2007 12:11 PM
Mysql SELECT Error - not fixed yet? kontrabass Classifieds Installation & Upgrades 1 July 22nd, 2004 09:39 AM


All times are GMT -5. The time now is 08:56 AM.

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