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 June 23rd, 2010, 10:05 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2003
Posts: 10
SQL error

Last weekend I upgraded from 5.2x to 7.01 and it pretty much went fine. When upgrading to 5.5 I received the error ""Error: Duplicate entry '223' for key 1" errors and "Error: Duplicate column name 'lastphoto'" but otherwise all was ok and worked fine.

I did however start to receive some emails with query problems as shown below:
--------------------------
SELECT id,user,userid,cat,storecat,date,title,description,ismature, keywords,bigimage,width,height,filesize,views, medwidth,medheight,medsize,approved,rating,votes, allowprint,numcom,lastposter FROM pp_photos WHERE userid= AND storecat=0 ORDER BY disporder, date DESC

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 storecat=0 ORDER BY disporder,date DESC' at line 1

If you need assistence or feel this is a 'bug'; please report it to our support forums at: Photopost Pro Bug Reports - PhotoPost Community
------------

A quick look at the code indicates that userID was not filled in, but I don't know what query/feature is being run when this happens.

Any ideas?

thanks,
VW Derf is offline   Reply With Quote
Old June 24th, 2010, 08:41 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,680
Try changing this in showgallery.php

Code:
Content visible to verified customers only.
to 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.

Last edited by Chuck S; June 27th, 2010 at 04:21 PM.
Chuck S is offline   Reply With Quote
Old June 27th, 2010, 03:04 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2003
Posts: 10
Just did that update and now I get this error:
Code:
Content visible to verified customers only.
VW Derf is offline   Reply With Quote
Old June 27th, 2010, 04:21 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,680
reapply the edit above.
__________________
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 June 27th, 2010, 05:05 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2003
Posts: 10
Thanks,

So far so good. I cant' get the error to re-appear, but I'll give my users a couple of days to verify.
VW Derf is offline   Reply With Quote
Old June 27th, 2010, 06:29 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,680
Nope that should solve your issue.
__________________
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 June 28th, 2010, 09:58 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2003
Posts: 10
Yup, it seems to have. No error messages since this was applied.

Thanks for the quick response!
VW Derf is offline   Reply With Quote
Old June 28th, 2010, 10:52 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,680
glad to assist
__________________
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
SQL Error foxfirediego Photopost Pro Bug Reports 1 June 16th, 2009 10:13 AM
SQL error drare Photopost Pro Bug Reports 3 May 26th, 2009 03:26 PM
SQL Error Gottcha Photopost Pro Installation & Upgrades 3 October 10th, 2005 08:14 AM
SQL Error iphoto Photopost Pro Installation & Upgrades 1 November 12th, 2004 07:49 PM
SQL Error kevinrstruck Photopost Pro Installation & Upgrades 9 October 24th, 2004 08:44 AM


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

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