https://bugzilla.wikimedia.org/show_bug.cgi?id=35008
Web browser: ---
Bug #: 35008
Summary: Problems installing Version r37495 on MW 1.13.0
Product: MediaWiki extensions
Version: any
Platform: HP
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: Unprioritized
Component: SyntaxHighlight (GeSHi)
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Yes, I know 1.13.0 is ancient, but I'm stuck with it for now, I'm afraid!
I installed the appropriate version of the extension into
extensions/SyntaxHighlight_GeSHi. It loads successfully, but when I tried to
use it, I got error messages. The first was easily fixed as I changed
require( 'geshi/geshi.php' );
to
require( 'extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php'
);
in SyntaxHighlight_GeSHi.class.php, but now I get this:
Fatal error: Class 'GeSHi' not found in
/usr/local/apache2/htdocs/wiki/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php
on line 171
169 private static function prepare( $text, $lang ) {
170 self::initialise();
171 $geshi = new GeSHi( $text, $lang );
172 if( $geshi->error() == GESHI_ERROR_NO_SUCH_LANG )
173 return null;
174 $geshi->set_encoding( 'UTF-8' );
175 $geshi->enable_classes();
176 $geshi->set_overall_class( "source-$lang" );
177 $geshi->enable_keyword_links( false );
178 return $geshi;
179 }
I'm not really a PHP speaker, so any suggestion would be welcome, please!
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l