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 July 28th, 2009, 10:23 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2009
Posts: 8
SQL errors after upgrade

I just upgraded my PP from 5.6 to 6.23. I'm now getting email like the following:

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

SELECT id,user,userid,cat,storecat,title,ismature,bigimage,height,width FROM pp_photos WHERE approved=1 AND storecat=0 AND cat IN (2,c) ORDER BY date DESC LIMIT 34

The query returned with an errorcode of:

Unknown column 'c' in 'where clause'

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.
I get a few different email for different queries, but each has the same
Quote:
Unknown column 'c' in 'where clause'
error in each of them. I haven't run into any errors on the site, but the amount of email is a bit alarming. Any help?
cdub is offline   Reply With Quote
Old July 28th, 2009, 12:53 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Interesting error. I dont see anywhere in our code where we would issue c as a cat number.

The query I beleive is found in showframe.php you can try changing this line in that file

Code:
Content visible to verified customers only.
to say this and see if it helps

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 July 28th, 2009, 01:59 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2009
Posts: 8
That didn't seem to fix this issue. It also looks like the category section on the home page is all hosed, due to this error being with the categories, I assume the issues are connected...You can see this here Main Index - Scroll Saw Woodworking & Crafts Photo Gallery
cdub is offline   Reply With Quote
Old July 28th, 2009, 02:00 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Did you run your upgrades from your last version to the latest?

If I look at your site it looks like your missing important field in the cats table before we can not pull cat info.

You might want to upload your upgrade script and you can safely run 5.2 through 6.2 upgrades again without affecting anything.
__________________
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 July 28th, 2009, 03:15 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2009
Posts: 8
Awesome that looks to have fixed it. Thanks for your help. I adopted this from my predecessor, it looks like he borked the config-inc.php file to have the wrong version in it.
cdub is offline   Reply With Quote
Old July 28th, 2009, 03:20 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
no problem
__________________
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 errors on upgrade rcsmith Classifieds Installation & Upgrades 5 April 14th, 2008 04:08 PM
SQL Errors Fortissimo Photopost Pro Installation & Upgrades 1 April 13th, 2008 10:21 AM
SQL ERRORS in Upgrade from 5.5 to 5.6 ESAD Photopost Pro Installation & Upgrades 30 November 30th, 2006 06:49 PM
SQL errors being emailed after upgrade to 5.3 oldford Photopost Pro Installation & Upgrades 3 May 1st, 2006 04:12 PM
Upgrade to 5.21 sql errors in phpbb2.php kreever Photopost Pro Installation & Upgrades 1 January 23rd, 2006 10:45 AM


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

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