Topic on Project:Support desk

invalid magic word '=' after 1.35 -> 1.39 upgrade

3
Ecuadorgr (talkcontribs)

Hi. I had an old 1.32 mediawiki installation, which I wanted to keep around, but was not willing to pay the php 7.4 support/extortion fee of my host, so I started an upgrade. The 1.32->1.35.10 step went great, however while upgrade.php seemed to work fine for the 1.35.10->1.39.3 step (note, I switched to php 8.0 at this point), visiting the wiki afterwards gives me the very unhelpful:

MWException: Error: invalid magic word '='
Backtrace:
from /homepages/31/d87773283/htdocs/wiki/physics/includes/MagicWord.php(129)
#0 /homepages/31/d87773283/htdocs/wiki/physics/includes/MagicWordFactory.php(231): MagicWord->load()
#1 /homepages/31/d87773283/htdocs/wiki/physics/includes/MagicWordArray.php(85): MagicWordFactory->get()
#2 /homepages/31/d87773283/htdocs/wiki/physics/includes/MagicWordArray.php(287): MagicWordArray->getHash()
#3 /homepages/31/d87773283/htdocs/wiki/physics/includes/parser/Parser.php(3079): MagicWordArray->matchStartToEnd()
#4 /homepages/31/d87773283/htdocs/wiki/physics/includes/parser/PPFrame_Hash.php(276): Parser->braceSubstitution()
#5 /homepages/31/d87773283/htdocs/wiki/physics/includes/parser/Parser.php(2955): PPFrame_Hash->expand()
#6 /homepages/31/d87773283/htdocs/wiki/physics/includes/parser/Parser.php(962): Parser->replaceVariables()
#7 /homepages/31/d87773283/htdocs/wiki/physics/includes/parser/Parser.php(4928): Parser->preprocess()
#8 /homepages/31/d87773283/htdocs/wiki/physics/includes/language/MessageCache.php(1308): Parser->transformMsg()
#9 /homepages/31/d87773283/htdocs/wiki/physics/includes/language/Message.php(1456): MessageCache->transform()
#10 /homepages/31/d87773283/htdocs/wiki/physics/includes/language/Message.php(1009): Message->transformText()
#11 /homepages/31/d87773283/htdocs/wiki/physics/includes/language/Message.php(1053): Message->format()
#12 /homepages/31/d87773283/htdocs/wiki/physics/includes/OutputPage.php(1048): Message->text()
#13 /homepages/31/d87773283/htdocs/wiki/physics/includes/OutputPage.php(1097): OutputPage->setHTMLTitle()
#14 /homepages/31/d87773283/htdocs/wiki/physics/includes/page/Article.php(474): OutputPage->setPageTitle()
#15 /homepages/31/d87773283/htdocs/wiki/physics/includes/actions/ViewAction.php(78): Article->view()
#16 /homepages/31/d87773283/htdocs/wiki/physics/includes/MediaWiki.php(542): ViewAction->show()
#17 /homepages/31/d87773283/htdocs/wiki/physics/includes/MediaWiki.php(322): MediaWiki->performAction()
#18 /homepages/31/d87773283/htdocs/wiki/physics/includes/MediaWiki.php(904): MediaWiki->performRequest()
#19 /homepages/31/d87773283/htdocs/wiki/physics/includes/MediaWiki.php(562): MediaWiki->main()
#20 /homepages/31/d87773283/htdocs/wiki/physics/index.php(50): MediaWiki->run()
#21 /homepages/31/d87773283/htdocs/wiki/physics/index.php(46): wfIndexMain()
#22 {main}

Although I am a software dev (not php), the backtrace seems to include nothing suspect like extensions etc - it's just core code, so I wouldn't really know where to start. Any suggestions?

TIA

Bawolff (talkcontribs)
Ecuadorgr (talkcontribs)

Thanks, that sounds plausible, the Wiki was in Greek too - I actually googled how to clear caches, but didn't come up with that command, so I restored 1.35 instead. From then I upgraded to 1.38, which gave me an error about an extension (Widgets) - and it worked fine after upgrading that extension. I think I'll stick with 1.38 for now, but will have that in mind next time I upgrade further.

Reply to "invalid magic word '=' after 1.35 -> 1.39 upgrade"