• Resolved ssoulless

    (@ssoulless)


    For some reason I started to see this error in my log file, my site loads okay, but I don’t know what this error means:

    PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /home/ebanicom/public_html/wp-content/plugins/wp-asset-clean-up/classes/Main.php:2128

    Should I worry? How to fix it?

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

    (@gabelivan)

    @ssoulless this error would only occur when the list of CSS/JS is fetched via “WP Remote Post”. However, this has never been reported before, and based on the code I checked within the plugin the response should not have been an array, but a string. As far as I recall, this is the first time someone is reporting it, so hopefully, this is an isolated case.

    I’ve updated the development version of the plugin that has a patch to prevent this from happening again. I hope it works for you. Please use it and let me know how it works! Here’s how to get it: https://assetcleanup.com/docs/how-to-get-the-development-version-of-asset-cleanup/

    Let me know if you have any problems with the plugin fetching the CSS/JS list on specific pages. I guess you’ve chosen “WP Remote Post” for a reason, in case the “Direct” way of fetching the list didn’t work fine for you.

    Thread Starter ssoulless

    (@ssoulless)

    Ho okey I have changed the settings to “direct” I will update you if that fixes the issue. I actually don’t remember why I selected wp_remote

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Cannot use object of type WP_Error as array’ is closed to new replies.