Page MenuHomePhabricator

I can't get Extension:SyntaxHighlight GeSHi to work
Closed, InvalidPublic

Description

Author: jv.work

Description:
I'm on a mac os x (ver 10.5.5), running:

MediaWiki 1.13.2
PHP 5.2.6 (apache2handler)
MySQL 5.0.41

My mediawiki lives in /Users/myusername/Sites/mediawiki-1.14.0/

i added a folder called SyntaxHighlight_GeSHi to the /extensions/ folder in my mediawiki folder. It contains:

README
SyntaxHighlight_GeSHi.class.php
SyntaxHighlight_GeSHi.i18n.php
SyntaxHighlight_GeSHi.php

and a folder called geshi, with 3 subfolders: /contrib/, /docs/, /geshi/, and one additional file: geshi.php

When i try to add the line:

require_once("extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php");

to the end of my LocalSettings.php file, my wiki pages go blank. if i then add

require( 'geshi/geshi.php' );

or

require(dirname(FILE).'/geshi/geshi.php');

or

require('/Users/myusername/Sites/mediawiki-1.14.0/extensions/Syntax_Highlight_GeSHi/geshi/geshi.php');

nothing changes.

any ideas?

many thanks, joshua


Version: unspecified
Severity: normal
Platform: Macintosh

Details

Reference
bz18882

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:43 PM
bzimport set Reference to bz18882.
bzimport added a subscriber: Unknown Object (MLST).

Bugzilla is for filing bugs, it is not a support forum. It's best to ask this question elsewhere, e.g. on IRC.

My two cents: instead of

require_once("extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php");

you should probably use

require_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php");

Also note that

require('/Users/myusername/Sites/mediawiki-1.14.0/extensions/Syntax_Highlight_GeSHi/geshi/geshi.php');

has the path spelled wrong (there's no underscore in Syntax_Highlight).