• Resolved vbengeult

    (@vbengeult)


    On the contact form page:
    Warning: preg_replace(): Compilation failed: unknown option bit(s) set at offset 0 in …/wp-includes/shortcodes.php on line 228

    On the admin/dashboard page:
    Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset 0 in …/wp-includes/class-simplepie.php on line 11043

    This began happening on one of my sites after upgrading to latest version of Contact Form 7. Have the same version of the plugin on Go Daddy and it works fine. GoDaddy is running an older version of PHP.

    On the contact form page I get a 404 error for the contact form as a result of the regular expression failing: [contact-form 404 "Not Found"]

    Any suggestions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter vbengeult

    (@vbengeult)

    Update. This error occurs in the dashboard on a clean installation with no plug-ins, just the basic install. So it’s not a Contact Form 7 problem, but it seems that whatever changed in the reg expression library is used by this plug-in.

    Not had any problems with CF7 in any of my 3.1.1 sites. Try re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress.

    Thread Starter vbengeult

    (@vbengeult)

    Thanks esmi, but I already tried that. As my update says, its a new download and fresh install, not because of CF7. I’m looking into the pcre library as the source of the problem now.

    Ah! – my bad. 🙂

    Thread Starter vbengeult

    (@vbengeult)

    OK, it turned out that the problem was an older version of libpcre hanging around on the system and getting loaded by mistake. Once I updated to the latest version of libpcre, problem fixed.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Contact Form 7] Problem with preg’ is closed to new replies.