01351: preg_replace core error

Summary: preg_replace core error
Created: 2014-08-23 00:05
Status: Closed, duplicate of 01319.
Category: PHP Compatibility
From: Larry
Assigned:
Priority: 3
Version: 2.2.67
OS: 5.5.15

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.

Used 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