MediaWiki:PHP Fatal error: Call to undefined method GeSHi::enable line numbers() in

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

MediaWiki - PHP Fatal error: Call to undefined method GeSHi::enable line numbers() in

Ошибка в логах:

[20-Jan-2016 14:46:17 UTC] PHP Fatal error:  Call to undefined method GeSHi::enable_line_numbers() in /home/user/public_html/extensions/Code/Code.php on line 68
[20-Jan-2016 14:46:17 UTC] PHP Warning:  include(): Failed opening 'geshi/geshi.php' for inclusion (include_path='.:/opt/alt/php54/usr/share/pear:/op


Решение - заменить в файле extensions/Code/Code.php

       include('geshi/geshi.php'); // include only once or else wiki dies

на

       include('extensions/SyntaxHighlight_GeSHi/geshi/geshi.php'); // include only once or else wiki dies