• Resolved wpuser10

    (@adelatusanova)


    Dear team,

    when I tried to deactivate the plug in, I have received fatal error:
    Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/nfsmnt/hosting2_2/3/e/3ecb127c-d793-4d9c-bf32-0284ae55d2c4/rainbow-heart.sk/web/wp-content/cache/asset-cleanup/): failed to open dir: No such file or directory in /nfsmnt/hosting2_2/3/e/3ecb127c-d793-4d9c-bf32-0284ae55d2c4/rainbow-heart.sk/web/wp-content/plugins/wp-asset-clean-up/classes/Plugin.php:203 Stack trace: #0 /nfsmnt/hosting2_2/3/e/3ecb127c-d793-4d9c-bf32-0284ae55d2c4/rainbow-heart.sk/web/wp-content/plugins/wp-asset-clean-up/classes/Plugin.php(203): RecursiveDirectoryIterator->__construct(‘/nfsmnt/hosting…’) #1 /nfsmnt/hosting2_2/3/e/3ecb127c-d793-4d9c-bf32-0284ae55d2c4/rainbow-heart.sk/web/wp-content/plugins/wp-asset-clean-up/classes/Plugin.php(148): WpAssetCleanUp\Plugin::removeCacheDirWithoutAssets() #2 /nfsmnt/hosting2_2/3/e/3ecb127c-d793-4d9c-bf32-0284ae55d2c4/rainbow-heart.sk/web/wp-includes/class-wp-hook.php(287): WpAssetCleanUp\Plugin->whenDeactivated(false) #3 /nfsmnt/hosting2_2/3/e/3ecb127c-d793-4d9c-bf32-0284ae55 in /nfsmnt/hosting2_2/3/e/3ecb127c-d793-4d9c-bf32-0284ae55d2c4/rainbow-heart.sk/web/wp-content/plugins/wp-asset-clean-up/classes/Plugin.php on line 203

    I was able to deactivate the plug-in on the dev site after I commented/disabled whole function public static function removeCacheDirWithoutAssets().

    Please help how to get rid of this on production.

    thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @adelatusanova Sorry for this late reply! I’ve checked this issue and the fact that you got this error suggests that either the caching directory wasn’t created in the first place which is surprising or you manually deleted it before deactivating the plugin. Now, in the next version of the plugin, there will be a check to determine whether the directory exists or not. If it doesn’t, it will not trigger removeCacheDirWithoutAssets().

    So, until the next version will be released, please comment line 148 from /wp-content/plugins/wp-asset-clean-up/classes/Plugin.php (reference: https://plugins.trac.www.ads-software.com/browser/wp-asset-clean-up/tags/1.3.6.1/classes/Plugin.php#L148)

    I’m having the same error as well. I’ve even reinstalled the plugin but to no avail :/ I really need to deactivate it to troubleshoot an issue with Elementor.

    Plugin Author Gabe Livan

    (@gabelivan)

    @alikhodrali Can you follow the instructions from the previous comment I left regarding editing Plugin.php file? The fix will be added in the next version of the plugin which will be released as soon as possible.

    Ahh my apologies, I misunderstood that part when I first read it. That solution worked for me! Thanks for your help and thanks for being so prompt ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deactivation – Fatal error’ is closed to new replies.