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 How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 30th, 2007, 10:47 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Location: Pennington, NJ
Posts: 30
Send a message via AIM to sean9715
Question Interesting Error - Any ideas...?

Hey there,

We've been getting reports of the following error. Any ideas of what might be causing this?

> An error was encountered during execution of the query:
>
> SELECT id,cat FROM pp_photos WHERE approved=1 AND storecat=0 AND ((title
> LIKE "% "carnival%" OR description LIKE "% "carnival%" OR keywords LIKE "%

> "carnival%" OR bigimage LIKE "% "carnival%"
> OR extra1 LIKE "% "carnival%" OR extra2 LIKE "%
> "carnival%" OR extra3 LIKE "% "carnival%" OR extra4 LIKE "% "carnival%" OR

> extra5 LIKE "% "carnival%" OR extra6 LIKE "% "carnival%") OR (title LIKE
> ""carnival%" OR description LIKE ""carnival%" OR keywords LIKE
> ""carnival%" OR bigimage LIKE ""carnival%"
> OR extra1 LIKE "%"carnival%" OR extra2 LIKE
> "%"carnival%" OR extra3 LIKE "%"carnival%" OR extra4 LIKE "%"carnival%" OR

> extra5 LIKE "%"carnival%" OR extra6 LIKE "%"carnival%"))AND ((title LIKE
> "% holiday"%" OR description LIKE "% holiday"%" OR keywords LIKE "%
> holiday"%" OR bigimage LIKE "% holiday"%"
> OR extra1 LIKE "% holiday"%" OR extra2 LIKE "%
> holiday"%" OR extra3 LIKE "% holiday"%" OR extra4 LIKE "% holiday"%" OR
> extra5 LIKE "% holiday"%" OR extra6 LIKE "% holiday"%") OR (title LIKE
> "holiday"%" OR description LIKE "holiday"%" OR keywords LIKE "holiday"%"
> OR bigimage LIKE "holiday"%"
> OR extra1 LIKE "%holiday"%" OR extra2 LIKE
> "%holiday"%" OR extra3 LIKE "%holiday"%" OR extra4 LIKE "%holiday"%" OR
> extra5 LIKE "%holiday"%" OR extra6 LIKE "%holiday"%")) ORDER BY date DESC
> LIMIT 50
>
> 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 'carnival%" OR
> description LIKE "% "carnival%" OR keywords LIKE "
>
> If you need assistence or feel this is a 'bug'; please report it to our
> support forums at: http://www.photopost.com/members/forum/f66/index.html
>
> To turn off these emails, set $debug=0 in your config-inc.php file.
>
sean9715 is offline   Reply With Quote
Old November 30th, 2007, 10:49 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
what are you using as a search term? carnival or "carnival
__________________
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 November 30th, 2007, 10:55 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Location: Pennington, NJ
Posts: 30
Send a message via AIM to sean9715
Chuck - I'm asking the people who gave me the error. Stay tuned!
sean9715 is offline   Reply With Quote
Old November 30th, 2007, 11:10 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
Yeah you can also test by setting debug setting to display errors and as admin test some different combinations.
__________________
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 November 30th, 2007, 02:16 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Location: Pennington, NJ
Posts: 30
Send a message via AIM to sean9715
Exclamation

Chuck,

The problem is that the error message wasn't sent to us by a user, it was automatically generated and emailed to our photo admin by the "system" (Photopost or vBulletin) when a user ran what appears to be a weird search. There's no way of us knowing who the user is!

Any further suggestions?
sean9715 is offline   Reply With Quote
Old November 30th, 2007, 03:53 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
yes as posted above you can try entering search terms like carnival or holiday after setting debug option to display errors not email errors. That way you can post what you find.

I am testing on a few sites with no errors thus far thats why I was asking the exact search term I am looking at the error and trying to use what I see to create an error but am unable.
__________________
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 December 6th, 2007, 01:14 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Location: Pennington, NJ
Posts: 30
Send a message via AIM to sean9715
Hey there Chuck,

In speaking to my higher ups, the question came up:

"Is it (meaning changing the debug option) going to give the same information as we got in the email delivery, and if so how does that help us?"

Our fear is that the user will get the same exact message that we get, which leaves us no better (or worse) than we started with.
sean9715 is offline   Reply With Quote
Old December 6th, 2007, 01:34 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
yes debug option that I stated will allow you to test and try and get the error. I have been testing on my site with variations of what I see above as what might be the search terms and I get nothing.
__________________
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 December 7th, 2007, 02:54 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Location: Pennington, NJ
Posts: 30
Send a message via AIM to sean9715
Okay Chuck!

We figured out the issue and was able to re-create it. If you do a search for anyting with a quote - " - in it, it'll come back with an error. For example, I did a search for "carnival" and got back the following:

We're sorry, but the system experienced an unrecoverable error. Please try again later.

Script:

Query: SELECT id,cat FROM pp_photos WHERE approved=1 AND storecat=0 AND ((title LIKE "% "carnival"%" OR description LIKE "% "carnival"%" OR keywords LIKE "% "carnival"%" OR bigimage LIKE "% "carnival"%" OR extra1 LIKE "% "carnival"%" OR extra2 LIKE "% "carnival"%" OR extra3 LIKE "% "carnival"%" OR extra4 LIKE "% "carnival"%" OR extra5 LIKE "% "carnival"%" OR extra6 LIKE "% "carnival"%") OR (title LIKE ""carnival"%" OR description LIKE ""carnival"%" OR keywords LIKE ""carnival"%" OR bigimage LIKE ""carnival"%" OR extra1 LIKE "%"carnival"%" OR extra2 LIKE "%"carnival"%" OR extra3 LIKE "%"carnival"%" OR extra4 LIKE "%"carnival"%" OR extra5 LIKE "%"carnival"%" OR extra6 LIKE "%"carnival"%")) ORDER BY date DESC LIMIT 50

Result: 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 'carnival"%" OR description LIKE "% "carnival"%" OR keywords LIKE

Database handle: Resource id #25

Please advise.
sean9715 is offline   Reply With Quote
Old December 7th, 2007, 03:52 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
Okay well hmm dont get that error using quotes but try this line 414 of search.php try this

Code:
Content visible to verified customers only.
change 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.
Chuck S is offline   Reply With Quote
Old December 10th, 2007, 11:04 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Location: Pennington, NJ
Posts: 30
Send a message via AIM to sean9715
Chuck,

Thanks. I've added that to the search.php. I've tested it and the error is not coming up anymore. Hopefully that will solve it going forward. Thanks!
sean9715 is offline   Reply With Quote
Old December 10th, 2007, 11:05 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,703
Not a problem glad to help and let me know if there is anything else we can do 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interesting little....whatever b6gm6n Photopost Pro How Do I...? 5 November 10th, 2006 10:30 AM
Interesting proble for one user of our gallery... doggy1 Photopost Pro Installation & Upgrades 2 March 29th, 2006 08:16 AM
Anyone have some ideas for me? alienstout ReviewPost Installation & Upgrades 2 September 13th, 2004 09:50 AM
Some ideas memobug Classifieds Suggestions 3 September 4th, 2004 03:39 AM


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

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