joomla version 3 error mod_fcgid: stderr: PHP Warning: preg_replace_callback(): Requires argument 2, ”, to be a valid callback

joomla version 3 error mod_fcgid: stderr: PHP Warning: preg_replace_callback(): Requires argument 2, ”, to be a valid callback

mod_fcgid: stderr: PHP Warning: preg_replace_callback(): Requires argument 2, ”, to be a valid callback in /var/www/vhosts/domain.com/httpdocs/new/libraries/joomla/filter/input.php on line 712, referer: http://www.domain.com/new/installation/index.php#
mod_fcgid: stderr: PHP Warning: preg_replace_callback(): Requires argument 2, ”, to be a valid callback in /var/www/vhosts/domain.com/httpdocs/new/libraries/joomla/filter/input.php on line 719, referer: http://www.domain.com/new/installation/index.php#

vi libraries/joomla/filter/input.php to resolve

707 // Convert decimal
708 // $source = preg_replace_callback(‘/&#(\d+);/m’, function($m)
709 // {
710 // return utf8_encode(chr($m[1]));
711 // }, $source
712 // );
713 $source = preg_replace_callback(‘/&#(\d+);/m’, function($m){return utf8_encode(chr($m[1]));}, $source); // decimal notation
714
715 // Convert hex
716 // $source = preg_replace_callback(‘/&#x([a-f0-9]+);/mi’, function($m)
717 // {
718 // return utf8_encode(chr(‘0x’ . $m[1]));
719 // }, $source
720 // );
721 $source = preg_replace_callback(‘/&#x([a-f0-9]+);/mi’, function($m){return utf8_encode(chr(‘0x’.$m[1]));}, $source); // hex notation

Leave a Reply

Your email address will not be published.

five × 3 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.