Last modified: 2014-05-04 19:48:10 UTC
I follow all of steps that there's here (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi) for installing SyntaxHighlight GeSHi extension. But, when I try to save an article, the system returns that: Note: The article contains: <syntaxhighlight lang="php"> require_once( "$IP/extensions/WikiEditor/WikiEditor.php" ); </syntaxhighlight> "Fatal error: Call to undefined method ParserOutput::addModuleStyles() in /www/mediawiki-1.17.0/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php on line 108" The line in question is that: "if( $wgUseSiteCss ) { $parser->mOutput->addModuleStyles( 'ext.geshi.local' ); (Line 108) }" I could see that, in subversion, there was a change on November 20, 2011. Perhaps this is why? I wrote in LocalSettings.php " $wgUseSiteCss = false;" but, I do not know if this is the best solution, or this will not cause other problems thank you for your job
Which version of the extension did you install? It looks like you're running MediaWiki 1.17; did you download the extension version for MediaWiki 1.17 from <https://www.mediawiki.org/wiki/Special:ExtensionDistributor>?
it would look like you're using a svn trunk version of SyntaxHighlight GeSHi, and not a 1.17 one Try http://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdist_extension=SyntaxHighlight_GeSHi&extdist_version=branches%2FREL1_17&extdist_submit=Continue instead
Created attachment 9679 [details] screenshot preview/view. what happens to the css? In preview mode, It can view ok, but when I save...
Thanks MZMcBride and Reedy. I could download from ExtensionDistributor for version 1.17. But, you can have a look at the attachment? I deteted $wgUseSiteCss from LocalSettings.php...
(In reply to comment #4) > Thanks MZMcBride and Reedy. I could download from ExtensionDistributor for > version 1.17. But, you can have a look at the attachment? I deteted > $wgUseSiteCss from LocalSettings.php... Seems like a separate issue. The focus of this bug should be any fatal errors you were getting. But in any case, this doesn't seem like a bug (or bugs) in MediaWiki or the extension. Perhaps this bug should be closed and you can try IRC (<https://www.mediawiki.org/wiki/MediaWiki_on_IRC>) or the mailing list mediawiki-l (<https://lists.wikimedia.org/mailman/listinfo/mediawiki-l>)? Those are generally where general support questions go.
I think the problem that I tell is still a bug ... But i'm going to investigate it. At the moment, I close the bug.
[Removing RESOLVED LATER as discussed in http://lists.wikimedia.org/pipermail/wikitech-l/2012-November/064240.html . Reopening and setting priority to "Lowest". For future reference, please use either RESOLVED WONTFIX (for issues that will not be fixed), or simply set lowest priority. Thanks a lot!]