Support » Plugin: Airpress » Warning: preg_match(): Compilation failed: nothing to repeat at offset 2

  • alijafark

    (@alijafark)


    Airpress Is displaying Below error on all our pages and product pages.

    Warning: preg_match(): Compilation failed: nothing to repeat at offset 2 in /wp-includes/class-wp.php on line 222

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author chetmac

    (@chetmac)

    While it’s possible there is a bug or something to improve within Airpress, a quick google search turned up other plugins show this message and suggesting disabling DEBUG = true in your wp-config.php file.

    If you can share your VirtualPost/Field Regex and the URL (or test url) that shows this error I can better troubleshoot/diagnose.

    Thread Starter alijafark

    (@alijafark)

    Here is a test link of one of the pages showing this error TEST URL I’ve disabled DEBUG = true and even remove it from the wp-config.php file but the error still shows on all the site pages.

    Thank you

    • This reply was modified 1 year ago by alijafark.
    Plugin Author chetmac

    (@chetmac)

    If you’re able to give me access or a DB dump I could troubleshoot more deeply. In the meantime, here is a resource I found describing a purported solution:

    https://forums.envato.com/t/error-warning-preg-match/77270

    Please proceed with caution and ALWAYS have backups!

    wesup32

    (@wesup32)

    I had this exact issue and I am running Airpress.

    I solved the errors by deactivating the Autoptimize plugin. I first deactivated Airpress and the errors persisted. Going alphabetically I then deactivated Autoptimize and the errors disappeared.

    I hope that helps

    Optimizing Matters

    (@optimizingmatters)

    I’m Autoptimize’s developer and would be interested in troubleshooting that further wesup32, can you try with AO on but only JS or only CSS or only HTML or only Image opt on to see which one causes this for you?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Warning: preg_match(): Compilation failed: nothing to repeat at offset 2’ is closed to new replies.