[MediaWiki-l] MediaWiki internal error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[MediaWiki-l] MediaWiki internal error

sabretache
The error and backtrace shown below is thrown when trying to load the
system page 'Mediawiki:Sitenotice'. It is the result of a system upgrade
during  which the database was edited AFTER the database had been
updated, but BEFORE the new Mediawiki version installation scripts had
been installed. Since it was the only page affected, we have lived with
it through several further upgrades . However, it is becoming a pain not
to able to use sitenotice so I would like (try??) to fix it.

Any suggestions as to how I should go about this, since the page itself
can be neither edited, deleted or restored to an earlier version through
the Mediwiki user interface itself? Is there a maintenance script for
example that might do the trick? or am I faced with manual database editing?

Any suggestions / advice would be much appreciated

Peter Presland

>>>>>>>>>>>>>>>>>>>>>>>>>>>

MediaWiki internal error.

Original exception: [XhxQLsGV-@FwxVwKJWJu8wAAAA8]
/wiki/MediaWiki:Sitenotice MediaWiki\Revision\RevisionAccessException
from line 1643 of /var/www/html/w/includes/Revision/RevisionStore.php:
Main slot of revision 163209 not found in database!
Backtrace:
#0 /var/www/html/w/includes/Revision/RevisionStore.php(1680):
MediaWiki\Revision\RevisionStore->loadSlotRecords(string, integer)
#1 [internal function]:
MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}()
#2 /var/www/html/w/includes/Revision/RevisionSlots.php(165):
call_user_func(Closure)
#3 /var/www/html/w/includes/Revision/RevisionSlots.php(107):
MediaWiki\Revision\RevisionSlots->getSlots()
#4 /var/www/html/w/includes/Revision/RevisionRecord.php(192):
MediaWiki\Revision\RevisionSlots->getSlot(string)
#5 /var/www/html/w/includes/Revision.php(689):
MediaWiki\Revision\RevisionRecord->getSlot(string, integer)
#6 /var/www/html/w/includes/Revision.php(956): Revision->getMainSlotRaw()
#7 /var/www/html/w/includes/page/WikiPage.php(659):
Revision->getContentModel()
#8 /var/www/html/w/includes/libs/objectcache/WANObjectCache.php(1414):
WikiPage->{closure}(boolean, integer, array, NULL)
#9 /var/www/html/w/includes/libs/objectcache/WANObjectCache.php(1275):
WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)
#10 /var/www/html/w/includes/page/WikiPage.php(665):
WANObjectCache->getWithSetCallback(string, integer, Closure)
#11 /var/www/html/w/includes/page/WikiPage.php(287):
WikiPage->getContentModel()
#12 /var/www/html/w/includes/page/WikiPage.php(274):
WikiPage->getContentHandler()
#13 /var/www/html/w/includes/actions/Action.php(98):
WikiPage->getActionOverrides()
#14 /var/www/html/w/includes/actions/Action.php(155):
Action::factory(string, WikiPage, RequestContext)
#15 /var/www/html/w/includes/MediaWiki.php(155):
Action::getActionName(RequestContext)
#16 /var/www/html/w/includes/MediaWiki.php(782): MediaWiki->getAction()
#17 /var/www/html/w/includes/MediaWiki.php(515): MediaWiki->main()
#18 /var/www/html/w/index.php(42): MediaWiki->run()
#19 {main}



_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: MediaWiki internal error

sabretache
For info

Problem resolved by doing an SQL row delete of the page ID and running
'deleteOrphanedRevisions.php'

On 13/01/2020 11:50, Peter Presland wrote:

> The error and backtrace shown below is thrown when trying to load the
> system page 'Mediawiki:Sitenotice'. It is the result of a system upgrade
> during  which the database was edited AFTER the database had been
> updated, but BEFORE the new Mediawiki version installation scripts had
> been installed. Since it was the only page affected, we have lived with
> it through several further upgrades . However, it is becoming a pain not
> to able to use sitenotice so I would like (try??) to fix it.
>
> Any suggestions as to how I should go about this, since the page itself
> can be neither edited, deleted or restored to an earlier version through
> the Mediwiki user interface itself? Is there a maintenance script for
> example that might do the trick? or am I faced with manual database editing?
>
> Any suggestions / advice would be much appreciated
>
> Peter Presland
>
> MediaWiki internal error.
>
> Original exception: [XhxQLsGV-@FwxVwKJWJu8wAAAA8]
> /wiki/MediaWiki:Sitenotice MediaWiki\Revision\RevisionAccessException
> from line 1643 of /var/www/html/w/includes/Revision/RevisionStore.php:
> Main slot of revision 163209 not found in database!
> Backtrace:
> #0 /var/www/html/w/includes/Revision/RevisionStore.php(1680):
> MediaWiki\Revision\RevisionStore->loadSlotRecords(string, integer)
> #1 [internal function]:
> MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}()
> #2 /var/www/html/w/includes/Revision/RevisionSlots.php(165):
> call_user_func(Closure)
> #3 /var/www/html/w/includes/Revision/RevisionSlots.php(107):
> MediaWiki\Revision\RevisionSlots->getSlots()
> #4 /var/www/html/w/includes/Revision/RevisionRecord.php(192):
> MediaWiki\Revision\RevisionSlots->getSlot(string)
> #5 /var/www/html/w/includes/Revision.php(689):
> MediaWiki\Revision\RevisionRecord->getSlot(string, integer)
> #6 /var/www/html/w/includes/Revision.php(956): Revision->getMainSlotRaw()
> #7 /var/www/html/w/includes/page/WikiPage.php(659):
> Revision->getContentModel()
> #8 /var/www/html/w/includes/libs/objectcache/WANObjectCache.php(1414):
> WikiPage->{closure}(boolean, integer, array, NULL)
> #9 /var/www/html/w/includes/libs/objectcache/WANObjectCache.php(1275):
> WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)
> #10 /var/www/html/w/includes/page/WikiPage.php(665):
> WANObjectCache->getWithSetCallback(string, integer, Closure)
> #11 /var/www/html/w/includes/page/WikiPage.php(287):
> WikiPage->getContentModel()
> #12 /var/www/html/w/includes/page/WikiPage.php(274):
> WikiPage->getContentHandler()
> #13 /var/www/html/w/includes/actions/Action.php(98):
> WikiPage->getActionOverrides()
> #14 /var/www/html/w/includes/actions/Action.php(155):
> Action::factory(string, WikiPage, RequestContext)
> #15 /var/www/html/w/includes/MediaWiki.php(155):
> Action::getActionName(RequestContext)
> #16 /var/www/html/w/includes/MediaWiki.php(782): MediaWiki->getAction()
> #17 /var/www/html/w/includes/MediaWiki.php(515): MediaWiki->main()
> #18 /var/www/html/w/index.php(42): MediaWiki->run()
> #19 {main}
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l