Title: Asset Cleanup Warning: array_keys()
Last modified: April 30, 2019

---

# Asset Cleanup Warning: array_keys()

 *  Resolved [@Review](https://wordpress.org/support/users/orezzoli/)
 * (@orezzoli)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/asset-cleanup-warning-array_keys/)
 * Hello,
 * I got this error every time I activate the plugin:
    Warning: array_keys() expects
   parameter 1 to be array, null given in /home/****/public_html/****/****/wp-content/
   plugins/wp-asset-clean-up/classes/Main.php on line 575
 * The error shows at the top of every cart page: [http://www.domain.com/cart](http://www.domain.com/cart)
   
   But it doesn’t show for logged users like admin, even if “Enable Test Mode” is
   on.
 * Plugin version used: 1.3.2.7
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fasset-cleanup-warning-array_keys%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/asset-cleanup-warning-array_keys/#post-11483885)
 * [@orezzoli](https://wordpress.org/support/users/orezzoli/) thanks for reporting
   this! An update was made for the same tag. Please re-download the plugin and 
   try again.
 * That error would have triggered only if there is no CSS loaded via wp_enqueue_style()
   which is very unlikely for a WP site. Let me know if it works fine now!
 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/asset-cleanup-warning-array_keys/#post-11484777)
 * **One more thing:** I have a suspicion that you’re using SG Optimizer and one
   of the Asset CleanUp functions was triggered very early (that was a compatibility
   fix weeks ago) when you got the error. Now it would be fine. Just make sure that
   you don’t use both Minify CSS/JS from SG Optimizer and Asset CleanUp. I guess
   it’s like an unwritten rule not to use two plugins for the same feature. You’re
   using extra resources and it’s harder to debug things in case you stumble upon
   errors etc.
    -  This reply was modified 7 years, 1 month ago by [Gabe Livan](https://wordpress.org/support/users/gabelivan/).
 *  Thread Starter [@Review](https://wordpress.org/support/users/orezzoli/)
 * (@orezzoli)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/asset-cleanup-warning-array_keys/#post-11486960)
 * [@gabelivan](https://wordpress.org/support/users/gabelivan/) thank you a lot 
   for your help.
 * Once I re-installed and configured the plugin again, everything worked fine. 
   I had to reset everything first, because the first time I tried without resetting
   everything [just re-uploading the plugin] for some reason they where things missing,
   like for example the settings panel under each page or post… etc.
 * But now everything works fine.
 * I found this error just 24 or 48 hours ago, and I wasn’t using SG Optimizer when
   I installed Asset Cleanup, I removed it just before of that. But just to be sure,
   I went to my Cpanel and also deactivate their cache settings for this site there,
   because that plugin cache settings are inside Cpanel [Static, Dynamic, Mem].
 * I am also not using Asset Cleanup to minify js or css. I am using cloudflare 
   for that, to compress all css and JS, cache everything and serve it through their
   CDN.
 * I am testing Asset Cleanup to remove all unnecessary scrips sitewide, and from
   particular posts and pages.
 * So far, everything works fine.
 * Thank you again [@gabelivan](https://wordpress.org/support/users/gabelivan/)
 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [7 years ago](https://wordpress.org/support/topic/asset-cleanup-warning-array_keys/#post-11586213)
 * [@orezzoli](https://wordpress.org/support/users/orezzoli/) I’m glad everything
   was sorted! If you’re happy with Asset CleanUp, it would be great if you can 
   leave a review here: [https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/#new-post](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/#new-post)–
   I’m also open to feature suggestions if you have any!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Asset Cleanup Warning: array_keys()’ is closed to new replies.

 * ![](https://ps.w.org/wp-asset-clean-up/assets/icon-256x256.png?rev=1981952)
 * [Asset CleanUp: Page Speed Booster](https://wordpress.org/plugins/wp-asset-clean-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-asset-clean-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-asset-clean-up/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/)

## Tags

 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 4 replies
 * 2 participants
 * Last reply from: [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/asset-cleanup-warning-array_keys/#post-11586213)
 * Status: resolved