It does not work: Warning: Parameter 3 to render_include() expected to be a reference [solved]

Jump to: navigation, search

If your browser log file shows

[error] PHP Warning: Parameter 3 to render_include() expected to be a reference, value given in .../includes/parser/Parser.php on line 3333

you need to apply the

[edit] patch for PHP 5.3.x

--- secure-include.php.orig     2011-05-22 04:54:45.000000000 +0200
+++ secure-include.php  2011-05-22 04:53:16.000000000 +0200
@@ -669,7 +669,7 @@
  * @access public
  * @return string
  */
-function ef_include_render ( $input , $argv, &$parser )
+function ef_include_render ( $input , $argv, $parser )
 {
     global $highlighter_package;
     global $wg_include_allowed_features;
  • tested for MediaWiki trunk 1.19alpha (r88557) and PHP 5.3.6
--Wikinaut 03:03, 22 May 2011 (UTC)11:00, 11 December 2011

Applied, thanks.

--82.246.190.158 09:19, 22 May 2011 (UTC)11:00, 11 December 2011
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox