question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Having trouble with latest mediawiki version 1.27.0

See original GitHub issue

@borkweb I am trying to install the theme with the latest version of MediaWiki 1.27.0 but giving lot of error. You might need to update deprecated / replaced functions in your theme.

For example, as I know LocalSettings.php include has been changed for theme and extensions. wfMsg error etc.

Can you please update your theme so I can use it?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
ambroisemaupatecommented, Oct 1, 2016

https://www.mediawiki.org/wiki/Extension_talk:DeleteHistory#Doesn.27t_work_on_1.27.0

index c530b9f..5f0d91b 100644
--- a/BootstrapMediaWiki.skin.php
+++ b/BootstrapMediaWiki.skin.php
@@ -144,7 +144,7 @@ class BootstrapMediaWikiTemplate extends QuickTemplate {
                                                ?>
                                                <ul class="nav navbar-nav navbar-right">
                                                        <li>
-                                                       <?php echo Linker::linkKnown( SpecialPage::getTitleFor( 'Userlogin' ), wfMsg( 'login' ) ); ?>
+                                                       <?php echo Linker::linkKnown( SpecialPage::getTitleFor( 'Userlogin' ), wfMessage( 'login' ) ); ?>
                                                        </li>
                                                </ul>
                                                <?php
@@ -461,7 +461,11 @@ class BootstrapMediaWikiTemplate extends QuickTemplate {
                        $wgParserOptions = new ParserOptions($wgUser);
                        // get the text as static wiki text, but with already expanded templates,
                        // which also e.g. to use {{#dpl}} (DPL third party extension) for dynamic menus.
-                       $parserOutput = $wgParser->preprocess($article->getRawText(), $pageTitle, $wgParserOptions );
+
+                       $content = $article->getContent( Revision::RAW );
+
+                       $parserOutput = $wgParser->preprocess($content, $pageTitle, $wgParserOptions );
                        return $parserOutput;
                }
        }
@@ -474,7 +478,11 @@ class BootstrapMediaWikiTemplate extends QuickTemplate {
                } else {
                        $article = new Article($pageTitle);
                        $wgParserOptions = new ParserOptions($wgUser);
-                       $parserOutput = $wgParser->parse($article->getRawText(), $pageTitle, $wgParserOptions);
+
+                       $content = $article->getContent( Revision::RAW );
+                       $parserOutput = $wgParser->parse($content, $pageTitle, $wgParserOptions);
                        echo $parserOutput->getText();
                }
        }
1reaction
beckno9commented, Aug 6, 2016

Well, I have this problem too, but I am using the latest development version(1.28.0-alpha).

Read more comments on GitHub >

github_iconTop Results From Across the Web

MediaWiki 1.27
MediaWiki 1.27 is an obsolete long-term support release of MediaWiki. Consult the RELEASE NOTES file for the full list of changes.
Read more >
Having trouble with latest mediawiki version 1.27.0 · Issue #66 ...
borkweb I am trying to install the theme with the latest version of MediaWiki 1.27.0 but giving lot of error. You might need...
Read more >
Semantic MediaWiki 3.0.0
Version 3.0.0 of Semantic MediaWiki is the next major release after the Semantic MediaWiki 2.5.0 release. It introduces several new features ...
Read more >
Index of /mediawiki/1.27 - wikimedia Software Releases
Index of /mediawiki/1.27. Icon Name Last modified Size Description. [PARENTDIR] Parent Directory - [ ] syntaxhighlightgeshi-1.27.3.patch.gz.sig 2017-05-10 ...
Read more >
Trouble with VisualEditor in mediawiki - node.js - Stack Overflow
Please ensure that your parsoid version match your Visual Editor version, there is a chance that you should use old-way to configure Visual ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found