• Resolved Manni79

    (@manni79)


    Hello,

    I posted already in another thread, but because the other thread is general resolved, I think it is not pushed anymore and nobody will find it:
    https://www.ads-software.com/support/topic/plugin-not-compatible-with-new-wordpress-update-5-3

    At the last pages on that thread, also other people still write about problems and I see no solutions on the thread.

    I have updated WordPress and W3 Total Cache, both to newest version, and face an error now:
    Compilation failed: quantifier does not follow a repeatable item at offset 0 in */w3-total-cache/PgCache_ContentGrabber.php on line 920

    In complete:

    Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 0 in /www/htdocs/USER/SITE.com/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 920
    
    Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 0 in /www/htdocs/USER/SITE.com/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 920

    What is the solution for this?

    Also the plugin seems to be deactivated and even when I activate it and WP says it is activating is, after refresh my plugins overview it shows like it is deactivated. Any ideas about that related to that “PgCache_ContentGrabber.php on line 920” error?

    • This topic was modified 4 years, 10 months ago by Manni79.
    • This topic was modified 4 years, 10 months ago by Manni79.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @manni79, sorry to hear that you are getting that error on your website and hopefully this can help you get everything working as expected.

    One thing you can try is completely removing all W3TC files from your WordPress installation and reinstall the plugin. First delete the plugin in your Dashboard and then open your /wp-content and remove the following files:

      w3-total-cache-config.php
      db.php
      Advanced-cache.php
      Cache
      w3tc-config

    After that try reinstalling the plugin to see if that fixes the problem.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manni79
    Any update on this?

    Thread Starter Manni79

    (@manni79)

    I will give it a try now. Let you know in some minutes.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manni79

    Thank you. Just one more question, have you added some pages to “Never cache the following pages:” in Performance>Page Cache?
    Can you please share the screenshot of the Performance>Page Cache>Advancerd sub-box area?
    Thank you

    Thread Starter Manni79

    (@manni79)

    It works now:
    – I delete plugin in WP interface
    – deleted in content folder:
    Cache
    w3tc-config

    w3-total-cache-config.php, db.php, Advanced-cache.php I did not need to delete. The files were not in the content folder.

    Installed again. No Error Message anymore.

    Any tip how this can happen?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @manni79

    Glad to know your issue is now resolved.
    Possibly regex was not matched in “Never cache the following pages:” in Performance>Page Cache or some minor issue with the update.
    Thank you!

    Hello @vmarko

    I’m also seeing this error. I have options set in “Never cache the following pages”. Could you tell me what the error with the following set options might be?

    
    wp-.*\.php
    index\.php
    /.* basket.*
    /.* checkout.*
    */basket
    */checkout
    */rental/basket/
    */rental/checkout/
    
    Thread Starter Manni79

    (@manni79)

    Short Addition:
    I had also Options on “Never cache the following pages” active when the error occurs. I missed the question before, so I checked that later. But I know I had some URLs also with RegEx active on “Never cache the following pages” when error occurs after update. Same like tidyluke has.

    @tidyluke: Problem is, the thread is flagged as “resolved”. Perhaps support will not see your message. Perhaps make a new ticket/thread and link it here.

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

    (@vmarko)

    Hello @tidyluke

    Please check out our FAQ page for regexp instructions.
    Thank you!

    Thanks for the response @vmarko, I’ve taken a look at this page previously, nothing seemed to be wrong to me so I was hoping you’d take a look at the code snippet I had provided.

    Right now I’ve had to roll back the version of this plugin because the error log file was getting multiple entires each page visit.

    Hello @vmarko,

    I have the same error after upgrading my install of W3 Total Cache to version 0.14.1 on:
    WordPress version 5.4.1
    Server architecture Linux 4.19.113-combell x86_64
    PHP version 7.4.6 (Supports 64bit values)
    I am facing the following error:
    PHP Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 0 in /data/sites/web/URL/www/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 952′
    PHP Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 0 in /data/sites/web/URL/www/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 952′

    I have the following “Never cache the following pages” settings:
    wp-.*\.php
    index\.php

    Question is: how to solve this.

    I see also periodically my site is going down for a minute of so.

    Thanks in advance,

    Best Regards,
    Staf

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error preg_match(): Compilation failed – PgCache_ContentGrabber.php on line 920’ is closed to new replies.