FS#22418 - [mediawiki] does not work with texvc symlink
Attached to Project:
Community Packages
Opened by Óscar Pereira (gauthma) - Friday, 14 January 2011, 00:36 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 14 January 2011, 09:58 GMT
Opened by Óscar Pereira (gauthma) - Friday, 14 January 2011, 00:36 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 14 January 2011, 09:58 GMT
|
Details
Description: when installing mediawiki, inside its
installation directory, exits a subdirectory called "math".
The PKGBUILD for mediawiki creates, inside that math subdir,
a symlink to the texvc executable, usually /usr/bin/texvc.
But the problem is that when mediawiki runs, it will check
that the file inside *it's math directory* (i.e. the
symlink), is *executable*, and if this is not the case,
refuse to render the math (presumably LaTeX) code. On the
site, a message will be shown complaining that texvc is not
installed. Specifically, see
<path_to_mediawiki>/includes/Math.php, line 58 and
following:
if( function_exists( 'is_executable' ) && !is_executable( $wgTexvc ) ) { return $this->_error( 'math_notexvc' ); } Additional info: * mediawiki version 1.16.1-1 Steps to reproduce: install mediawiki, and texvc, and insert some math code into the wiki: the rendering will fail, with a message saying that texvc is not installed Note: in the category, it's selected "Packages: Extra" because "Packages Community" is a missing option in the dropdown box... |
This task depends upon
Closed by Sergej Pupykin (sergej)
Friday, 14 January 2011, 09:58 GMT
Reason for closing: Fixed
Additional comments about closing: replaced with:
if( function_exists( 'is_file' ) && !is_file( $wgTexvc ) ) {
Also workaround is changing texvc path configuration parameter
Friday, 14 January 2011, 09:58 GMT
Reason for closing: Fixed
Additional comments about closing: replaced with:
if( function_exists( 'is_file' ) && !is_file( $wgTexvc ) ) {
Also workaround is changing texvc path configuration parameter