• Resolved jatjai

    (@jatjai)


    I’m getting a critical error when trying to duplicate a post. I contacted my hosting support and here is their recommendation:

    From the stack trace it seems that the issue might not be with divi but with W3 caching plugin. What I can recommend is you contact the support of W3 and provide them with the stack trace so they can look into it.

    Here is the stack trace:

    #0 /home/ligcoach/public_html/wp-includes/class-wp-hook.php(308): W3TC\Varnish_Plugin->varnish_flush_post()

    #1 /home/ligcoach/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

    #2 /home/ligcoach/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

    #3 /home/ligcoach/public_html/wp-content/themes/Divi/core/components/init.php(88): do_action()

    #4 /home/ligcoach/public_html/wp-content/themes/Divi/core/components/PageResource.php(981): et_core_clear_wp_cache()

    #5 /home/ligcoach/public_html/wp-content/themes/Divi/core/components/PageResource.php(921): ET_Core_PageResource::do_remove_static_resources()

    #6 /home/ligcoach/public_html/wp-content/themes/Divi/core/components/PageResource.php

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

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

    (@vmarko)

    Hello @jatjai

    Thank you for reaching out and I am happy to assist you with this.

    Can you please share if the option “Enable reverse proxy caching via varnish” is enabled in Performance>General settings>Reverse Proxy, and if so, have you specified the IP addresses of your varnish instances?

    Also, pleas let me know which method you are using for duplicating posts.
    Thanks!

    Thread Starter jatjai

    (@jatjai)

    Hi – Yes, it is enabled and there is a specified IP address.

    When duplicating posts – I go to Posts and hover over the post title and click on “Duplicate”. When I do this, it shows a page with “There has been a critical error on this website.”

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jatjai

    Thank you for your feedback.

    We are looking into this and trying to replicate the problem. I’ll het back to you once I have more information.

    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jatjai

    Can you please try a quick “fix” and update /wp-content/plugins/w3-total-cache/Varnish_Plugin.php line 57 to:

    public function varnish_flush_post( $post_id, $force = false ) {

    Let me know if this helps!

    Thanks!

    Thread Starter jatjai

    (@jatjai)

    Thank you for your response.

    I contacted my hosting support with this fix – they mentioned I should uncheck the “Enable reverse proxy caching via varnish” since they don’t work with the varnish servers. I tried that and it seems to have solved the issue.

    Thanks for your help!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Duplicate Post – W3 Cache Plugin Error’ is closed to new replies.