Jump to content

Topic on Project:Support desk

fatal error out of nowhere

12
174.118.60.226 (talkcontribs)

We have (had) a functioning wiki at http://wiki.secteuretablissement.org , and suddenly we have a fatal error on all pages, as shown below.

Any thoughts on what the problem might be? It appeared suddenly, no changes were made to the install.

MediaWiki 1.16.2 PHP 5.3.19 (cgi-fcgi) MySQL 5.0.96-community-log

Many thanks for any input.

Paul N.

MagicWordArray::parseMatch: parameter not found
Backtrace:
#0 /home/atwork/public_html/atworkwiki/w/includes/MagicWord.php(723): MagicWordArray->parseMatch(Array)
#1 /home/atwork/public_html/atworkwiki/w/includes/parser/Parser.php(2820): MagicWordArray->matchStartAndRemove('SITENAME')
#2 /home/atwork/public_html/atworkwiki/w/includes/parser/Preprocessor_DOM.php(962): Parser->braceSubstitution(Array, Object(PPFrame_DOM))
#3 /home/atwork/public_html/atworkwiki/w/includes/parser/Parser.php(2728): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#4 /home/atwork/public_html/atworkwiki/w/includes/parser/Parser.php(513): Parser->replaceVariables('$1 - {{SITENAME...')
#5 /home/atwork/public_html/atworkwiki/w/includes/parser/Parser.php(4189): Parser->preprocess('$1 - {{SITENAME...', Object(Title), Object(ParserOptions))
#6 /home/atwork/public_html/atworkwiki/w/includes/MessageCache.php(673): Parser->transformMsg('$1 - {{SITENAME...', Object(ParserOptions))
#7 /home/atwork/public_html/atworkwiki/w/includes/GlobalFunctions.php(744): MessageCache->transform('$1 - {{SITENAME...')
#8 /home/atwork/public_html/atworkwiki/w/includes/GlobalFunctions.php(707): wfMsgGetKey('pagetitle', true, false, true)
#9 /home/atwork/public_html/atworkwiki/w/includes/GlobalFunctions.php(613): wfMsgReal('pagetitle', Array, true)
#10 /home/atwork/public_html/atworkwiki/w/includes/OutputPage.php(481): wfMsg('pagetitle', 'Main Page/fr')
#11 /home/atwork/public_html/atworkwiki/w/includes/Article.php(785): OutputPage->setPageTitle('Main Page/fr')
#12 /home/atwork/public_html/atworkwiki/w/includes/Wiki.php(493): Article->view()
#13 /home/atwork/public_html/atworkwiki/w/includes/Wiki.php(70): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#14 /home/atwork/public_html/atworkwiki/w/index.php(117): MediaWiki->performRequestForTitle(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#15 {main}
MarkAHershberger (talkcontribs)

Do you have access to the underlying files like LocalSettings.php, etc? What has changed recently there?

174.118.60.226 (talkcontribs)

Nothing has changed in the filesystem, so far as I know - nobody has touched it for the last week.

Thanks, Paul

MarkAHershberger (talkcontribs)

Also, just to note that ?action=edit produces this error:

 Warning: array_map() [function.array-map]: An error occurred while invoking the map
 callback in /home/atwork/public_html/atworkwiki/w/includes/Title.php on line 1224

And ?action=raw does return the content of the wiki.

174.118.60.226 (talkcontribs)

Ok, thanks for the observation - not sure what to make of that...

Paul

174.118.60.226 (talkcontribs)

Also, ?action=purge produces

MediaWiki internal error. Exception caught inside exception handler

Hm...

Paul

174.118.60.226 (talkcontribs)

... and it looks like it all started with messages like

  PHP Warning:  Invalid argument supplied for foreach() in /home/atwork/public_html/atworkwiki/w/includes/LocalisationCache.php on line 639

followed by a flood of messages like

   "" is not a valid magic thingie for "int"

I smell a cache that needs to be purged, but that doesn't seem to work with ?action=purge. Are there command line alternatives?

Paul

174.118.60.226 (talkcontribs)

The command line solution turns out to be (drum roll please...)

  php maintenance/rebuildLocalisationCache.php

Seems to be all good now.

Thanks, Paul

MarkAHershberger (talkcontribs)

Thanks for letting us know it is resolved. I think this deserves to be in the FAQ.

Ciencia Al Poder (talkcontribs)
MarkAHershberger (talkcontribs)

Some sort of Troubleshooting FAQ would be good to have.

MarkAHershberger (talkcontribs)

Thanks for pointing out that page. Updated with this error.

Reply to "fatal error out of nowhere"