@umbrellaweb this shouldn’t happen and it was never reported. After all, $wpacu_object_cache has declared as a “global” and it always worked. Something funny might have happened on your end (hopefully, it’s an isolated case). Whenever you have a chance, please send me privately (as it contains sensitive information) your “System Info” from “Tools” (plugin’s menu).
PS: I’ve applied a patch to the plugin. Please try the development version: https://assetcleanup.com/docs/?p=350! It might work for you. Of course, make sure the plugin works the same way (e.g. minified/combined CSS files, any unloaded CSS/JS, etc.).
@umbrellaweb are you still getting the same errors after you (hopefully) updated to the latest tag which is 1.3.6.8? Let me know whenever you have the chance 😉
@gabelivan yup setill getting the php fatal error after updating o latest. as per other topic re: sitemap error here is the same logs:
Added in the errorlog plugin. Was it this: https://ww.wp.xz.cn/plugins/error-log-monitor/ ?
If so this is what it reported in the dashboard:
Fatal error: Uncaught Error: Using $this when not in object context in /XXXX/wp-asset-clean-up/classes/ObjectCache.php:606
Stack Trace
1. WpAssetCleanUp\ObjectCache::wpacu_cache_get('wpacu_css_optim...')/XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php:641
2. WpAssetCleanUp\OptimiseAssets\OptimizeCss::updateHtmlSourceOriginalToOptimizedCss('<?xml version="...')/XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php:459
3. WpAssetCleanUp\OptimiseAssets\OptimizeCss::alterHtmlSource('<?xml version="...')/XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php:224
4. WpAssetCleanUp\OptimiseAssets\OptimizeCommon::alter in /XXXX/wp-asset-clean-up/classes/ObjectCache.php on line 606/XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php:171
AND here is from actual log files:
[Sat Aug 22 15:23:35 2020] [error] [client XXXX] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a member function get() on null in /XXXX/wp-asset-clean-up/classes/ObjectCache.php:597\nStack trace:\n#0 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(641): WpAssetCleanUp\\ObjectCache::wpacu_cache_get('wpacu_css_optim...')\n#1 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(459): WpAssetCleanUp\\OptimiseAssets\\OptimizeCss::updateHtmlSourceOriginalToOptimizedCss('<?xml version="...')\n#2 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php(224): WpAssetCleanUp\\OptimiseAssets\\OptimizeCss::alterHtmlSource('<?xml version="...')\n#3
[Sat Aug 22 15:27:34 2020] [error] [client XXXX] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Using $this when not in object context in /XXXX/wp-asset-clean-up/classes/ObjectCache.php:606\nStack trace:\n#0 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(641): WpAssetCleanUp\\ObjectCache::wpacu_cache_get('wpacu_css_optim...')\n#1 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(459): WpAssetCleanUp\\OptimiseAssets\\OptimizeCss::updateHtmlSourceOriginalToOptimizedCss('<?xml version="...')\n#2 /XXXX/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php(224): WpAssetCleanUp\\OptimiseAssets\\OptimizeCss::alterHtmlSource('<?xml version="...')\n#3