01351: preg_replace core error
Description: It is marked as being fixed, but I just upgraded my PHP and the preg_replace called back deprecated error appear for the main pmwiki.php file at line 1664.
Seems this was missed in the update?
Larry August 23, 2014, at 12:05 AM
Does this happen when you disable all recipes, skins and modules? If no, which recipes, when enabled, cause the warning to appear? Petko
Hmm I (obviously) misunderstood the post about this, I didn't think of the line being called by the recipes list Larry ;
Still occurs with 2.2.90 on Ubuntu 16.04 LTS (Apache 2.4, PHP7):
PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/scripts/pmwiki-2.2.90/pmwiki.php on line 1718
Seems there are several problematic preg_replace() left inside the code (checked with a grep), that get only called with certain cookbooks.
Turned out I was following the wrong issue number. Correct issue number is 01319.
The error was caused by the TOC cookbook and vanished with version 2.1.2 of the cookbook. The InlineDiff cookbook seems not to cause any issues.
Maddes September 14, 2016, at 01:10 PM