• Resolved Morgan Kay

    (@gwendydd)


    This plugin generates the following error on all archive pages in both the dashboard and the front end of the site:

    Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /var/www/<url>/website/wp-includes/class-wp.php on line 223 Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /var/www/<url>/website/wp-includes/class-wp.php on line 224

    This is a permalinks problem. If I disable the plugin and save permalink settings, the problem goes away, but as soon as I enable the plugin, these errors return.

Viewing 3 replies - 1 through 3 (of 3 total)
  • aazztech

    (@aazztech)

    Hi Morgan Kay,

    Did you tried to turn-off your wp_debug mode? Everything should work as expected, since it’s only a warning message and not fatal errors

    https://www.greengeeks.com/tutorials/article/disable-wordpress-php-error-messages/

    Or

    1. Temporarily disable all your plugins! Do not skip this step.
    2. Go to the WordPress admin dashboard: Settings -> Permalinks note what you have in the custom permalinks field somewhere else
    temporary switch to default permalinks. Save settings.
    3. Heck the page in question: Are the preg_match errors gone?
    4. Witch back to your previous custom permalinks setting
    5. Re-enable back all the plugins, the pages should be back to normal.

    Thanks.

    • This reply was modified 4 years ago by aazztech.
    Thread Starter Morgan Kay

    (@gwendydd)

    If I go through all the steps you list, the problem does go away, but then as soon as I re-enable Directorist, the problem comes back.

    Yes, I have turned off debug mode so that the errors no longer display on the site, but that doesn’t mean the problem is actually fixed. My error log is still full of those warnings.

    Mostly I wanted to make sure you were aware of the error so that you could fix this in a future release of the plugin. Thanks!

    aazztech

    (@aazztech)

    Hi,
    We’re sorry that the issue has not fixed yet. Please post this issue on our forum so that we can assist you further.

    Thanks.

    • This reply was modified 4 years ago by aazztech.
    • This reply was modified 4 years ago by aazztech.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning: Warning: preg_match(): Compilation failed: nothing to repeat at off’ is closed to new replies.