Just updated my server to PHP 7 and got a lot of errors. One of them in a old plugin is this here:
$str = preg_replace( array(
// eliminate single line comments in '// ...' form
'#^\s*//(.+)$#m',
// eliminate multi-line comments in '/* ... */' form, at start of string
'#^\s*/\*(.+)\*/#Us',
// eliminate multi-line comments in '/* ... */' form, at end of string
'#/\*(.+)\*/\s*$#Us'
), '', $str );
| ERROR | preg_replace() - /e modifier is forbidden since PHP 7.0
What is this? I'm a beginner and googled a little bit but found absolutely no good tutorial to fix this.
Thanks for your help :)