Title: Header Error Appearing
Last modified: August 21, 2016

---

# Header Error Appearing

 *  Resolved [adshap8](https://wordpress.org/support/users/adshap8/)
 * (@adshap8)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/header-error-appearing/)
 * First, I just want to say I love your plugin. I’ve been using it for a while 
   now, and it is one of my favorite WordPress plugins out there.
 * However, all of a sudden my site [http://japaneselevelup.com](http://japaneselevelup.com)
   started getting the following error above the header:
 * Warning: Cannot unset offset in a non-array variable in /home/(removed for privacy)/
   public_html/wp-includes/cron.php on line 147
 * Warning: Cannot unset offset in a non-array variable in /home/(removed for privacy)/
   public_html/wp-includes/cron.php on line 149
 * To find out the issue, I deactivated every plugin the site uses one at a time,
   and the one that finally fixed it was deactivating the Yop Poll Plugin. I also
   thought maybe it was a plugin conflict, and deactivated every plugin except Yop
   Poll, and the issue was still there. Nothing has changed on the site recently
   except for new posts and comments.
 * This actually happened two weeks ago as well, and I just restored the site to
   a backup the day before, and this fixed it. I went through the thorough analysis
   this time due to this happening a second time, and finally realized it was the
   plugin.
 * Do you have any idea what might be causing this?
 * I would love to continue to use this plugin. Right now the plugin is currently
   deactivated to remove this error.
 * Thanks!!
 * [https://wordpress.org/plugins/yop-poll/](https://wordpress.org/plugins/yop-poll/)

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

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/header-error-appearing/#post-4582721)
 * Hi adshap8,
 * This error is related to the WordPress core (our plugin uses the WordPress cron).
 * You can delete the wp-admin and wp-includes folders then install new folders 
   from wordpress.org
 * Another method would be to edit yop-poll.php and to add at the top
 * error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED );
 * This way, the errors will still be displayed, but not the notifications or the
   warnings.
 * Regards,
 * YOP Team
 *  Thread Starter [adshap8](https://wordpress.org/support/users/adshap8/)
 * (@adshap8)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/header-error-appearing/#post-4582834)
 * Thank you for the reply.
 * I replaced the wp-admin and wp-includes folder with fresh copies, but that didn’t
   seem to do anything.
 * I will use the second method you suggested.
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/header-error-appearing/#post-4582857)
 * Hi adshap8,
 * Do you still have problems with the warnings?
 * Best wishes,
 * YOP Team
 *  Thread Starter [adshap8](https://wordpress.org/support/users/adshap8/)
 * (@adshap8)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/header-error-appearing/#post-4582862)
 * Nope.
 * Thank you very much for the fast solution.

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

The topic ‘Header Error Appearing’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [adshap8](https://wordpress.org/support/users/adshap8/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/header-error-appearing/#post-4582862)
 * Status: resolved