Support » Plugin: W3 Total Cache » varnish pgcache flush wo conflict

  • Resolved RJ

    (@firefliespilots)


    Dear w3tc Team,
    Thank you for the first time for the great plugin, which actually works very well with us. Unfortunately, there were serious problems with the site today and we now have to figure out what the problem is.

    The following happened today. It came today to multiple error messages and all pages and posts are completely gone. You are not in the trash. They are just gone. Error message: (see below) What could that be?

    Many thanks for your hepl. Ciao Riccarda

    [Sun Nov 03 15:23:28.378356 2019] [fastcgi:error] [pid 23274:tid 139854990006016] [client 94.46.149.32:0] FastCGI: server "/home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/.config/apache/website.com/.fpm/php5.external" stderr: #5 /home/clie... Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null in /home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/website/wp-includes/link-template.php:373, referer: https://website.com/verwaltung
    [Sun Nov 03 15:23:28.377863 2019] [:error] [pid 23274:tid 139854990006016] [client 94.46.149.32:0] FastCGI: server "/home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/.config/apache/website.com/.fpm/php5.external" stderr: #4 /home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/website/wp-content/plugins/w3-total-cache/Varnish_Plugin.php(57): W3TC\\Varnish_Flush->flush_post('169'), referer: https://website.com/verwaltung
    [Sun Nov 03 15:23:28.377859 2019] [:error] [pid 23274:tid 139854990006016] [client 94.46.149.32:0] FastCGI: server "/home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/.config/apache/website.com/.fpm/php5.external" stderr: #3 /home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/website/wp-content/plugins/w3-total-cache/Varnish_Flush.php(303): W3TC\\Util_PageUrls::get_post_urls('169'), referer: https://website.com/verwaltung
    [Sun Nov 03 15:23:28.377856 2019] [:error] [pid 23274:tid 139854990006016] [client 94.46.149.32:0] FastCGI: server "/home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/.config/apache/website.com/.fpm/php5.external" stderr: #2 /home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/website/wp-content/plugins/w3-total-cache/Util_PageUrls.php(94): get_permalink(Object(WP_Post)), referer: https://website.com/verwaltung
    [Sun Nov 03 15:23:28.377853 2019] [:error] [pid 23274:tid 139854990006016] [client 94.46.149.32:0] FastCGI: server "/home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/.config/apache/website.com/.fpm/php5.external" stderr: #1 /home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/website/wp-includes/link-template.php(146): get_page_link(Object(WP_Post), false, false), referer: https://website.com/verwaltung
    [Sun Nov 03 15:23:28.377850 2019] [:error] [pid 23274:tid 139854990006016] [client 94.46.149.32:0] FastCGI: server "/home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/.config/apache/website/.fpm/php5.external" stderr: #0 /home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/website/wp-includes/link-template.php(335): _get_page_link(Object(WP_Post), false, false), referer: https://website.com/verwaltung
    • This topic was modified 3 months, 2 weeks ago by RJ.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @firefliespilots

    I am sorry about the issue you are having with varnish pgcache flush and I am happy to assist you with this.
    Some plugin tries to purge post too early in the WordPress cycle. We will add protection from such calls in the next release, but the origin of the problem is that something performs the call early and it’s not visible in your call stack since it is not full.
    Full-stack trace would help us understand where is this coming from.

    RJ

    (@firefliespilots)

    Dear Marko, thank you for your answer. Ok, how can I find out why? So what exactly was the cause why my pages and posts are all gone. Where is the mistake. Is it the plugin w3tc or something else? Thanks alot.
    Could it have been located on my provider?

    or this:

    function remove_pages_from_search() {
        global $wp_post_types;
        $wp_post_types['page']->exclude_from_search = true;
    }
    add_action('init', 'remove_pages_from_search');
    ## Disable POST REVISIONS
    define('WP_POST_REVISIONS', false);
    define( 'EMPTY_TRASH_DAYS', 3 );

    Ciao Rick

    • This reply was modified 3 months, 2 weeks ago by RJ.
    RJ

    (@firefliespilots)

    Dear Marko,

    So my concern is that since I’m backing up now and we want to go online tomorrow with our website, I somehow need to know why that happens and if that can happen again. Since I can not take any risks when the page is online and all pages and posts are all gone at once.

    If it was the w3tc plugin, I’ll have to deativate it first. Or it was something else.
    Sorry again. I just have to understand what exactly deleted my pages and posts from wordpress. Since it has nothing to do with the cache pages? Thanks again.

    • This reply was modified 3 months, 2 weeks ago by RJ.
    Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @firefliespilots

    Once again I am sorry about the issue you are experiencing but W3 Total Cache never deletes posts or pages, so it will not be related to W3 Total Cache in this case.
    You should reach out to your host and get the full stack trace and check for any errors. I must say this once again W3 Total Cache does not delete posts or pages from your WordPress website.

    RJ

    (@firefliespilots)

    Hi Marko, yes thank you. I think there is a problem with my provider. Thanks again. From the lock you want to install, when will the update come about? Thank you.

    RJ

    (@firefliespilots)

    A stupid question, what is the “full stack trace”? Thank you.

    Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @firefliespilots

    I cannot give you a specific date but the new release is just around the corner. So you can expect it soon.
    A stack trace, what you provided in your topic, is a report of the active stack frames at a certain point in time during the execution of a program. Now that is just a part of the stack trace so it’s not showing a full report.
    I hope this helps.

    RJ

    (@firefliespilots)

    Hi Marko, ok. many thanks. Have a nice day.

    RJ

    (@firefliespilots)

    Hi Marko, I know, I’m annoying. But I still found that at the time.

    [Sun Nov 03 15:21:50.373395 2019] [:error] [pid 23274:tid 139854939649792] [client 94.46.149.31:0] FastCGI: server “/home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/.config/apache/website.com/.fpm/php5.external” stderr: PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null in /home/clients/c47bcd0eb57c7d3f12bac29f75b92e12/website/wp-includes/link-template.php:373, referer: https://website

    • This reply was modified 3 months, 2 weeks ago by RJ.
    RJ

    (@firefliespilots)

    Dear Marko,

    I wanted to ask, when an update with “We will add protection from search calls in the next release” will come. Thank you. Good day

    RJ

    (@firefliespilots)

    Dear Marko, many thanks for the new Update.

    One question, is this issue fixed in the new update? Thank you and have a nice day. Cheers

    Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @firefliespilots

    You are most welcome. I am not sure what specific issue but if you are referring to. if you are referring to:

    We will add protection from search calls in the next release

    Yes, this was fixed.
    Once again the issue you were having is not related to W3 Total Cache.
    Thank you!

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.