Last modified: 2014-02-12 23:54:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38057, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36057 - "PHP Notice: Undefined index: host" in PHP www-error.log using MobileFrontend
"PHP Notice: Undefined index: host" in PHP www-error.log using MobileFrontend
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-18 05:48 UTC by Quim Gil
Modified: 2014-02-12 23:54 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Quim Gil 2012-04-18 05:48:34 UTC
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.
Comment 1 Sam Reed (reedy) 2012-04-18 08:47:16 UTC
You seem to be using an old version of MobileFrontend

In GIT HEAD there are only 217 lines in MobileFrontend.php

Can you try grabbing a new copy from Git and see how that works for you?
Comment 2 Quim Gil 2012-04-18 14:08:29 UTC
Thank you for the prompt answer!

I'm using what was offered yesterday at http://www.mediawiki.org/wiki/Special:ExtensionDistributor/MobileFrontend

I will try the git version tonight, with the hope that it works with 1.18.1. Otherwise I'll try to upgrade my MW installation (after checking that the other extensions installed are ok with that).
Comment 3 Quim Gil 2012-04-19 06:30:33 UTC
After installing MobileFrontend-master-58be6a7 this error is not seen in the logs. However, maybe there is a possibility that it doesn't even get there since I'm getting a PHP Fatal Error - see

Bug 36084 - PHP Fatal error: Call to undefined function wfAssembleUrl()

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links