Title: Duplicate Post &#8211; W3 Cache Plugin Error
Last modified: January 12, 2023

---

# Duplicate Post – W3 Cache Plugin Error

 *  Resolved [jatjai](https://wordpress.org/support/users/jatjai/)
 * (@jatjai)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/duplicate-post-w3-cache-plugin-error/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fduplicate-post-w3-cache-plugin-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/duplicate-post-w3-cache-plugin-error/#post-16370229)
 * Hello [@jatjai](https://wordpress.org/support/users/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](https://wordpress.org/support/users/jatjai/)
 * (@jatjai)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/duplicate-post-w3-cache-plugin-error/#post-16370451)
 * 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](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/duplicate-post-w3-cache-plugin-error/#post-16371152)
 * Hello [@jatjai](https://wordpress.org/support/users/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](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/duplicate-post-w3-cache-plugin-error/#post-16371227)
 * Hello [@jatjai](https://wordpress.org/support/users/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](https://wordpress.org/support/users/jatjai/)
 * (@jatjai)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/duplicate-post-w3-cache-plugin-error/#post-16371578)
 * 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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [jatjai](https://wordpress.org/support/users/jatjai/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/duplicate-post-w3-cache-plugin-error/#post-16371578)
 * Status: resolved