Quote:
Originally Posted by mikez006
Doesn't work with PHP7
PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /home/folder/public_html/includes/vfchh/php/vfc_hide_core.php on line 163
|
Locate line #163 in the referenced file, which is:
PHP Code:
$message = preg_replace("/\[" . $tag . "=("|\"|'|)([0-9,\s]+)\\1\](.*)\[\/" . $tag . "\]/esiU", "\$this->tagparser->\$parser('\\3', '\\2')", $message);
Try changing this line to:
PHP Code:
$message = preg_replace_callback("/\[" . $tag . "=("|\"|'|)([0-9,\s]+)\\1\](.*)\[\/" . $tag . "\]/esiU", function($subs) {return \$this->tagparser->\$parser($subs[3], $subs[2]);}, $message);
Note: I have not tested this.