Topic on Extension talk:MobileFrontend

DavisNT (talkcontribs)

I downloaded the release for MediaWiki 1.19, extracted the downloaded archive to extensions folder, added require_once line to LocalSettings.php, in result wiki was down and error stating that extensions/MobileFrontend/library/WURFL/Application.php cannot be found was logged.

MaxSem (talkcontribs)

Unfortunately, the 1.19-era MobileFrontend is very antiquated, and is quite hard to set up for use in a non-Wikimedia environment. This particular problem has legal grounds (because the developers of a library used in this version decided to become copyright trolls it has beed removed from source control history, breaking old versions). We recommend you to upgrade your MediaWiki and install a corresponding version of MF. The latest release, 1.21, has particulary nice features like the ability to automatically display mobile content for mobile users without having to mess with frontend proxy.

DavisNT (talkcontribs)

Thank you! I have already solved the problem by upgrading Mediawiki to 1.21 and installing required library. I don't remember exact procedure (so the following may contain errors).

Library (please at first read its license at: http://wurfl.sourceforge.net/) can be installed as follows:

  1. Download library from http://sourceforge.net/projects/wurfl/files/WURFL%20PHP/1.4/
  2. Create folder $IP/extensions/MobileFrontend/library/
  3. Extract folder /WURFL from downloaded archive to $IP/extensions/MobileFrontend/library/WURFL
  4. Extract folder /examples/resources from downloaded archive to $IP/extensions/MobileFrontend/library/resources
  5. Optionally download latest WURFL data file from http://sourceforge.net/projects/wurfl/files/WURFL/ in ZIP format, rename it to wurfl.zip and copy to folder $IP/extensions/MobileFrontend/library/resources/ (overwriting existing wurfl.zip)
Cosfly (talkcontribs)

I followed through the steps you did, but it isn't displaying any mobile page.

I checked /MobileFrontend/library/WURFL/Application.php is correctly installed.

require_once("$IP/extensions/MobileFrontend/MobileFrontend.php"); is in LocalSettings.

If I go to my website via mobile, can't see any difference before and after installing it.

What do you think is the problem?

DavisNT (talkcontribs)

Cau you please describe the problem in detail:

  1. Is the problem with mobile device autodetection or MobileFrontend is not working at all?
  2. Does Special:Version page list MobileFrontend under extensions?
  3. Do you see Mobile view link in bottom of the page?
Qgil-WMF (talkcontribs)

Also, do you really need all the WURFL setup in your site? Otherwise setting up mobile autodetection can be as simple as adding to LocalSettings.php

$wgMFAutodetectMobileView = true;

Reply to "Installation problems"