Last modified: 2014-05-04 19:48:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35059, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33059 - failure to store Article with "<syntaxhighlight lang="php">"
failure to store Article with "<syntaxhighlight lang="php">"
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SyntaxHighlight (GeSHi) (Other open bugs)
unspecified
Macintosh Mac OS X 10.5
: Lowest major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.mediawiki.org/wiki/Extensi...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-13 22:39 UTC by Sanasanx
Modified: 2014-05-04 19:48 UTC (History)
3 users (show)

See Also:
Web browser: Firefox
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
screenshot preview/view. what happens to the css? (266.69 KB, image/jpeg)
2011-12-13 23:10 UTC, Sanasanx
Details

Description Sanasanx 2011-12-13 22:39:17 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
Comment 1 MZMcBride 2011-12-13 22:42:26 UTC
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>?
Comment 2 Sam Reed (reedy) 2011-12-13 22:43:24 UTC
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
Comment 3 Sanasanx 2011-12-13 23:10:35 UTC
Created attachment 9679 [details]
screenshot preview/view. what happens to the css?


In preview mode, It can view ok, but when I save...
Comment 4 Sanasanx 2011-12-13 23:13:51 UTC
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...
Comment 5 MZMcBride 2011-12-14 00:25:22 UTC
(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.
Comment 6 Sanasanx 2011-12-14 17:29:13 UTC
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.
Comment 7 Andre Klapper 2012-12-19 11:23:57 UTC
[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!]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links