I've been working on an issue all morning and am kind of stuck.
A server ran out of disk space last night and that seems to have broken some Joomla tables. I've cleared out space now, but have an error, I guess as a result.
I get a 500 error on the home page, which is an "Articles » Category List" menu type. When I switch on debug in the Joomla admin I get...
Code: Select all
Errors
Got error -1 from storage engine SQL=SELECT a.id, a.title, a.alias, a.introtext, a.fulltext, a.ch
The Apcahe log give only one message re the site...
Code: Select all
[Thu Nov 27 12:30:22 2014] [error] [client 86.166.83.89] PHP Warning: Invalid argument supplied for foreach() in /var/www/sites/site_dir/components/com_content/models/articles.php on line 548
- MySQL check tables
MySQL repair tables
MySQL analyze tables
Joomla admin -> Extension Manager -> Database -> "Fix" button
To me it looks like the MySQL table(s) are in some way corrupt or broken.
I'm a pretty experienced Joomla user but probably know less about the guts of MySQL generally.
Any ideas folks?
Thanks
Andy
Full error from Joomla! Debug Console...
Code: Select all
Joomla! Debug Console
Errors
Got error -1 from storage engine SQL=SELECT a.id, a.title, a.alias, a.introtext, a.fulltext, a.checked_out, a.checked_out_time, a.catid, a.created, a.created_by, a.created_by_alias, CASE WHEN a.modified = '0000-00-00 00:00:00' THEN a.created ELSE a.modified END as modified, a.modified_by, uam.name as modified_by_name,CASE WHEN a.publish_up = '0000-00-00 00:00:00' THEN a.created ELSE a.publish_up END as publish_up,a.publish_down, a.images, a.urls, a.attribs, a.metadata, a.metakey, a.metadesc, a.access, a.hits, a.xreference, a.featured, a.language, LENGTH(a.fulltext) AS readmore,CASE WHEN badcats.id is not null THEN 0 ELSE a.state END AS state,c.title AS category_title, c.path AS category_route, c.access AS category_access, c.alias AS category_alias,CASE WHEN a.created_by_alias > ' ' THEN a.created_by_alias ELSE ua.name END AS author,ua.email AS author_email,parent.title as parent_title, parent.id as parent_id, parent.path as parent_route, parent.alias as parent_alias,ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_count,c.published, CASE WHEN badcats.id is null THEN c.published ELSE 0 END AS parents_published FROM hug6x_content AS a LEFT JOIN hug6x_content_frontpage AS fp ON fp.content_id = a.id LEFT JOIN hug6x_categories AS c ON c.id = a.catid LEFT JOIN hug6x_users AS ua ON ua.id = a.created_by LEFT JOIN hug6x_users AS uam ON uam.id = a.modified_by LEFT JOIN hug6x_categories as parent ON parent.id = c.parent_id LEFT JOIN hug6x_content_rating AS v ON a.id = v.content_id LEFT OUTER JOIN (SELECT cat.id as id FROM hug6x_categories AS cat JOIN hug6x_categories AS parent ON cat.lft BETWEEN parent.lft AND parent.rgt WHERE parent.extension = 'com_content' AND parent.published != 1 GROUP BY cat.id ) AS badcats ON badcats.id = c.id WHERE a.access IN (1,1) AND c.access IN (1,1) AND CASE WHEN badcats.id is null THEN a.state ELSE 0 END = 1 AND a.catid = 57 AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2014-11-27 12:25:48') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2014-11-27 12:25:48') ORDER BY c.lft, CASE WHEN a.publish_up = '0000-00-00 00:00:00' THEN a.created ELSE a.publish_up END , a.created LIMIT 0, 50
Call stack
# Function Location
1 JApplicationCms->execute() JROOT/index.php:40
2 JApplicationSite->doExecute() JROOT/libraries/cms/application/cms.php:251
3 JApplicationSite->dispatch() JROOT/libraries/cms/application/site.php:237
4 JComponentHelper::renderComponent() JROOT/libraries/cms/application/site.php:191
5 JComponentHelper::executeComponent() JROOT/libraries/cms/component/helper.php:332
6 require_once() JROOT/libraries/cms/component/helper.php:352
7 JControllerLegacy->execute() JROOT/components/com_content/content.php:16
8 ContentController->display() JROOT/libraries/legacy/controller/legacy.php:730
9 JControllerLegacy->display() JROOT/components/com_content/controller.php:79
10 ContentViewCategory->display() JROOT/libraries/legacy/controller/legacy.php:693
11 JViewCategory->commonCategoryDisplay() JROOT/components/com_content/views/category/view.html.php:72
12 JError::raiseError() JROOT/libraries/legacy/view/category.php:117
13 JError::raise() JROOT/libraries/legacy/error/error.php:253
Version Info
Code: Select all
Database Version 5.5.37-0ubuntu0.12.04.1
Database Collation utf8_general_ci
PHP Version 5.3.10-1ubuntu3.11
Web Server Apache/2.2.22 (Ubuntu)
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT