s2Pro Bug? Apache log Full of mod_fcgid errors

Not sure how to report what looks like a bug in S2 Pro?
My apache error logs are FULL of messages like this:

mod_fcgid: stderr: PHP Warning: preg_match(): Compilation failed: missing ) at offset 309 in /AppBuzzinga.com/httpdocs/wp-content/plugins/s2member/src/includes/classes/custom-reg-fields.inc.php on line 696, referer: https://appbuzzinga.com/?s2member_profile=1

It reads like a typo in the source file. It is a warning, but may still be causing issues we haven’t traced yet.

Sid B.

@deadparrotsoftware It looks like the problem might be that you have a field with special characters that preg_match() is choking on. I think we need a preg_quote() there to escape the special characters before running it through preg_match().

I’ve opened a bug report here: https://github.com/websharks/s2member/issues/1054

Thanks so much for reporting!

1 Like

This issue was actually already fixed in the development branch of the software, as it was reported earlier. The fix will go out with the next release, which is due out in the next few days.

s2Member v170221 has been released and includes changes mentioned in this forum thread. See the v170221 announcement for further details.