 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
May 1st, 2009, 04:48 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Feb 2009 Location: Holland
Posts: 90
| SQL error
Today I got a lot of SQL errors and I don't know what it means and what to do, should I ignore these? Are they essential? Please advise. An error was encountered during execution of the query:
SELECT p.id,p.title,p.userid,p.cat,p.approved,p.storecat,p.bigimage FROM pp_photos p LEFT JOIN pp_categories c ON p.cat=c.id WHERE p.userid= AND c.password='' ORDER BY p.date DESC LIMIT 5
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 'AND c.password='' ORDER BY p.date DESC LIMIT 5' at line 1 |
| |
May 1st, 2009, 09:20 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
In member.php line 553 find this Code: Content visible to verified customers only.
replace with this Code: Content visible to verified customers only.
|
| |
May 1st, 2009, 09:49 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Feb 2009 Location: Holland
Posts: 90
|
Thanks Chuck.
|
| |
May 1st, 2009, 09:53 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
have a good weekend.
|
| |
May 3rd, 2009, 03:41 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Feb 2009 Location: Holland
Posts: 90
|
Chuck,
I just turned on my computer and mailbox, I've got 19 emails with this error: An error was encountered during execution of the query:
SELECT photo,comment FROM pp_comments WHERE userid= AND comment != '' ORDER BY date DESC LIMIT 1
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 'AND comment != '' ORDER BY date DESC LIMIT 1' at line 1
Is this something like the other, but how can it be I get this now and I've never got it before? I know my hoster, Midphase, have done a MySQL software update last week.
Thanks
|
| |
May 3rd, 2009, 07:38 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
Make sure the row noted below is this in member.php Code: Content visible to verified customers only.
|
| |
May 3rd, 2009, 09:12 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Feb 2009 Location: Holland
Posts: 90
|
Thanks again Chuck, I replaced the line in member.php should be working because the other is not giving any errors anymore.
Have a nice day.
Gerard
|
| |
May 3rd, 2009, 09:28 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
Enjoy the rest of your weekend
|
| | |
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 | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | SQL Error | cookie | Photopost Pro Bug Reports | 3 | February 12th, 2009 09:29 AM | | SQL Error | [efs]ChAoS | Photopost Pro How Do I...? | 3 | May 9th, 2006 11:33 AM | | SQL Error | Gottcha | Photopost Pro Installation & Upgrades | 3 | October 10th, 2005 09:14 AM | | SQL Error | iphoto | Photopost Pro Installation & Upgrades | 1 | November 12th, 2004 08:49 PM | | SQL Error | kevinrstruck | Photopost Pro Installation & Upgrades | 9 | October 24th, 2004 09:44 AM | All times are GMT -5. The time now is 02:23 PM. | |