Topic on Project:Support desk

upgraded to Mediawiki 1.34 exception error

6
Liquifusiondoug (talkcontribs)

I upgraded to Mediawiki 1.34 and everything seemed to work fine but when I try to run the site now I'm getting the following error:


Notice: "" is not a valid magic word for "ev" [Called from Language::getMagic in /home/ftri_org/support.ftri.org/languages/Language.php at line 3114] in /home/ftri_org/support.ftri.org/includes/debug/MWDebug.php on line 333

[XiICa3Q8eI2r65h95k8xPAAAAAc] /index.php?title=FTRI_Support_Home MWException from line 183 of /home/ftri_org/support.ftri.org/includes/MagicWord.php: Error: invalid magic word 'ev'

Backtrace:

#0 /home/ftri_org/support.ftri.org/includes/MagicWordFactory.php(222): MagicWord->load(string)

#1 /home/ftri_org/support.ftri.org/includes/parser/Parser.php(5288): MagicWordFactory->get(string)

#2 /home/ftri_org/support.ftri.org/includes/StubObject.php(112): Parser->setFunctionHook(string, string)

#3 /home/ftri_org/support.ftri.org/includes/StubObject.php(138): StubObject->_call(string, array)

#4 /home/ftri_org/support.ftri.org/extensions/EmbedVideo/EmbedVideo.hooks.php(24): StubObject->__call(string, array)

#5 /home/ftri_org/support.ftri.org/extensions/EmbedVideo/EmbedVideo.hooks.php(17): EmbedVideo::addMagicWord(string, string, string)

#6 /home/ftri_org/support.ftri.org/includes/Hooks.php(174): EmbedVideo::setup(Parser)

#7 /home/ftri_org/support.ftri.org/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#8 /home/ftri_org/support.ftri.org/includes/parser/Parser.php(476): Hooks::run(string, array)

#9 /home/ftri_org/support.ftri.org/includes/cache/MessageCache.php(1189): Parser->firstCallInit()

#10 /home/ftri_org/support.ftri.org/includes/cache/MessageCache.php(1165): MessageCache->getParser()

#11 /home/ftri_org/support.ftri.org/includes/language/Message.php(1280): MessageCache->transform(string, boolean, LanguageEn, Title)

#12 /home/ftri_org/support.ftri.org/includes/language/Message.php(884): Message->transformText(string)

#13 /home/ftri_org/support.ftri.org/includes/language/Message.php(944): Message->toString(string)

#14 /home/ftri_org/support.ftri.org/includes/OutputPage.php(888): Message->text()

#15 /home/ftri_org/support.ftri.org/includes/OutputPage.php(937): OutputPage->setHTMLTitle(Message)

#16 /home/ftri_org/support.ftri.org/includes/page/Article.php(638): OutputPage->setPageTitle(string)

#17 /home/ftri_org/support.ftri.org/includes/actions/ViewAction.php(63): Article->view()

#18 /home/ftri_org/support.ftri.org/includes/MediaWiki.php(511): ViewAction->show()

#19 /home/ftri_org/support.ftri.org/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)

#20 /home/ftri_org/support.ftri.org/includes/MediaWiki.php(900): MediaWiki->performRequest()

#21 /home/ftri_org/support.ftri.org/includes/MediaWiki.php(527): MediaWiki->main()

#22 /home/ftri_org/support.ftri.org/index.php(44): MediaWiki->run()

#23 {main}


Thanks!

Malyacko (talkcontribs)
Bawolff (talkcontribs)

sounds like something wrong with how embed video is registering magic words. Try removing it from localsettings.php, browse to a couple pages, and re-add it. If that doesnt fix it, i think its likely a bug in the extension.

Liquifusiondoug (talkcontribs)

I removed the embed video extension and I was then able to move forward with the upgrade. However, when I got to the "Upgrade existing installation" step and it tried to upgrade the database (of our existing mediawiki) I got the following error (any suggestions?):

There was an error while upgrading the MediaWiki tables in your database. For more information look into the log above, to retry click Continue.

The end of the log had this error:

Dropping usertext_timestamp index from table archive ...done.

Table logging contains log_user field. Dropping ...

An error occurred:

A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: ALTER TABLE `image`

DROP INDEX img_user_timestamp,

DROP INDEX img_usertext_timestamp,

DROP COLUMN img_user,

DROP COLUMN img_user_text,

ALTER COLUMN img_actor DROP DEFAULT

Function: Wikimedia\Rdbms\Database::sourceFile( /home/ftri_org/support.ftri.org/maintenance/archives/patch-drop-user-fields.sql )

Error: 1091 Can't DROP 'img_user_timestamp'; check that column/key exists (mysql.ftri.org)

Liquifusiondoug (talkcontribs)

I tried to continue in the process and I'm still getting database errors:

An error occurred:

A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: ALTER TABLE `archive`

DROP COLUMN ar_user,

DROP COLUMN ar_user_text,

ALTER COLUMN ar_actor DROP DEFAULT

Function: Wikimedia\Rdbms\Database::sourceFile( /home/ftri_org/support.ftri.org/maintenance/archives/patch-drop-user-fields.sql )

Error: 1091 Can't DROP 'ar_user'; check that column/key exists (mysql.ftri.org)

Ciencia Al Poder (talkcontribs)

Try to execute those statements directly on the database, and run the update.php script again

Reply to "upgraded to Mediawiki 1.34 exception error"