• Resolved mequoda1

    (@mequoda1)


    We recently completed an upgrade on one of our sites. We are now seeing this error in New Relic:
    preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 0

    in preg_match called at /mnt/nfs/html/ceramicartsnetwork.org/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php (920)
    in W3TC\PgCache_ContentGrabber::_passed_reject_uri called at /mnt/nfs/html/ceramicartsnetwork.org/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php (580)
    in W3TC\PgCache_ContentGrabber::_can_cache called at /mnt/nfs/html/ceramicartsnetwork.org/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php (201)
    in W3TC\PgCache_ContentGrabber::process called at /mnt/nfs/html/ceramicartsnetwork.org/wp-content/advanced-cache.php (37)
    in include called at /mnt/nfs/html/ceramicartsnetwork.org/wp-settings.php (91)
    in require_once called at /mnt/nfs/html/ceramicartsnetwork.org/wp-config.php (146)
    in require_once called at /mnt/nfs/html/ceramicartsnetwork.org/wp-load.php (37)
    in require_once called at /mnt/nfs/html/ceramicartsnetwork.org/wp-blog-header.php (13)
    in require called at /mnt/nfs/html/ceramicartsnetwork.org/index.php (17)

    What is causing this error and how can we resolve?

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

    (@vmarko)

    Hello @mequoda1

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Can you please share if you added any links to Performance>Page Cache>Adfvanced “Never cache the following pages:”?
    Thank you!

    Thread Starter mequoda1

    (@mequoda1)

    Yes, we have links added there, but we always have. We are only experiencing this issue since we upgraded.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mequoda1

    Can you please share those links or confirm that those are valid regex?
    Thank you

    Thread Starter mequoda1

    (@mequoda1)

    Yes, we have not changed those

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    Can you please remove those lines from “Never cache the following pages:” field except the default ones, save all settings and purge the cache and let us know if the issue persists.
    You can put them back after this is just for testing purposes.
    It would be great if you could share those links.
    Thank you!

    Thread Starter mequoda1

    (@mequoda1)

    Here are the URLs that are set to never cache

    wp-.*\.php
    index\.php
    /account/*
    /account
    /account/
    /get-download
    /get-download/*
    /search-results/*
    *.rss
    *.xml
    /newsletters/
    /newsletters/*
    mobile-detect\.php
    /edit-account-details
    /edit-account-details/*
    /wp-mobile-detect
    /wp-mobile-detect/*
    wp-mobile-detect/*
    /shop/*
    /event*
    /admin-ajax.php
    /magazines-subscriptions/glaze-recipes-club/
    /ceramic-recipes/high-fire/standard-white/
    /uac-hook/
    /hr-ultra-popup-submit/
    /hr-ultra-popup-submit/*
    /paywallsubmit
    /paywallsubmit/*
    /shop/
    /shop/cart/
    /shop/checkout/
    /shop/confirm-order/
    /shop/thanks/
    /shop/account/
    */force-download.php

    Thread Starter mequoda1

    (@mequoda1)

    We removed some of those and the error went away. Do you have any feedback? We are not sure which one(s) may be causing the error.

    Thank you!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mequoda1

    I suspect that the line mobile-detect\.php may be causing the issue.
    Please check our FAQ for more info about regexp.
    The issue that you are referring to preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 0 in /wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php means that invalid regexp is being used.
    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘New Relic errors with W3TC’ is closed to new replies.