• Hello,

    Just added this to our site and its started to show php fatal errors. Its quickly filling up the log files:
    ==============
    [15-Aug-2020 15:30:21 UTC] PHP Fatal error: Uncaught Error: Call to a member function get() on null in /home/XXXXXXX/public_html/plugins/wp-asset-clean-up/classes/ObjectCache.php:597
    Stack trace:
    #0 /home/XXXXXXX/public_html/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(641): WpAssetCleanUp\ObjectCache::wpacu_cache_get(‘wpacu_css_optim…’)
    #1 /home/XXXXXXX/public_html/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCss.php(459): WpAssetCleanUp\OptimiseAssets\OptimizeCss::updateHtmlSourceOriginalToOptimizedCss(‘<!DOCTYPE html>…’)
    #2 /home/XXXXXXX/public_html/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php(224): WpAssetCleanUp\OptimiseAssets\OptimizeCss::alterHtmlSource(‘<!DOCTYPE html>…’)
    #3 /home/XXXXXXX/public_html/plugins/wp-asset-clean-up/classes/OptimiseAssets/OptimizeCommon.php(171): WpAssetCleanUp\OptimiseAssets\OptimizeCommon::alterHtmlSource(‘<!DOCTYPE html>…’)
    #4 [internal function]: WpAssetCleanUp\OptimiseAssets\OptimizeComm in /home/XXXXXXX/public_html/plugins/wp-asset-clean-up/classes/ObjectCache.php on line 597
    ==================
    Not sure what to do. Have followed these posts: https://www.ads-software.com/support/topic/fatal-error-upon-activation-34/ & https://www.ads-software.com/support/topic/fatal-error-3111/

    although not related (I dont think). Deactivated and deleted plugin and reinstalled and still having the same issue.

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

    (@gabelivan)

    @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.).

    Plugin Author Gabe Livan

    (@gabelivan)

    @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 ??

    Thread Starter UmbrellaWeb

    (@umbrellaweb)

    @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://www.ads-software.com/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
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal Error’ is closed to new replies.