Page MenuHomePhabricator

MobileDetect: Fatal error: Uncaught Error: Call to undefined function wfMobileDetect()
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Install and enable MobileDetect
  • Add $mobile = wfMobileDetect(); to the bottom (with error reporting enabled per Blank page)

What happens?:
Blank page with the error message in the title along with information about where LocalSettings.php is located

What should have happened instead?:
Wiki should be displayed.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
1.39.7

Other information (browser name/version, screenshots, etc.):
Applies to all browsers including mobile browsers

Event Timeline

Change #1035860 had a related patch set uploaded (by Jack Phoenix; author: Jack Phoenix):

[mediawiki/extensions/MobileDetect@master] Make the wfMobileDetect() global function usable again

https://gerrit.wikimedia.org/r/1035860

Change #1035860 merged by jenkins-bot:

[mediawiki/extensions/MobileDetect@master] Make the wfMobileDetect() global function usable again

https://gerrit.wikimedia.org/r/1035860

ashley claimed this task.
ashley added subscribers: Sophivorus, ashley.

@Sophivorus merged the aforementioned patch, so this bug is now fixed in master.