Jump to content
  • 0

DBQueryError


TimG
 Share

Question

Hello

I've got an MW installation which I had working at some point but clearly something I've done has caused an issue. LocalSettings.php does say that 13.4.2 is the version that created it so I'm sure the version is correct here. Looks like an upgrade has not succeeded.

Is there an easy way out of this or do I need to dig up a backup tape?

 

[8ef646dfdf5a221964435bfa] /mediawiki-1.34.2/Museum Wiki/ Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Error 1146: Table 'wikidb.revision_comment_temp' doesn't exist (localhost)
Function: MessageCache::loadFromDB(en-gb)-small
Query: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len FROM `page` JOIN `revision` ON ((page_id = rev_page)) JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)

Backtrace:

from C:\inetpub\wwwroot\mediawiki-1.34.2\includes\libs\rdbms\database\Database.php(1719)
#0 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\libs\rdbms\database\Database.php(1703): Wikimedia\Rdbms\Database->getQueryException()
#1 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\libs\rdbms\database\Database.php(1678): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\libs\rdbms\database\Database.php(1244): Wikimedia\Rdbms\Database->reportQueryError()
#3 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\libs\rdbms\database\Database.php(1929): Wikimedia\Rdbms\Database->query()
#4 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->select()
#5 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\libs\rdbms\database\DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call()
#6 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\cache\MessageCache.php(567): Wikimedia\Rdbms\DBConnRef->select()
#7 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\cache\MessageCache.php(445): MessageCache->loadFromDB()
#8 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\cache\MessageCache.php(368): MessageCache->loadFromDBWithLock()
#9 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\cache\MessageCache.php(1113): MessageCache->load()
#10 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\cache\MessageCache.php(1039): MessageCache->getMsgFromNamespace()
#11 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\cache\MessageCache.php(1010): MessageCache->getMessageForLang()
#12 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\cache\MessageCache.php(952): MessageCache->getMessageFromFallbackChain()
#13 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\language\Message.php(1377): MessageCache->get()
#14 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\language\Message.php(895): Message->fetchMessage()
#15 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\language\Message.php(987): Message->format()
#16 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\Title.php(687): Message->text()
#17 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\MediaWiki.php(136): Title::newMainPage()
#18 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\MediaWiki.php(156): MediaWiki->parseTitle()
#19 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\MediaWiki.php(874): MediaWiki->getTitle()
#20 C:\inetpub\wwwroot\mediawiki-1.34.2\includes\MediaWiki.php(546): MediaWiki->main()
#21 C:\inetpub\wwwroot\mediawiki-1.34.2\index.php(53): MediaWiki->run()
#22 C:\inetpub\wwwroot\mediawiki-1.34.2\index.php(46): wfIndexMain()
#23 {main}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.