Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having trouble with latest mediawiki version 1.27.0 #66

Open
q2amarket opened this issue Aug 2, 2016 · 5 comments
Open

Having trouble with latest mediawiki version 1.27.0 #66

q2amarket opened this issue Aug 2, 2016 · 5 comments

Comments

@q2amarket
Copy link

@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?

@beckno9
Copy link

beckno9 commented Aug 6, 2016

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

@ambroisemaupate
Copy link

ambroisemaupate commented 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();
                }
        }

@ViggieM
Copy link

ViggieM commented Jan 13, 2017

Great! This Works! Thanks a lot!

badshah400 added a commit to badshah400/bootstrap-mediawiki that referenced this issue May 17, 2017
Includes patch to build against mediawiki 1.28.x:
borkweb#66
@jimioke
Copy link

jimioke commented Feb 2, 2018

Thanks! This worked for me as well

@paulblochdesign
Copy link

Hi, I'm super dense and can't make heads or tails of what I'm meant to do with this fix. I'm running mediawiki 1.28 and after creating the footer and subnav pages got a bunch of errors breaking the site. Then I tried deleting the pages because it seemed the existence of the pages at all was affecting things. But even after properly deleting them the site remains broken when the theme is activated. Thanks for any help! @jimioke @ViggieSmalls @ambroisemaupate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants