[Plugin: Events Manager] rewrite rules trigger "Compilation failed" warnings
-
FYI: PHP=5.3.14
Events manager 5.1.8.5 is generating warnings as follows:
Warning: preg_match() [/phpmanual/function.preg-match.html]: Compilation failed: nothing to repeat at offset 1 in /data/websites/angove/wp-includes/class-wp.php on line 201
Warning: preg_match() [/phpmanual/function.preg-match.html]: Compilation failed: nothing to repeat at offset 1 in /data/websites/angove/wp-includes/class-wp.php on line 202
This is due to an unescaped “?” in the following regexes, which PHP is trying to interpret as a shortcut for {0,1}:
?page_id=871/(\d{4}-\d{2}-\d{2})$
?page_id=871/rss$
?page_id=871/feed$
?page_id=871/event/(.+)$
?page_id=871/location/(.+)$
?page_id=871/category/(.+)$
?page_id=871/?$s/871/your events page/g
In all cases, I reckon you should be escaping the “?” as “\?”
cheers,
Ross
- The topic ‘[Plugin: Events Manager] rewrite rules trigger "Compilation failed" warnings’ is closed to new replies.