• Resolved davidfh34

    (@davidfh34)


    Hello, my PHP log is full of messages:

    PHP Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 1 in /usr/home/trientrenos.com/web/wp-content/plugins/wp-optimize/cache/file-based-page-cache-functions.php on line 686

    I use PHP 7.4, is there any way to solve this?
    Thank you

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter davidfh34

    (@davidfh34)

    Detected what happens when you put the * in exclude URL ( advanced )

    example ?wc-ajax*

    This expresion is for problem 403 with URL ?wc-ajax=update_order_review

    • This reply was modified 4 years, 10 months ago by davidfh34.
    • This reply was modified 4 years, 10 months ago by davidfh34.

    Hi there,

    Thanks for reporting, and for the details. We’ll look into it.

    Best wishes,
    Marc.

    Thread Starter davidfh34

    (@davidfh34)

    it seems mandatory to put / at the beginning of the URL Always

    Also note that you do not need to add ?wc-ajax=update_order_review to be excluded: GET parameters are excluded by default, apart from a few exceptions.

    Marc.

    Thread Starter davidfh34

    (@davidfh34)

    wc-ajax is POST , it’s to be excluded?

    All POST requests are also automatically excluded, as it is expected to have data that needs handling.

    Thread Starter davidfh34

    (@davidfh34)

    ?? if I disable the cache, I don’t get the 403

    The 403 error and the PHP Warning aren’t related.

    An error 403 is a permission error. It’s usually going to happen when a nonce is expired.
    As far as I know, ?wc-ajax=update_order_review is used on WooCommerce’s checkout, which should not be cached. The checkout page is supposed to be excluded by default. But if for some reasons it is not, you can probably add the page /finalizar-comprar/ to the exclusions.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Warning: preg_match(): Compilation failed’ is closed to new replies.