• Resolved Tom

    (@narlytom)


    Hi there, I have noticed in my error logs from my host that this error is occurring very frequently – it seems perhaps to occur on every page view.

    PHP Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 0 in /public_html/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 952

    Im not sure when it started, and I haven’t changed any settings recently.

    Do you know to which setting this error might relate?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @narlytom

    Thank you for your inquiry and I am happy to assist you with this.
    This means that you have invalid regexp when excluding a page from being cached in Peformance>Page Cache>”Never cache the following pages”
    Please check the FAQ page for detailed instructions and this article may help you also.
    Thank you!

    Thread Starter Tom

    (@narlytom)

    I am using the recommended setting from my host, and in the mentioned setting box is the following:

    wp-.*\.php
    index\.php
    *?tve=true
    *?cpo_options=1
    *?et_fb=1

    Does this look as though it is configured correctly?

    Thanks again

    • This reply was modified 4 years, 4 months ago by Tom.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @narlytom

    Thank you for the information
    You should remove everything below:

    wp-.*\.php
    index\.php

    The *?tve=true is not a correct value as suggested in the articles provided. As these are query strings, if the option “Cache URIs with query string variables” is not enabled in Performance>Page Cache these will not be cached.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP warning preg_match’ is closed to new replies.