 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
May 8th, 2008, 11:11 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 62
| Another 6.1 Upgrade Error
UPGRADE From 6.02 to 6.1
An error was encountered during execution of the query:
SELECT * FROM pp_photos WHERE cat IN (3081,Array) ORDER BY date DESC LIMIT 50
The query returned with an errorcode of:
Unknown column 'Array' in 'where clause'
|
| |
May 9th, 2008, 08:31 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Try editing that category and select your view of the gallery thumbnail puzzle etc and save and the error should go away. It seems there is some erroneous data saved in the cat record that should not be there.
|
| |
May 9th, 2008, 09:48 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 62
|
Okay I understand that. How do I find which category this is?
|
| |
May 9th, 2008, 09:58 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
start with any top level category
|
| |
May 9th, 2008, 06:59 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 62
|
New error Chuck, any idea why I am seeing these errors all of a sudden with the upgrade? Good news is, the photo gallery front end is working fine, check it out for yourself... http://www.teambajamarine.com/photopost/
its just the emails buggers I am getting.
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
|
| |
May 9th, 2008, 11:02 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Thats weird error there. Thats from bulkupload and why would defcat be empty.
I think maybe a spider playing with urls.
You can most certainly find the query on line 538 and encapsulate the variable to null that email like so
$defcat in that query would become '$defcat'
|
| |
May 10th, 2008, 01:49 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 62
|
In laymans terms? I dont understand any of that.
|
| |
May 10th, 2008, 09:45 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Laymans terms HMM. You have a spider playing games there with your site script urls only way I can think of that defcat would be empty as you select the category on uploadphoto.php and it is passed to uploadproduct in the url.
In the file bulkupload.php line 538 is this query Code: Content visible to verified customers only.
All your doing on that line is finding $defcat and making it '$defcat'
|
| |
May 10th, 2008, 09:52 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 62
|
ah. got it. you guys are so smart with this stuff, its scary.
|
| |
May 10th, 2008, 09:55 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Nah buddy just experience man. I have been breathing this code for like what over 5 years now.
|
| |
May 10th, 2008, 11:49 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 62
|
Chuck,
Regarding the first post, I am still seeing the error, just a different Array number. I have done what you told me about editing the TOP LEVEL categorys as I have switched them from GALLERY to THUMBNAIL and saved. I ask, should I cahnge all the sub categorys as well?
|
| |
May 10th, 2008, 12:19 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Yes try doing the subcats as well that suggests that a category in that query which is being replaced as array has something saved in edit categories in a field that is not suppose to have that data.
|
| |
May 10th, 2008, 06:33 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 62
|
Wow! So many sub categories to do, but worth it. Not only did it change my Photo Gallery to a nice streamlined new look, I believe I did find the problem in 2 categorys that also had sub categorys. When I altered the THUMBNAIL LAYOUT from the default GALLERY to THUMBNAIL - w/ TITLES another duplicate subcategory popped up and had no data in it and a sort order of 9999. I simply deleted that phantom sub category. This make sense Chuck?
|
| |
May 10th, 2008, 07:35 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
yeah something like I said was out of whack in categories that caused that error and checking and saving the cats again seem to solve it for most people
|
| |
May 10th, 2008, 09:15 PM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 62
|
Bad news Chuck, I still get this error, but I do know what category this is, what do you suggest I try next? Keep in mind, I have only seen these errors after my upgrade from 6.02 to 6.1
SELECT * FROM pp_photos WHERE cat IN (4,Array) ORDER BY date DESC LIMIT 50
|
| |
May 10th, 2008, 10:41 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
I have seen this pop up here and there before 6.1
What category is it? Link?
|
| |
May 11th, 2008, 10:42 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Feel free to pm me an admin login ftp login and I see look if i see anything.
|
| |
May 11th, 2008, 01:03 PM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Jun 2005
Posts: 62
|
Chuck,
Sent you the PM from TEAMBAJAMARINE.
|
| |
May 11th, 2008, 01:28 PM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,940
|
Not a problem will have a look.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 04:46 AM. | |