Memorial Day
Support will be closed on Monday, May 28th, 2012 to enjoy Memorial Day with our friends and families.
   
1 of 2
1
Database error
Posted: 05 August 2010 02:10 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  53
Joined  02-10-2006

Hello, I have been using EE2 since the public beta, and recently deleted a comment which was followed up with my inability to visit the “Edit Content” section of my site.
I am given the following screen:

A Database Error Occurred
Error Number: 1064

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 ‘) ORDER BY entry_date desc’ at line 5

SELECT exp_channel_titles.entry_id, exp_channel_titles.channel_id, exp_channel_titles.title, exp_channel_titles.author_id, exp_channel_titles.status, exp_channel_titles.entry_date, exp_channel_titles.dst_enabled, exp_channel_titles.comment_total, exp_channels.live_look_template, exp_members.username, exp_members.email, exp_members.screen_name FROM (exp_channel_titles) LEFT JOIN exp_channels ON exp_channel_titles.channel_id = exp_channels.channel_id LEFT JOIN exp_members ON exp_members.member_id = exp_channel_titles.author_id WHERE exp_channel_titles.entry_id IN ) ORDER BY entry_date desc

This shows up when attempting to view http://paravisinicoffee.com/mgmt/index.php?S=4b5689516b21b0e15b8d69d6da630c2ca8b01f5f&D=cp&C=content_edit

I have not recently installed or changed any addons, modified my database, or changed any expression engine files in anyway.
Any help is greatly appreciated. Thanks!

 Signature 

JoeParavisini.com

Profile
 
 
Posted: 05 August 2010 02:11 PM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  53
Joined  02-10-2006

Sorry, I am currently using 2.1.0, I had updated from the public beta the day 2.1 came out, and did not make that clear. This issue just sprang up today.

 Signature 

JoeParavisini.com

Profile
 
 
Posted: 05 August 2010 02:23 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  78
Joined  05-19-2010

Could you post the page instead of the link to the entry in the control panel?  Thanks!

Profile
 
 
Posted: 05 August 2010 02:24 PM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  53
Joined  02-10-2006

The public facing site has no errors, the error comes up in the Edit Content section of my control panel.

 Signature 

JoeParavisini.com

Profile
 
 
Posted: 05 August 2010 06:21 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  6675
Joined  09-23-2009

jparavisini, can you confirm the build you’re using? Just to be safe can you temporarily disable extensions using the button in the upper-right of Addons > Extensions?

 Signature 
Profile
MSG
 
 
Posted: 16 August 2010 10:16 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  19
Joined  12-03-2009

Same Error for me… It seems there is an error in the SQL-Statement…? I use the latest Build of EE 2.1.0 (20100810)

One note: The same installation on a local MAMP-Webserver worked properly (mysql version: 5.1.37). It seems the problem is located on the webhoster (mysql version: 5.0.51a).

Any suggestions?

Profile
 
 
Posted: 16 August 2010 06:11 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  6675
Joined  09-23-2009

jparavisini and thomasaull,

Can you check to see if your host’s MySQL server is running in Strict mode, and if so, try turning that off please?

 Signature 
Profile
MSG
 
 
Posted: 17 August 2010 05:14 AM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  19
Joined  12-03-2009

My Webhoster (allinkl.de) said that Strict-Mode is off.

Are there other possible reasons?

Profile
 
 
Posted: 17 August 2010 11:57 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  16
Joined  06-10-2008

I’m seeing the same error on occasion when attempting to administer via the control panel.
It first occurred when deleting a comment for me as well, but now occurs randomly.

I’m running v2.1.0 Build 20100810.
(Haven’t had time to update!)

Published site seems fine.

Text of error below:

A Database Error Occurred
Error Number: 1064

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 ‘) ORDER BY entry_date desc’ at line 5

SELECT exp_channel_titles.entry_id, exp_channel_titles.channel_id, exp_channel_titles.title, exp_channel_titles.author_id, exp_channel_titles.status, exp_channel_titles.entry_date, exp_channel_titles.dst_enabled, exp_channel_titles.comment_total, exp_channels.live_look_template, exp_members.username, exp_members.email, exp_members.screen_name FROM (exp_channel_titles) LEFT JOIN exp_channels ON exp_channel_titles.channel_id = exp_channels.channel_id LEFT JOIN exp_members ON exp_members.member_id = exp_channel_titles.author_id WHERE exp_channel_titles.entry_id IN ) ORDER BY entry_date desc

Profile
 
 
Posted: 18 August 2010 01:01 AM   [ Ignore ]   [ # 9 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  14993
Joined  03-22-2004

thomasaull, mhale0,

Can you share the exact steps you took to replicate this error?
Are any of you using add-ons.
Were you all upgrades or fresh installs?
Are you all using the Comments Module?

Profile
 
 
Posted: 19 August 2010 04:49 AM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  19
Joined  12-03-2009

Its difficult to replicate the error, cause it appears only when i´m using ExpressionEngine on my Webspace on allinkl.de, but this is the procedure:

1. Install a fresh Version of Expression Engine 2.1 (latest Build 20100810).
2. Create a Channel and write an entry for that.
3. Click on Content -> Edit.

=> The Error occurs.

I looks like a SQL-Syntax-Error for me, which is ignored by some/most mySQL-Servers.

I had removed the Comment-Module, the Error is still there.
I have some Plugins installed (Allow EE-Code, Gravatar, Image Sizer).

Profile
 
 
Posted: 19 August 2010 10:14 AM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  16
Joined  06-10-2008

Plugins:
URL and Email Auto-linker
ER Tweet Me
ImageSizer
Magpie RSS Parser
Twitter Timeline
XML Encode

Also using the comment module

Most any attempt to edit content leads to the error.

Fresh install.

Thanks!

Profile
 
 
Posted: 19 August 2010 07:18 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  6675
Joined  09-23-2009

thomasaull, mhale0,

I haven’t been able to reproduce this. What are your channel’s group assignments for categories, custom fields and statuses? Can you post a screenshot?

 Signature 
Profile
MSG
 
 
Posted: 19 August 2010 07:33 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  16
Joined  06-10-2008

Here’s a screenshot of my config.

Thanks

Image Attachments
Screen shot 2010-08-19 at 4.33.00 PM.png
Click thumbnail to see full-size image
Profile
 
 
Posted: 20 August 2010 02:29 PM   [ Ignore ]   [ # 14 ]  
Chancellor's Fellow
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  30393
Joined  04-29-2002

Hmmm.. noticed you haven’t specified a Status Group. Did you create one? Let’s have you set one and see if that makes a difference.

Profile
MSG
 
 
Posted: 23 August 2010 01:12 PM   [ Ignore ]   [ # 15 ]  
Summer Student
Total Posts:  19
Joined  12-03-2009

I tried this, but no success…

I think the key is the SQL-Statement:

SELECT exp_channel_titles.entry_id, exp_channel_titles.channel_id, exp_channel_titles.title, exp_channel_titles.author_id, exp_channel_titles.status, exp_channel_titles.entry_date, exp_channel_titles.dst_enabled, exp_channel_titles.comment_total, exp_channels.live_look_template, exp_members.username, exp_members.email, exp_members.screen_name FROM (exp_channel_titles) LEFT JOIN exp_channels ON exp_channel_titles.channel_id = exp_channels.channel_id LEFT JOIN exp_members ON exp_members.member_id = exp_channel_titles.author_id WHERE exp_channel_titles.entry_id IN ) ORDER BY entry_date desc

After the bold “IN” the statements for the table and the fields are missing. If i delete “IN )” the SQL-Query has no more errors.

Profile
 
 
Posted: 24 August 2010 02:04 AM   [ Ignore ]   [ # 16 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  14993
Joined  03-22-2004

Can you all run our Server Wizard please to rule out anything there.

This is quite hard to troubleshoot as we are unable to replicate it. There must be a common denominator like something in your hosting environment that links you all.

Profile
 
 
Posted: 25 August 2010 03:25 AM   [ Ignore ]   [ # 17 ]  
Summer Student
Total Posts:  19
Joined  12-03-2009

Here is a Screenshot of the Server-Wizard´s result page

Image Attachments
Bildschirmfoto 2010-08-25 um 09.24.44.png
Click thumbnail to see full-size image
Profile
 
 
Posted: 25 August 2010 05:54 PM   [ Ignore ]   [ # 18 ]  
Moderator
Avatar
RankRankRankRankRankRank
Total Posts:  6675
Joined  09-23-2009

thomasaull, mhale0,

Okay, so you both encounter this on fresh installs, without the Agile Records theme, correct? Are you creating and deleting any entries beforehand? You just make a single entry, go to Publish > Edit and immediately get the error?

 Signature 
Profile
MSG
 
 
   
1 of 2
1