Page 1 of 1

Crashed Table

Posted: Tue Aug 07, 2007 11:05 am
by Josh
I have made two new posts on my blog and they showed up fine, but then soon after I got the following error message on my startpage: http://atlanticreview.org saying that some "table e" is crashed, but I can't find a table e in MySQL.

Code: Select all

Query failed:

SELECT 
                    ep_sticky.value AS orderkey,

                    e.id,
                    e.title,
                    e.timestamp,
                    e.comments,
                    e.exflag,
                    e.authorid,
                    e.trackbacks,
                    e.isdraft,
                    e.allow_comments,
                    e.last_modified,

                    a.realname AS author,
                    a.email
                     , e.body, e.extended
                     
                FROM
                    s9y_entries AS e
                    LEFT JOIN s9y_authors a
                        ON e.authorid = a.authorid
                    LEFT JOIN s9y_entrycat ec
                        ON e.id = ec.entryid
                    LEFT JOIN s9y_category c
                        ON ec.categoryid = c.categoryid
                     LEFT OUTER JOIN s9y_entryproperties ep_no_frontpage
                                                  ON (e.id = ep_no_frontpage.entryid AND ep_no_frontpage.property = 'ep_no_frontpage')
 LEFT OUTER JOIN s9y_entryproperties ep_access
                                              ON (e.id = ep_access.entryid AND ep_access.property = 'ep_access')
 LEFT JOIN s9y_entryproperties ep_sticky
                                            ON (e.id = ep_sticky.entryid AND ep_sticky.property = 'ep_is_sticky')
                    WHERE isdraft = 'false' AND e.timestamp <= 1186476582 AND  (ep_access.property IS NULL OR ep_access.value = 'member' OR ep_access.value = 'public' OR (ep_access.value = 'private' AND e.authorid = 1))  AND  (ep_no_frontpage.property IS NULL OR ep_no_frontpage.value != 'true')  
                     GROUP BY e.id
            ORDER BY orderkey DESC, timestamp DESC
                      LIMIT 10

/ Table 'e' is marked as crashed and should be repaired
This same error message shows up in "Edit Entries." Thus I can't delete the last two posts.

When I try to open a permalink to a post, for instance http://atlanticreview.org/archives/779- ... rmany.html

Then I get this error message:

Code: Select all

Fatal error: Cannot create references to/from string offsets nor overloaded objects in /kunden/xx/xx/serendipity/include/plugin_api.inc.php on line 1496
I am using Serendipity 1.0 and PHP 4.4.1

Re: Crashed Table

Posted: Tue Aug 07, 2007 11:24 am
by garvinhicking
Hi!

The table 'e' is the alias for table 's9y_entries'. Try to repair that one. :)

Regards,
Garvin

Posted: Tue Aug 07, 2007 1:04 pm
by Josh
Thanks. T

Now there is one post twice. I can't delete it.

Posted: Tue Aug 07, 2007 1:29 pm
by garvinhicking
Hi!

Did you try to delete it in your database table directly? Maybe because of the crash that entry is corrupt.

Regards,
Garvin

Posted: Tue Aug 07, 2007 2:27 pm
by Josh
Direct Deleting does not work:

#1034 - Incorrect key file for table 's9y_entries'; try to repair it


I don't get it. That table is repaired.
I don't know what to do about that incorrect key file.

Posted: Tue Aug 07, 2007 2:47 pm
by garvinhicking
Hi!

You will need to recover that table with the 'myisamchk' console tool, so you might need to contact your provider about it.

Best regards,
Garvin