Suddenly my friend's WordPress based website started showing up this warning on subpages:
Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /wp-includes/class-wp.php on line 218
Lines 218/219 that are returned in the warning are as follows:
if ( preg_match("#^$match#", $request_match, $matches) ||
preg_match("#^$match#", urldecode($request_match), $matches) ) {
Seems like the code is responsible for URL reworking.
Any ideas what could possibly be going wrong?
The error does not appear on the homepage but on sub-pages. Thus, I guess the permalinks structure is corrupt. An often suggested fix goes like this:
preg_match
errors gone?