• Resolved onico0

    (@onico0)


    Hello,

    Thanks for your wonderful plugin, it’s a must!

    I would like to inform you that Asset CleanUp trigger a 500 error when we try to edit our KB settings (plugin, “Echo Knowledge Base“).

    Below are the logs :

    [05-Jun-2023 09:50:36 UTC] Asset CleanUp's object cache is not valid (from method "WpAssetCleanUp\ObjectCache::wpacu_cache_get").
    [05-Jun-2023 09:50:36 UTC] Asset CleanUp's object cache is not valid (from method "WpAssetCleanUp\ObjectCache::wpacu_cache_get").
    [05-Jun-2023 09:50:36 UTC] Asset CleanUp's object cache is not valid (from method "WpAssetCleanUp\ObjectCache::wpacu_cache_get").
    [05-Jun-2023 09:50:36 UTC] PHP Fatal error: Uncaught Error: Call to a member function set() on null in /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/ObjectCache.php:686
    Stack trace:
    
    0 /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(751): WpAssetCleanUp\ObjectCache::wpacu_cache_set('wpacu_maybe_opt…', false)
    
    1 /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(485): WpAssetCleanUp\OptimiseAssets\OptimizeCss::updateHtmlSourceOriginalToOptimizedCss('\t\t\r\n\t\t
    
    2 /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php(248): WpAssetCleanUp\OptimiseAssets\OptimizeCss::alterHtmlSource('\t\t\r\n\t\t
    
    3 /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php(183): WpAssetCleanUp\OptimiseAssets\OptimizeCommon::alterHtmlSource('\t\t\r\n\t\t
    
    4 [internal function]: WpAssetCleanUp\OptimiseAssets\OptimizeCommon::WpAssetCleanUp\OptimiseAssets{closure}('\t\t\r\n\t\t
    
    5 {main}
    
    thrown in /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/ObjectCache.php on line 686
    [05-Jun-2023 09:50:39 UTC] Asset CleanUp's object cache is not valid (from method "WpAssetCleanUp\ObjectCache::wpacu_cache_get").
    [05-Jun-2023 09:50:39 UTC] Asset CleanUp's object cache is not valid (from method "WpAssetCleanUp\ObjectCache::wpacu_cache_get").
    [05-Jun-2023 09:50:39 UTC] Asset CleanUp's object cache is not valid (from method "WpAssetCleanUp\ObjectCache::wpacu_cache_get").
    [05-Jun-2023 09:50:39 UTC] PHP Fatal error: Uncaught Error: Call to a member function set() on null in /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/ObjectCache.php:686
    Stack trace:
    
    0 /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(751): WpAssetCleanUp\ObjectCache::wpacu_cache_set('wpacu_maybe_opt…', false)
    
    1 /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(485): WpAssetCleanUp\OptimiseAssets\OptimizeCss::updateHtmlSourceOriginalToOptimizedCss('\t\t\r\n\t\t
    
    2 /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php(248): WpAssetCleanUp\OptimiseAssets\OptimizeCss::alterHtmlSource('\t\t\r\n\t\t
    
    3 /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php(183): WpAssetCleanUp\OptimiseAssets\OptimizeCommon::alterHtmlSource('\t\t\r\n\t\t
    
    4 [internal function]: WpAssetCleanUp\OptimiseAssets\OptimizeCommon::WpAssetCleanUp\OptimiseAssets{closure}('\t\t\r\n\t\t
    
    5 {main}
    
    thrown in /home/user/public_html/wp-content/plugins/wp-asset-clean-up/classes/ObjectCache.php on line 686

    I guess you will want to check, thanks again!

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

    (@gabelivan)

    @onico0 when an editor is ON, whether from this plugin or another (e.g., DIVI, Bricks, Thrive Builder, the CSS/JS manager from the bottom of the page should not show up, and any functions from Asset CleanUp should not trigger (e.g., minify JS) to avoid any interference with the editor. After all, you are focused on editing the page. CSS/JS management is done separately.

    I’ve updated the development version so Asset CleanUp would not trigger when the “Knowledge Base for Documents and FAQs” editor is ON.

    Consider downloading it here: https://www.assetcleanup.com/docs/how-to-get-the-development-version-of-asset-cleanup/ (you have explanations about how it works)!

    Let me know if this doesn’t fix your issue. It should!

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Fatal error from wp-asset-clean-up/classes/ObjectCache.php’ is closed to new replies.