Topic on Project:Support desk

Jump to navigation Jump to search

[RESOLVED] Fatal exception of type MWException after upgrade to MW from 1.19 to 1.20

15
Zoglun (talkcontribs)
Zoglun (talkcontribs)
Bawolff (talkcontribs)
Davidtspf (talkcontribs)

I am having same problem. Just installed 1.20.2. Enabled that, and got this now:

Error: invalid magic word 'speciale'

Backtrace:

  1. 0 /var/www/html/wiki/includes/MagicWord.php(236): MagicWord->load('speciale')
  2. 1 /var/www/html/wiki/includes/parser/Parser.php(4765): MagicWord::get('speciale')
  3. 2 /var/www/html/wiki/includes/parser/CoreParserFunctions.php(74): Parser->setFunctionHook('speciale', Array)
  4. 3 /var/www/html/wiki/includes/parser/Parser.php(253): CoreParserFunctions::register(Object(Parser))
  5. 4 [internal function]: Parser->firstCallInit()
  6. 5 /var/www/html/wiki/includes/StubObject.php(79): call_user_func_array(Array, Array)
  7. 6 /var/www/html/wiki/includes/StubObject.php(99): StubObject->_call('firstCallInit', Array)
  8. 7 /var/www/html/wiki/includes/cache/MessageCache.php(829): StubObject->__call('firstCallInit', Array)
  9. 8 /var/www/html/wiki/includes/cache/MessageCache.php(829): StubObject->firstCallInit()
  10. 9 /var/www/html/wiki/includes/cache/MessageCache.php(807): MessageCache->getParser()
  11. 10 /var/www/html/wiki/includes/Message.php(618): MessageCache->transform('$1 - {{SITENAME...', true, Object(Language), Object(Title))
  12. 11 /var/www/html/wiki/includes/Message.php(436): Message->transformText('$1 - {{SITENAME...')
  13. 12 /var/www/html/wiki/includes/Message.php(476): Message->toString()
  14. 13 /var/www/html/wiki/includes/OutputPage.php(790): Message->text()
  15. 14 /var/www/html/wiki/includes/OutputPage.php(833): OutputPage->setHTMLTitle(Object(Message))
  16. 15 /var/www/html/wiki/includes/Article.php(485): OutputPage->setPageTitle('Main Page')
  17. 16 /var/www/html/wiki/includes/actions/ViewAction.php(37): Article->view()
  18. 17 /var/www/html/wiki/includes/Wiki.php(427): ViewAction->show()
  19. 18 /var/www/html/wiki/includes/Wiki.php(304): MediaWiki->performAction(Object(Article))
  20. 19 /var/www/html/wiki/includes/Wiki.php(536): MediaWiki->performRequest()
  21. 20 /var/www/html/wiki/includes/Wiki.php(446): MediaWiki->main()
  22. 21 /var/www/html/wiki/index.php(59): MediaWiki->run()
  23. 22 {main}
MarkAHershberger (talkcontribs)

The error you're getting there ("Error: invalid magic word 'speciale'") is similar to this bug. If you delete the files in the cache subdirectory, does that help, or at least produce a different error?

89.75.85.14 (talkcontribs)

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750

Warning: array_map() expects parameter 1 to be a valid callback, no array or string given in /home/ge192287/public_html/szkolawkulturze.pl/includes/Exception.php on line 750 [ff5f0bfd] / Exception from line 38 of /home/ge192287/public_html/szkolawkulturze.pl/includes/ScopedCallback.php: Provided callback is not valid.

Backtrace:

  1. 0 /home/ge192287/public_html/szkolawkulturze.pl/includes/cache/MessageCache.php(325): ScopedCallback->__construct()
  2. 1 /home/ge192287/public_html/szkolawkulturze.pl/includes/cache/MessageCache.php(871): MessageCache->load()
  3. 2 /home/ge192287/public_html/szkolawkulturze.pl/includes/cache/MessageCache.php(791): MessageCache->getMsgFromNamespace()
  4. 3 /home/ge192287/public_html/szkolawkulturze.pl/includes/cache/MessageCache.php(729): MessageCache->getMessageFromFallbackChain()
  5. 4 /home/ge192287/public_html/szkolawkulturze.pl/includes/Message.php(878): MessageCache->get()
  6. 5 /home/ge192287/public_html/szkolawkulturze.pl/includes/Message.php(560): Message->fetchMessage()
  7. 6 /home/ge192287/public_html/szkolawkulturze.pl/includes/Message.php(649): Message->toString()
  8. 7 /home/ge192287/public_html/szkolawkulturze.pl/includes/Title.php(375): Message->text()
  9. 8 /home/ge192287/public_html/szkolawkulturze.pl/includes/Wiki.php(121): Title::newMainPage()
  10. 9 /home/ge192287/public_html/szkolawkulturze.pl/includes/Wiki.php(137): MediaWiki->parseTitle()
  11. 10 /home/ge192287/public_html/szkolawkulturze.pl/includes/Wiki.php(530): MediaWiki->getTitle()
  12. 11 /home/ge192287/public_html/szkolawkulturze.pl/includes/Wiki.php(467): MediaWiki->main()
  13. 12 /home/ge192287/public_html/szkolawkulturze.pl/index.php(49): MediaWiki->run()
  14. 13 {main}

I got this. What can I do ?

73.201.72.72 (talkcontribs)

brand new installation of mediawiki on namecheap.com did not work. got the Fatal exception of type MWException error

I added:

$wgShowExceptionDetails = true;

to localsettings.php

and this was the result:

[ced43ef5] [no req] Exception from line 61 of /home/ideakwty/public_html/dclegalfirm.com/mw/includes/WebRequest.php: MediaWiki does not function when magic quotes are enabled.
Backtrace:
#0 /home/ideakwty/public_html/dclegalfirm.com/mw/includes/Setup.php(544): WebRequest->__construct()
#1 /home/ideakwty/public_html/dclegalfirm.com/mw/includes/WebStart.php(121): require_once(string)
#2 /home/ideakwty/public_html/dclegalfirm.com/mw/index.php(43): require(string)
#3 {main}
Abagnale (talkcontribs)

I got Fatal exception of type MWException too just after I replaced MW 1.19 files by MW 1.20.2 files.

Here's backtrace:

Error: invalid magic word 'canonicalurl'

Backtrace:

#0 /home/i/iu5201/mywiki/public_html/includes/MagicWord.php(236): MagicWord->load('canonicalurl')
#1 /home/i/iu5201/mywiki/public_html/includes/parser/Parser.php(4765): MagicWord::get('canonicalurl')
#2 /home/i/iu5201/mywiki/public_html/includes/parser/CoreParserFunctions.php(54): Parser->setFunctionHook('canonicalurl', Array, 1)
#3 /home/i/iu5201/mywiki/public_html/includes/parser/Parser.php(253): CoreParserFunctions::register(Object(Parser))
#4 [internal function]: Parser->firstCallInit()
#5 /home/i/iu5201/mywiki/public_html/includes/StubObject.php(79): call_user_func_array(Array, Array)
#6 /home/i/iu5201/mywiki/public_html/includes/StubObject.php(99): StubObject->_call('firstCallInit', Array)
#7 /home/i/iu5201/mywiki/public_html/includes/cache/MessageCache.php(829): StubObject->__call('firstCallInit', Array)
#8 /home/i/iu5201/mywiki/public_html/includes/cache/MessageCache.php(829): StubObject->firstCallInit()
#9 /home/i/iu5201/mywiki/public_html/includes/cache/MessageCache.php(807): MessageCache->getParser()
#10 /home/i/iu5201/mywiki/public_html/includes/Message.php(618): MessageCache->transform('$1 ??? {{SITENA...', true, Object(LanguageRu), Object(Title))
#11 /home/i/iu5201/mywiki/public_html/includes/Message.php(436): Message->transformText('$1 ??? {{SITENA...')
#12 /home/i/iu5201/mywiki/public_html/includes/Message.php(476): Message->toString()
#13 /home/i/iu5201/mywiki/public_html/includes/OutputPage.php(790): Message->text()
#14 /home/i/iu5201/mywiki/public_html/includes/OutputPage.php(833): OutputPage->setHTMLTitle(Object(Message))
#15 /home/i/iu5201/mywiki/public_html/includes/Article.php(485): OutputPage->setPageTitle('???????????????...')
#16 /home/i/iu5201/mywiki/public_html/includes/actions/ViewAction.php(37): Article->view()
#17 /home/i/iu5201/mywiki/public_html/includes/Wiki.php(427): ViewAction->show()
#18 /home/i/iu5201/mywiki/public_html/includes/Wiki.php(304): MediaWiki->performAction(Object(Article))
#19 /home/i/iu5201/mywiki/public_html/includes/Wiki.php(536): MediaWiki->performRequest()
#20 /home/i/iu5201/mywiki/public_html/includes/Wiki.php(446): MediaWiki->main()
#21 /home/i/iu5201/mywiki/public_html/index.php(59): MediaWiki->run()
#22 {main}

What should I do to fix this?

Abagnale (talkcontribs)

Wow, I have just solved my problem. I found solution here: Thread:Project:Support desk/upgrading from 1.19.2 to 1.20.x Error: invalid magic word 'speciale'/reply (4).

Shortly saying, what I did:

  1. downloaded tar-archive with MW 1.20.2 and unpacked it: tar xvzf mediawiki-1.20.2.tar.gz -C path/to/my/wiki/ --strip-components=1;
  2. went to path/to/my/wiki/maintenance/ and ran: php5 update.php;
  3. ran that: php5 rebuildLocalisationCache.php --force.

At the first attempt I did only 1 and 2 and got Fatal exception. So I quess either the 3 helped me or it's just luck (or Jesus himself blessed me).

Zoglun (talkcontribs)
php5 rebuildLocalisationCache.php --force

Got it. U are awesome, Thank you!

86.30.115.217 (talkcontribs)

This also fixed my upgrade from 1.20 to 1.21 Awesome, thanks!

39.48.222.132 (talkcontribs)

This seems to be MemCache issue for me. So I commented out the lines in the LocalSettings.php:

$wgMainCacheType = CACHE_MEMCACHED; $wgMemCachedServers = array( '127.0.0.1:11211' );

And it worked for me. Hence, I guess you'll have to check Memcache settings and whether it's installed on your server.

Hope this helps.

Thanks Waqar / 4 Ace Technologies - bringing your ideas to reality!

Pablofiumara (talkcontribs)

This last solution worked for me. I was unable to use the solution mentioned by Abagnale because my terminal threw an error.

I would like to know what I am losing commenting out the lines mentioned above. Is it the possibility to use MemCache?

Thanks in advance!

188.194.112.132 (talkcontribs)

I got an issue upgrading from 1.21 to 1.22: "" is not a valid magic word for "rootpagename"

The solution php maintenance/rebuildLocalisationCache.php --force worked for me. Thank you :)

130.149.212.47 (talkcontribs)

worked for me. thanks

Reply to "[RESOLVED] Fatal exception of type MWException after upgrade to MW from 1.19 to 1.20"