• Resolved purplepatriot

    (@purplepatriot)


    Hello!

    I’m getting the following warnings. They appear on both the public side (except not the homepage but every other page) and admin side (except not the dashboard, but Pages and Posts):

    Warning: preg_match() [function.preg-match]: Unknown modifier ‘/’ in /home/***/domain.com/tnp/wp-includes/class-wp.php on line 204

    Warning: preg_match() [function.preg-match]: Unknown modifier ‘/’ in /home/***/domain.com/tnp/wp-includes/class-wp.php on line 205

    It seems to have shown up after I added the Pods plugin. Yet, when I deactivate all plugins, the warnings don’t go away. If I reactivate Pods, the warnings go away. If I then activate EM, the warnings come back. If I deactivate both, again the warnings are still there. If I reactivate Pods, they go away again. If I then deactivate Pods and THEN reactivate EM, the warnings reappear.

    If I deactivate all plugins, and reactivate one-by-one, saving EM for last, everything is fine once I reactivate Pods up until I reactivate EM, at which time the warnings appear again.

    So, I just can’t tell which is the culprit.

    Things I’ve tried after the warnings appeared:
    1. Switched to 2015 theme. Doesn’t make warnings go away.
    2. Deactivated all plugins. Doesn’t make warnings go away.

    My WP, theme, and plugin versions (all up-to-date):
    WP: 4.2.1
    EM: 5.5.6
    Pods: 2.5.1.2
    Genesis: 2.1.2

    Thank you!

    https://www.ads-software.com/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Sounds like some rewrite rules are causing your issue, between activating / deactivating each combination, try going to Settings > Permalinks > Save changes — that will flush the rewrites and should help you track down what is really causing it.

    Also consider adding a plugin called Rewrite Rules Inspector which can show you your rules and you may be able to see which rule itself is causing the problem.

    Thread Starter purplepatriot

    (@purplepatriot)

    Thank you for the quick reply, Scott. Forgot to mention I did the Permalinks thing – still warnings. I’ll try the Rewrite Rules Inspector and see if that gets me anywhere. Much appreciated!

    Thread Starter purplepatriot

    (@purplepatriot)

    Strange. I loaded Rewrite Rules Inspector, but I’m not exactly sure what I’m looking for.

    I was still having issues, so I deactivated Rewrite Rules Inspector and loaded the Query Monitor plugin, and now the warnings don’t display (suppressed). To be sure, Query Monitor indicates the same 2 PHP warnings , they just don’t display on the page (front-end or back-end).

    On the back-end, the only pages that are affected are those of type /wp-admin/edit.php, so Pages, Posts, and any CPTs. If this is getting far afield, I apologize and will mark as resolved.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    another workaround is to disable wordpress display error as per article – https://codex.www.ads-software.com/Debugging_in_WordPress since this is not a fatal error and everything should work fine.

    Thread Starter purplepatriot

    (@purplepatriot)

    Thanks, angelo. That is what I’ll have to do. Although the issue remains, I can live with it for now. The debugger in me cringes just a little at marking this resolved, but it will have to wait for another day. =)

    I wouldn’t mark this as resolved until a solution to fixing the issue is found. Hiding it doesn’t count ??

    Thread Starter purplepatriot

    (@purplepatriot)

    Thanks, Scott. I’m certainly not trying to hide anything – I just don’t know how big a deal this is. It’s now un-resolved again, but at least I can get on with more site dev. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Pods and EM collision? preg_match() warning’ is closed to new replies.