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 October 21st, 2005, 09:29 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 161
SQL Error: Unknown column 'notcat' in 'where clause'(FIXED)

Hey guys...

I've installed a fresh copy of PhotoPost 5.21 on a clean database for a new project, and got the following error while trying to move a category from beneath one parent to under another parent category.

Code:
Content visible to verified customers only.
Any idea why this might be happening and what I can do to fix it?
qwk98gt is offline   Reply With Quote
Old October 21st, 2005, 09:33 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 161
Ok, something just occurred to me within 5 seconds of posting that question which may help out. I believe that this is a bug in the PhotoPost code.

1. If the NEW parent category is set to "Contains Thumbnails? = No" and the category you are moving beneath it is set to "YES" then the error is generated and the category is bumped up as a new top-level category.

2. If you temporarily set the NEW parent category to "Contains Thumbnails? = Yes" you can move the child category beneath it w/o an error being generated. Then you can go back to the new parent category and set "Contains Thumbnails? = No".


It seems that there ought to be some logic in the PHP code that lets a child category containing thumbnails to be moved beneath a parent category tha does NOT contain thumbnails. Many of us have our galleries set up like this with empty parent categories for the sole sake of having a hiearchy that looks more like our forums hiearchy.

If that makes sense.
qwk98gt is offline   Reply With Quote
Old October 21st, 2005, 10:10 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
well way before we get to any query stuff we kill the process so why not on yours? If I set a category to no thumbs I get a screen that says you cant upload to that category don't you?

if ( $category == "notcat" ) {
diewell( $Globals['pp_lang']['topcat'] );
}
__________________
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 October 21st, 2005, 10:40 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 161
I'm not sure if this happens on my installation or not.
qwk98gt is offline   Reply With Quote
Old October 21st, 2005, 10:53 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Well try uploading to the category that is marked no thumbs and sees what happens.

Your reporting that you get an SQL ERROR and I am saying I get a diewell message and you should as well which kills the page before any queries can run
__________________
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 October 21st, 2005, 12:06 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 161
Yes, if I try to upload directly to the parent category, then I get the error dialog box that says the category that I have chosen is a top level category.

But why would this matter if I was trying to move a child category into that parent category?
qwk98gt is offline   Reply With Quote
Old October 21st, 2005, 01:47 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 161
Thanks, Chuck. That seems to have worked perfectly. Is this something that you will talk to Michael about incuding in future releases, or should I be prepared to make similar edits to the code in the future?
qwk98gt is offline   Reply With Quote
Old October 21st, 2005, 02:08 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Hello

This is a proposed fix that simply replicates the catmoveopt into a mini function in adm-inc.php and we then call admoveopt which does not set catoptions variable with no thumbs to NOTCAT.

The main function in pp-inc.php needs this code to function on the front end. It is safe to run this

Michael will look over my proposed fix as always and either use it or may find another resolution but no worries the issue will be fixed one way or another.
__________________
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 October 21st, 2005, 02:56 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 161
Thanks again.
qwk98gt is offline   Reply With Quote
Old October 21st, 2005, 03:16 PM   #10 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,858
Actually, all that needs to be done is the line in pp-inc.php at 1705:

Code:
Content visible to verified customers only.
I already coded in the $nothumbs parameter (and use it in the adm-cats), just didn't finish it out on that line.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old October 21st, 2005, 03:37 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 161
Thanks, Michael. I'll give that a shot.
qwk98gt 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: Unknown column 'notcat' in 'where clause' mtha Photopost Pro Bug Reports 9 November 3rd, 2005 09:17 PM
Unknown table in where clause 5.14 vb 3.5rc3 jribz Photopost Pro Bug Reports 10 September 24th, 2005 10:49 PM
New Install, unknown column 'albums' in 'field list' elyk Photopost Pro Installation & Upgrades 8 May 26th, 2005 10:09 AM
Unknown column 'myprod' Tom1234 ReviewPost Bug Reports 8 August 3rd, 2004 08:08 PM


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

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