• Can anyone tell me where this error comes from and/or how to get help to fix it?
    I found a way to hide the php-warning via wp-config.php – but I suppose the error is still there “behind” as long as I don’t know what the culprit is – theme/plugins/WP?

    Warning: preg_match() [function.preg-match] :Compilation failed: quantifier does not follow a repeatable item at offset 1 in /var/www/broderist.com/public_html/wp-includes/class-wp.php on line 223

    the code itself looks like this:

    if ( preg_match ( “#^$match#” , $request_match , $matches ) ||
    preg_match ( “#^$match#” , urldecode ( $request_match ) , $matches )) {

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and switch to the default Twenty Twenty-One theme. If the problem goes away, enable them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter Grafikbutik

    (@grafikbutik)

    That sounds like a good way around it. Thank you! My concern is exactly that: how to make visitors able to purchase products and look around in the shop while fixing the issue …
    Alernatively, I may have to temporarily shut the site down for maintenance while working on this.

    Moderator James Huff

    (@macmanx)

    Just use the Health Check plugin’s troubleshooting tab. As mentioned above, “you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.”

    Thread Starter Grafikbutik

    (@grafikbutik)

    Thank you – I have done that, and the problem persists …It comes up as soon as the theme is put back on -but the errorcode refers to a wp core file (wp-includes > class-wp.php)
    Any ideas to a solution? I have contacted theme developer of course – waiting for reply.

    Moderator James Huff

    (@macmanx)

    If the problem goes away when a different theme is in use, then the problem is definitely a conflict caused by your original theme.

    That is something the theme’s developer will need to fix, or it might be a good time to try a newer theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘preg_match warning’ is closed to new replies.