[R-sig-mediawiki] Installation Trouble - getCmd() issue?

Michael Cassin michael at cassin.name
Mon Dec 4 18:17:28 CET 2006


Hi,

This is a very interesting project and I'm very excited to contribute.
 I'm having some trouble getting up and running though.

If I put the following line in LocalSettings.php

require_once( "extensions/Rext.php" );

then the wiki does not load, it just shows a blank page.

I've done some debugging and it seems to have a problem with this code
in Rext.php. Below  I have commented out the commands that cause it to
crash.   It seems to not like getCmd() or extractUrl().   With all of
these lines commented out, the wiki loads, but of course the extension
does not work.

=================
##defined('convert')   || define('convert',   getCmd('', 'convert', ''));
##defined('sudo')      || define('sudo',      getCmd('', 'sudo', ' -u
' . sudouser . ' '));
##defined('chmod')     || define('chmod',     getCmd('', 'chmod', ' 664 '));
##defined('r_cmd')     || define('r_cmd',     getCmd('', 'R', '
--vanilla --quiet'));

defined('r_dir')     || define('r_dir',     getcwd() .
DIRECTORY_SEPARATOR . 'Rfiles' );
##defined('r_url')     || define('r_url',     extractUrl(r_dir));
defined('r_cgi')     || define('r_cgi',     getcwd() .
DIRECTORY_SEPARATOR . 'R.php');
defined('r_ext')     || define('r_ext',     getcwd() .
DIRECTORY_SEPARATOR . 'extensions' . DIRECTORY_SEPARATOR . 'R');
defined('r_img')     || define('r_img',     '.jpg');
====================

I don't know much about PHP/linux and haven't been able to find
information on getCmd() that will help me resolve the problem.  Can
anyone offer any advice?

I'm running:
Fedora Core 4
kernel-2.6.17-1.2142_FC4
MediaWiki 1.8.2
mysql-4.1.20-1.FC4.1
php-5.0.4-10.5
php-mysql-5.0.4-10.5
ImageMagick-6.2.2.0-3.fc4.2
R 2.4

Kind regards,
Mike Cassin



More information about the R-sig-mediawiki mailing list