Fatal Error Call To Undefined Function Wfloadextensionmessages
My web host recently prompted me to upgrade to MW 1.21.1, so I did. Now several of my pages are broken. The error message is: Fatal error: Call to undefined function wfLoadExtensionMessages() in [path to one of my installed extensions] Was this function removed, or do I just need to re-enable it somehow? Reply 18:59, 8 June 2013 3 years ago Permalink Hide MarkAHershberger (talkcontribs) You need to upgrade your extensions, too. Reply 20:41, 8 June 2013 3 years ago Permalink Hide 70.176.119.200 (talkcontribs) The extension that's giving me problems isn't very well maintained. I've fixed a few bugs in it myself, and I'm probably capable of fixing this. But in order to do so, I need to know why wfLoadExtensionMessages() was removed, and what replaced it. Reply 01:10, 9 June 2013 3 years ago Permalink Hide IAlex (talkcontribs) You may simply remove the call to wfLoadExtensionMessages() and it will continue to work, you don't need to replace it by something else. Reply 07:37, 9 June 2013 3 years ago Permalink Hide 109.238.67.2 (talkcontribs) I have the same problem. This may fix the problem, but it doesn't answer Mark's question. Nick Reply 12:00, 10 June 2013 3 years ago Permalink Hide IAlex (talkcontribs) It was removed. wfLoadExtensionMessages() used to load messages from the given extension so that they could be used. Since the addition of the "localisation cache" in 1.16 messages are always loaded and thus calling wfLoadExtensionMessages() was useless (for more details see r52503). That was the point of the last part of my previous post. Reply 12:19, 10 June 2013 3 years ago Permalink Hide 70.176.119.200 (talkcontribs) Oh, that's good news. Thanks for the info. Reply 16:31, 10 June 2013 3 years ago Permalink Hide Katkov Yury (talkcontribs) Removing this function have made alsmost all the older extensions incompatible with the current version of MW. It think it's better to create an empty function since there is a lot of people who are not propgrammers and will be just disappointed that it doesn't work. Reply 22:17, 4 September 2013 3 years ago Permalink Hide Pchestek (talkcontribs) Thanks for the info, it helped me out too. Reply 14:20, 22 June 2013 3 years ago Permalink Hide Mlpearc (talkcontribs) Removing wfLoadExtensionMessages( 'CategoryBrowser' ); also worked for me. Thanx Reply 03:56, 19 July 2013 3 years ago Permalink Hide 79.153.9.9 (talkcontribs) Same
Attribution-ShareAlike License; additional terms may apply. See Terms of Use for details. Start a new topic You are not logged in. To receive attribution with your name instead of your IP address, you can log in or create an account. Add topic Cancel By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL Changes for https://www.mediawiki.org/wiki/Thread:Project:Support_desk/wfLoadExtensionMessages()_removed_from_1.21.1%3F/reply version 1.27 One comment • 23:12, 29 July 2016 2 months ago 1 Edit title History Permalink Summarize Hide topic Fbruschetti (talkcontribs) In file "UserAdmin.php": --- Uncomment lines 56 and 62 to enable "Specia:MassBlock" page In file "SpecialUserAdminPanel.class.php": --- Change vfMsg() function to vfMessage()->plain() ..... Don't forget "->plain()" ant the end https://www.mediawiki.org/wiki/Extension_talk:UserAdmin of function -- Comment line 215 "$wgOut->includeJQuery()" because funtion was deprecated In file SpecialAddUser.class.php": -- Comment line 161 " #$template = new UsercreateTemplate;" -- Add "}" prior to the last one of the code In files "SpecialEditUser.class.php" and "SpecialPurgeUser.class.php": --- Change vfMsg() function to vfMessage()->plain() This worked for me Reply 23:12, 29 July 2016 2 months ago Permalink Hide Reply to "Changes for version 1.27" undefined User:isValidEmailAddr One comment • 04:10, 11 February 2016 8 months ago 1 Edit title History Permalink Summarize Hide topic 76.20.240.14 (talkcontribs) Are there some dependencies required for this? I get an "undefined" error with MW 1.25 Reply 04:10, 11 February 2016 8 months ago Permalink Hide Reply to "undefined User:isValidEmailAddr" Support for MW 1.25.1 One comment • 03:09, 12 July 2015 1 year ago 1 Edit title History Permalink Summarize Hide topic Andrew Branscom (talkcontribs) Will this be updated for MW 1.25.1? If I use 0.9.1
git, mediawiki, troubleshooting Image by Flickr user Susan Drury Upgrading MediaWiki can be a challenging task, especially if you use a http://blog.endpoint.com/2014/05/mediawiki-extensions-and.html lot of extensions. While the core upgrade process usually goes smoothly, it's rare you can upgrade a major version or two without having to muddle with your collection of extensions. Extensions are bits of code that extend what MediaWiki can do. Only a few are packaged with and maintained alongside MediaWiki itself - the great majority fatal error are written by third-party developers. When the MediaWiki API changes, it is up to those developers to update their extension so it works with the new version of MediaWiki. This does not always happen. Take for example one of the more common errors seen on a MediaWiki upgrade since 1.21 was released: [Tue May 06 11:21:52 2014] fatal error call [error] [client 12.34.56.78] PHP Fatal error: Call to undefined function wfLoadExtensionMessages() in /home/beckett/mediawiki/extensions/PdfExport/PdfExport.php on line 83, referer: http://test.ziggy.com/wiki/Main_Page This is because the wfLoadExtensionMessages function, which many extensions use, has been deprecated since MediaWiki version 1.16 and was finally removed in 1.21, resulting in the error seen above. Luckily, this function has been a no-op since 1.16, so it is safe to comment it out and/or make a dummy function in your LocalSettings.php file (see below). Sadly, the release notes for 1.21 make no mention of this fairly major change. Let's walk through as if we didn't know anything about it and see how we could solve the given error with the help of git. For this example, we'll use the Pdf Export extension, which allows you to export your wiki pages into PDF form. A pretty handy extension, and one which completely fails to work in MediaWiki version 1.21 or better. First, let's verify that wfLoadExtensionMessages does not exist at all in version 1.21 of MediaWiki. F