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 Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old May 19th, 2008, 07:31 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 124
database query error in 6.1

I have upgraded Photopost, Classifieds and Reviewpost so I'm not sure which one is causing this error, but any help is most appreciated.

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

SELECT catname,extra1,extra2,extra3,extra4,extra5,extra6,numextra FROM pp_categories WHERE id=

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 '' 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

To turn off these emails, set $debug=0 in your config-inc.php file.
ncangler is offline   Reply With Quote
Old May 19th, 2008, 09:05 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,668
I suggest you look at which product has a prefix of pp_

I would think Photopost your bulkupload.php file and my main question would be why is your defcat variable empty as that should never happen but you can encapsulate the variable in that query to stop that error

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 May 19th, 2008, 10:35 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 124
The "pp_" prefix would be a giveaway wouldn't it. Looks like the ' before $ was missing for some reason. id='$defcat'",

Thanks Chuck!
ncangler is offline   Reply With Quote
Old May 20th, 2008, 06:55 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,668
No it was not missing the single quotes around that variable is something I added just for you. Really what I was saying outloud here is I would have no idea why your defcat variable would be empty since thats passed on the natural progression from the upload script.
__________________
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 May 24th, 2008, 12:41 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 322
Quote:
Originally Posted by ncangler View Post
The "pp_" prefix would be a giveaway wouldn't it. Looks like the ' before $ was missing for some reason. id='$defcat'",

Thanks Chuck!
Again thanks Chuck!
Same error here and same solution don't know why I also missing the ' before and after $defcat
aberg 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
An error was encountered during execution of the query ccaldwell Photopost Pro Installation & Upgrades 8 May 9th, 2008 11:03 AM
Execution of a Query Error ******* nuguru Photopost Pro Bug Reports 3 December 7th, 2006 06:12 PM
Database query hob Photopost Pro Installation & Upgrades 1 February 28th, 2006 05:41 PM
all ads - query error cnczone Classifieds Bug Reports 2 July 20th, 2004 08:44 AM


All times are GMT -5. The time now is 09:55 AM.

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