Title: Deactivating causes cache error
Last modified: August 25, 2021

---

# Deactivating causes cache error

 *  [kindred](https://wordpress.org/support/users/kindred/)
 * (@kindred)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/deactivating-causes-cache-error/)
 * I have the Product Catalog X installed on several sites – working great.
 * However, on my staging site, I went to deactivate the plugin
    (deactivated Custom
   Product Order first, then the Product Catalog X second)
 * When I deactivate the plug in, I get a failure in the THEME file
    $cache_dir 
   = et_core_cache_dir()->path;
 * This line of code is just trying to pull the cache directory — but after deactivating
   the product catalog plugin, for some reason it can not do it. The only way to
   restore my site, at this point is to restore a backup!
    I tried removing the 
   plugin directory… I tried removing all of the plugin values added to the database…
   No luck. The system is stuck until I restore.
 * any ideas?
 * Wordpress 5.8
    Product Catalog X v 1.6.5
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdeactivating-causes-cache-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Deactivating causes cache error’ is closed to new replies.

 * ![](https://ps.w.org/post-type-x/assets/icon-128x128.png?rev=1261702)
 * [Product Catalog Simple](https://wordpress.org/plugins/post-type-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-type-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-type-x/)
 * [Active Topics](https://wordpress.org/support/plugin/post-type-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-type-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-type-x/reviews/)

 * 0 replies
 * 0 participants
 * Last reply from: [kindred](https://wordpress.org/support/users/kindred/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/deactivating-causes-cache-error/)
 * Status: not resolved