Open main menu

Extension talk:MobileFrontend

About this board

If you have a feature request just request it here you'll get a much quicker reply :-) We are also around in #wikimedia-mobile if you want a quicker answer!

If you are trying to replicate behaviour you see on Wikimedia sites, please be sure to read through the configuration options before asking a question here.

Issues in Google Search Console Mobile Usability

1
Blinkingline (talkcontribs)

Hi All,

MediaWiki 1.33.0
PHP 7.2.24-0ubuntu0.18.04.1 (fpm-fcgi)
MySQL 5.7.28-0ubuntu0.18.04.4

MobileFrontEnd version 2.1.0 (91eb242) 18:52, 3 September 2019


I recently submitted my site to Google Search Console and I'm getting an error in their Mobile Usability section where it looks like their crawler is hitting the Desktop version of the wiki (the links end with &mobileaction=toggle_view_desktop), which of course causes readability issues.


Does anyone have a suggestion of the best way to Address this? I thought about just removing the link for Mobile/Desktop switching from the footer entirely, but I wanted to see if there was a better idea. If I did want to remove the Mobile/Desktop switch link from the footer, how would I go about that?

Reply to "Issues in Google Search Console Mobile Usability"
Summary by Masumrezarock100
Vishkujo (talkcontribs)

Media viewer is not working on MinervaNeue when I click images in Media Wiki 1.3.3. It's showing this error in console in Firefox: TypeError: mobile.mediaViewer is undefined

And in Chrome: Uncaught TypeError: Cannot read property 'overlay' of undefined

Example page


Would appreciate any help in fixing this. Thanks.


Masumrezarock100 (talkcontribs)

I believe you already created a task on Phabricator.

Animefan2019 (talkcontribs)

Hello, Everyone

I am running Media Wiki 1.3.2

PHP 7.2

mbstring enable

I tried MobileFrontend 31-32 and it is missing from my site. I tried to install it on two different MediaWiki install with no luck. I also check my Special: Version and cannot find it. When I add the MobileFront end code to my LocalSettings.php my site don't display and have a error. I also install GeoData. My website


Thanks for your time

wiki.mkroyal.com

Reply to "MobileFrontend missing"

Global notice using mobile version

1
Fokebox (talkcontribs)

Hi, please help me to find out how can I use global site notice using Mobilefrontend extension?

Reply to "Global notice using mobile version"
HHill (talkcontribs)

Editing in the desktop environment I have a button, but what if I bring a tablet to an event? Do I really have to remember the wikitext?

Reply to "How do I sign something on mobile?"
182.232.0.157 (talkcontribs)

From my experience, it is definitely expected in 2019 from anyone who develops a CMS that people use from smartphone, to be responsive.

As I understand MobileFrontend allows responsivness, I believe it should be included in core.

Ammarpad (talkcontribs)
Reply to "Why is this extension not in core?"

High server load with MobileFrontend

1
TVCL (talkcontribs)

After installing MobileFrontend, there was a significant increase in entry processes and considerably higher CPU usage. Has anyone else experienced this? Thanks.

Reply to "High server load with MobileFrontend"

GlobalVarConfig::get: undefined option: 'ResourceLoaderLESSVars'

9
Jamiehutber (talkcontribs)

I am getting the below error with 3.33 and trying to use Mobile Frontend with the following setup:

wfLoadExtension( 'MobileFrontend' );

$wgMFAutodetectMobileView = true;

$wgMFDefaultSkinClass = 'SkinVector'; // use Vector skin


MediaWiki internal error.

Original exception: [e21caa824241ba159b043d0d] /Main_Page ConfigException from line 53 of /var/www/gwart.co.uk/mediawiki/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'ResourceLoaderLESSVars'

Backtrace:

#0 /var/www/gwart.co.uk/mediawiki/extensions/MobileFrontend/includes/MobileFrontend.hooks.php(707): GlobalVarConfig->get(string)

#1 /var/www/gwart.co.uk/mediawiki/includes/Hooks.php(174): MobileFrontendHooks::onBeforePageDisplay(OutputPage, SkinVector)

#2 /var/www/gwart.co.uk/mediawiki/includes/Hooks.php(234): Hooks::callHook(string, array, array, NULL, string)

#3 /var/www/gwart.co.uk/mediawiki/includes/OutputPage.php(2711): Hooks::runWithoutAbort(string, array)

#4 /var/www/gwart.co.uk/mediawiki/includes/MediaWiki.php(869): OutputPage->output(boolean)

#5 /var/www/gwart.co.uk/mediawiki/includes/MediaWiki.php(881): MediaWiki->{closure}()

#6 /var/www/gwart.co.uk/mediawiki/includes/MediaWiki.php(517): MediaWiki->main()

#7 /var/www/gwart.co.uk/mediawiki/index.php(42): MediaWiki->run()

#8 {main}

Exception caught inside exception handler: [e21caa824241ba159b043d0d] /Main_Page ConfigException from line 53 of /var/www/gwart.co.uk/mediawiki/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'ResourceLoaderLESSVars'

Backtrace:

#0 /var/www/gwart.co.uk/mediawiki/extensions/MobileFrontend/includes/MobileFrontend.hooks.php(707): GlobalVarConfig->get(string)

#1 /var/www/gwart.co.uk/mediawiki/includes/Hooks.php(174): MobileFrontendHooks::onBeforePageDisplay(OutputPage, SkinVector)

#2 /var/www/gwart.co.uk/mediawiki/includes/Hooks.php(234): Hooks::callHook(string, array, array, NULL, string)

#3 /var/www/gwart.co.uk/mediawiki/includes/OutputPage.php(2711): Hooks::runWithoutAbort(string, array)

#4 /var/www/gwart.co.uk/mediawiki/includes/exception/MWExceptionRenderer.php(136): OutputPage->output()

#5 /var/www/gwart.co.uk/mediawiki/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(ConfigException)

#6 /var/www/gwart.co.uk/mediawiki/includes/exception/MWExceptionHandler.php(98): MWExceptionRenderer::output(ConfigException, integer)

#7 /var/www/gwart.co.uk/mediawiki/includes/exception/MWExceptionHandler.php(172): MWExceptionHandler::report(ConfigException)

#8 /var/www/gwart.co.uk/mediawiki/includes/MediaWiki.php(544): MWExceptionHandler::handleException(ConfigException)

#9 /var/www/gwart.co.uk/mediawiki/index.php(42): MediaWiki->run()

#10 {main}

Malyacko (talkcontribs)

"3.33" of what exactly?

Reedy (talkcontribs)

What is version 3.33?

Does your version of MobileFrontend match the MW version?

Jamiehutber (talkcontribs)

Sorry guys, my mistake. 3.33 of mediawiki. Interesting point about MFE match MW version. I will check that now.

Malyacko (talkcontribs)

3.33 of mediawiki does not exist. See Download

Jamiehutber (talkcontribs)

`<meta name="generator" content="MediaWiki 1.33.0-alpha"/>` I checked out the repo which contained 3.33 inside there as an alpha.

But your suggestion worked a treat, as mobileFrontend also had an version 3.33. Though I think this is buggy, being as it is also alpha.

I consider this fixed as far as the error goes.

Thanks you

Malyacko (talkcontribs)

Again: There is no 3.33. 1.33 is not 3.33.

Jamiehutber (talkcontribs)
Jamiehutber (talkcontribs)

It appears I am running version 2.1.0 of MFE:


```

"name": "MobileFrontend",

"version": "2.1.0",

```

undefined option: 'ResourceLoaderLESSVars'

2
Sakshale (talkcontribs)

Upgrade, using Softaculous, from 1.31.0 to 1.32.0.


The Site died with following error. "undefined option: 'ResourceLoaderLESSVars'"


Added "$wgResourceLoaderLESSVars = false;" to the end of LocalSettings.php and error disappeared.


@Sakshale

Reedy (talkcontribs)

You should upgrade extensions when you upgrade core. It sounds like you're running MobileFrontend older than your MW Core version

Why "display: table" for hx, etc.?

1
Kghbln (talkcontribs)

On this wiki the headings go berserk in mobile view because of:

.content .mw-parser-output > h1,
.content .mw-parser-output > h2,
.content .mw-parser-output > h3,
.content .mw-parser-output > h4,
.content .mw-parser-output > h5,
.content .section-heading,
.content .in-block {
    display: table;
}

I am not sure where this comes from? Should this be reported and is there a way to prevent this from happening?

Reply to "Why "display: table" for hx, etc.?"
Return to "MobileFrontend" page.