Last modified: 2014-02-12 23:55:11 UTC
Hi, installing today's snapshot MobileFrontend-master-58be6a7 brings a PHP Fatal Error, showing a blank page with 0 content. My MW installation: 1.18.1 http://espiral.org/wiki/Special:Version LocalSettings.php has: require_once("$IP/extensions/MobileFrontend/MobileFrontend.php"); $wgMFConfigProperties = array( 'minifyJS' => false, ); PHP log shows a PHP Fatal Error: [19-Apr-2012 05:21:39 UTC] PHP Fatal error: Call to undefined function wfAssembleUrl() in .../w/extensions/MobileFrontend/MobileFrontend.body.php on line 1079 [19-Apr-2012 05:21:39 UTC] PHP Stack trace: [19-Apr-2012 05:21:39 UTC] PHP 1. {main}() .../w/index.php:0 [19-Apr-2012 05:21:39 UTC] PHP 2. MediaWiki->run() .../w/index.php:57 [19-Apr-2012 05:21:39 UTC] PHP 3. MediaWiki->main() .../w/includes/Wiki.php:547 [19-Apr-2012 05:21:39 UTC] PHP 4. MediaWiki->finalCleanup() .../w/includes/Wiki.php:641 [19-Apr-2012 05:21:39 UTC] PHP 5. OutputPage->output() .../w/includes/Wiki.php:396 [19-Apr-2012 05:21:39 UTC] PHP 6. SkinTemplate->outputPage() .../w/includes/OutputPage.php:1864 [19-Apr-2012 05:21:39 UTC] PHP 7. wfRunHooks() .../w/includes/SkinTemplate.php:518 [19-Apr-2012 05:21:39 UTC] PHP 8. Hooks::run() .../w/includes/GlobalFunctions.php:3631 [19-Apr-2012 05:21:39 UTC] PHP 9. call_user_func_array() .../w/includes/Hooks.php:216 [19-Apr-2012 05:21:39 UTC] PHP 10. ExtMobileFrontend->addMobileFooter() .../w/includes/Hooks.php:216 [19-Apr-2012 05:21:39 UTC] PHP 11. ExtMobileFrontend->getMobileUrl() .../w/extensions/MobileFrontend/MobileFrontend.body.php:213 I have also tried defining #$wgMobileUrlTemplate = "m.%h0.%h1"; but the result is the same.
The function was added to MediaWiki in 1.19 So hence, it won't work in 1.18 In most cases, we don't support git head versions of extensions working with older releases of MediaWiki..