• Resolved adshap8

    (@adshap8)


    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 https://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://www.ads-software.com/plugins/yop-poll/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    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 www.ads-software.com

    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

    (@adshap8)

    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

    (@yourownprogrammer)

    Hi adshap8,

    Do you still have problems with the warnings?

    Best wishes,

    YOP Team

    Thread Starter adshap8

    (@adshap8)

    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.