Jump to content

Topic on Skin talk:Foreground

Not working with mw 34 version

3
Summary by Kghbln

Tracked at GitHub with issue 353.

2409:4043:251A:82A8:E513:C913:5AEB:10CA (talkcontribs)

I have just upgraded my wiki from .28 to .34 version. The old version was using foreground as the default skin. With new version, it's giving this issue:


Fatal error: Uncaught Error: Call to undefined function wfSuppressWarnings() in /home/vikasnd/public_html/w/skins/foreground/Foreground.skin.php:60 Stack trace: #0 /home/vikasnd/public_html/w/includes/skins/SkinTemplate.php(217): foregroundTemplate->execute() #1 /home/vikasnd/public_html/w/includes/OutputPage.php(2574): SkinTemplate->outputPage() #2 /home/vikasnd/public_html/w/includes/exception/MWExceptionRenderer.php(134): OutputPage->output() #3 /home/vikasnd/public_html/w/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(Object(Error)) #4 /home/vikasnd/public_html/w/includes/exception/MWExceptionHandler.php(121): MWExceptionRenderer::output(Object(Error), 2) #5 /home/vikasnd/public_html/w/includes/exception/MWExceptionHandler.php(195): MWExceptionHandler::report(Object(Error)) #6 /home/vikasnd/public_html/w/includes/exception/MWExceptionHandler.php(167): MWExceptionHandler::handleException(Object(Error)) #7 [internal function]: MWExceptionHandler::handleUncaughtException(Object(Error)) #8 in /home/vikasnd/public_html/w/skins/foreground/Foreground.skin.php on line 60


When skin is not made default in localsettings.php, mediawiki loads without any skin and gives this message at top:


Whoops! The default skin for your wiki, defined in $wgDefaultSkin as vector, is not available.

Your installation seems to include the following skins. See Manual: Skin configuration for information how to enable them and choose the default.

  • monobook / MonoBook (disabled)
  • timeless / Timeless (disabled)
  • vector / Vector (disabled)
  • foreground / foreground (enabled)


Please help in fixing. I looked if newer version of extension is available to upgrade. But couldn't find it. Thanks

2409:4043:251A:82A8:E513:C913:5AEB:10CA (talkcontribs)

I upgraded to newer foreground files from github project. But still getting the error.

I commented to suppresswarning method in foreground.skin.php file. then it loaded the wiki page. However it was failing in restore function in same file which was shown on wiki page at end. I commented that also and it's looking to work now.

I am not sure if those two functions need to be commented or why it's failing in first place. Please guide so I can use this skin normally.


Thanks

Kghbln (talkcontribs)

This is clearly a bug that needs to be fixed in the code base. I will document the incompatibility for now until this is fixed. Tracked at GitHub with issue 353