Hello Tim, thanks for reporting this. Where are you getting it? Just on every page or when you load some specific page? Thanks in advance.
I’m only seeing the error when I save changes to a menu.
Here’s a screencap.
If I refresh the page, everything is fine and changes have been saved.
Thanks Tim,
it does look like a bug. Hope you don’t mind checking one more thing. If you temporarily disable WAF by changing “Learning mode” to “Disabled” in the drop down menu (“Firewall” in Wordfence menu) does the issue disappear?
Okay,
Firewall disabled, issue gone.
Would it be helpful if I sent you diagnostics report?
Hello Tim,
I am going to check with the team if we already have a bug filed for this. The diagnostics might be helpful so yes, please send one to [email protected]. Thanks in advance!
I will mark this thread as a follow up and get back to you as soon as I have an answer.
Great, I just sent the diagnostic info.
I also experienced preg_match() error on save menu. Disabling the WordFence Firewall resolved the issue.
Hello dgallek,
thanks for reporting I will add your comment to the bug report. Our internal case number is FB1667.
If you set Firewall to “Learning mode” does the error still occur?
Hello everyone,
just wanted to let you know that we have fixed and tested this now. The error was thrown with certain older versions of PCRE. The fix is scheduled to be included in the next release of Wordfence.