Title: Cron errors &amp; media library blank
Last modified: August 22, 2016

---

# Cron errors & media library blank

 *  Resolved [SheerHeartAttack](https://wordpress.org/support/users/sheerheartattack/)
 * (@sheerheartattack)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cron-errors-media-library-blank/)
 * After updating the plugin, I’m now getting the following error on every page 
   of my site:
 *     ```
       Warning: Cannot unset offset in a non-array variable in /*****/wp-includes/cron.php on line 151
       Warning: Cannot unset offset in a non-array variable in /*****/wp-includes/cron.php on line 153
       ```
   
 * Even when I deactivate the plugin, I still get this error. My media library is
   also showing up blank. I haven’t changed anything else, and since the plugin 
   update changed how cron jobs are run I can’t help but feel like there’s some 
   connection. I’ve tried replacing all the WP core files but nothing seems to make
   this error go away.
 * Thank you!
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

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

 *  Thread Starter [SheerHeartAttack](https://wordpress.org/support/users/sheerheartattack/)
 * (@sheerheartattack)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cron-errors-media-library-blank/#post-5391220)
 * Hm, I guess the media library problem was just because of the error. If I hide
   the error, the media library works again. But is the error itself something to
   worry about?
 *  [Sagar](https://wordpress.org/support/users/supportguru/)
 * (@supportguru)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cron-errors-media-library-blank/#post-5391228)
 * It is just a warning created for the cron.php as it is not getting the appropriate
   variables.
    You can comment it out or else get back the wp-includes from a fresh
   setup.
 *  Thread Starter [SheerHeartAttack](https://wordpress.org/support/users/sheerheartattack/)
 * (@sheerheartattack)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cron-errors-media-library-blank/#post-5391231)
 * I replaced the whole wp-includes folder and the error was still there. Does the
   fact that it’s not getting the appropriate variables cause a problem? By comment
   it out do you mean the function triggering the error?
 *  Thread Starter [SheerHeartAttack](https://wordpress.org/support/users/sheerheartattack/)
 * (@sheerheartattack)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/cron-errors-media-library-blank/#post-5391427)
 * I’ve also noticed that iThemes Security is no longer updating my .htaccess, even
   though I have it set to. Before this update it always worked, and suddenly now
   it doesn’t. Any idea why this would be?
 *  Thread Starter [SheerHeartAttack](https://wordpress.org/support/users/sheerheartattack/)
 * (@sheerheartattack)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/cron-errors-media-library-blank/#post-5391478)
 * I never figured out exactly what was causing it, but the only fix was completely
   trashing iThemes Security and switching to a different plugin.

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

The topic ‘Cron errors & media library blank’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [SheerHeartAttack](https://wordpress.org/support/users/sheerheartattack/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/cron-errors-media-library-blank/#post-5391478)
 * Status: resolved