https://bugzilla.wikimedia.org/show_bug.cgi?id=36057

       Web browser: ---
             Bug #: 36057
           Summary: "PHP Notice:  Undefined index: host" in PHP
                    www-error.log using MobileFrontend
           Product: Wikimedia Mobile
           Version: .5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Generic
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


I'm trying to get the MobileFrontend extension to work in
http://espiral.org/wiki/Especial:version (right now disabled since automatic
mobile detection doesn't seem to work and it's slow)

The PHP www-error.log registers this problem every time a page is loaded:

[18-Apr-2012 05:14:13 UTC] PHP Notice:  Undefined index: host in
/.../w/extensions/MobileFrontend/MobileFrontend.php on line 624
[18-Apr-2012 05:14:13 UTC] PHP Stack trace:
[18-Apr-2012 05:14:13 UTC] PHP   1. {main}() /.../w/index.php:0
[18-Apr-2012 05:14:13 UTC] PHP   2. MediaWiki->run() /.../w/index.php:57
[18-Apr-2012 05:14:13 UTC] PHP   3. MediaWiki->main()
/.../w/includes/Wiki.php:547
[18-Apr-2012 05:14:13 UTC] PHP   4. MediaWiki->finalCleanup()
/.../w/includes/Wiki.php:641
[18-Apr-2012 05:14:13 UTC] PHP   5. OutputPage->output()
/.../w/includes/Wiki.php:396
[18-Apr-2012 05:14:13 UTC] PHP   6. wfRunHooks()
/.../w/includes/OutputPage.php:1861
[18-Apr-2012 05:14:13 UTC] PHP   7. Hooks::run()
/.../w/includes/GlobalFunctions.php:3631
[18-Apr-2012 05:14:13 UTC] PHP   8. call_user_func_array()
/.../w/includes/Hooks.php:216
[18-Apr-2012 05:14:13 UTC] PHP   9. ExtMobileFrontend->beforePageDisplayHTML()
/.../w/includes/Hooks.php:216
[18-Apr-2012 05:14:13 UTC] PHP  10. ExtMobileFrontend->getMsg()
/.../w/extensions/MobileFrontend/MobileFrontend.php:547
[18-Apr-2012 05:14:13 UTC] PHP  11. ExtMobileFrontend->getRelativeURL()
/.../w/extensions/MobileFrontend/MobileFrontend.php:342

Am I missing anything in the configuration or is this a legitimate bug?

Mobile pages do load when forcing manually the mobile view.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to