Title: Null error
Last modified: September 1, 2016

---

# Null error

 *  Resolved [editor214](https://wordpress.org/support/users/editor214/)
 * (@editor214)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/null-error-1/)
 * I get the following error at the top of the page.
 * “Warning: key() expects parameter 1 to be array, null given in /home/bret2014/
   public_html/redoubtnews.com/wp-content/plugins/the-events-calendar/src/Tribe/
   JSON_LD/Venue.php on line 46
 * Warning: reset() expects parameter 1 to be array, null given in /home/bret2014/
   public_html/redoubtnews.com/wp-content/plugins/the-events-calendar/src/Tribe/
   JSON_LD/Venue.php on line 49
 * Warning: Creating default object from empty value in /home/bret2014/public_html/
   redoubtnews.com/wp-content/plugins/the-events-calendar/src/Tribe/JSON_LD/Venue.
   php on line 51″
 * [http://www.redoubtnews.com](http://www.redoubtnews.com) and hit the community
   calendar from the menu.
 * [https://wordpress.org/plugins/the-events-calendar/](https://wordpress.org/plugins/the-events-calendar/)

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/null-error-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/null-error-1/page/2/?output_format=md)

 *  [claghorn](https://wordpress.org/support/users/claghorn/)
 * (@claghorn)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459658)
 * I am receiving the same error after updating to 4.2. Please share the answer 
   to the fix.
 *  [valerie.s](https://wordpress.org/support/users/valeries-1/)
 * (@valeries-1)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459670)
 * Help! Same errors here. We didn’t even intentionally update the calendar version,
   except all of the sudden it says we are at 4.2 and the page has those same exact
   errors. We are a small non-profit and don’t have any coding/web experts on staff
   so hopefully there is a simple solution we can implement asap!
 *  [valerie.s](https://wordpress.org/support/users/valeries-1/)
 * (@valeries-1)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459671)
 * Also I should add that we are on WordPress 4.5.2 running Enfold theme.
 *  [valerie.s](https://wordpress.org/support/users/valeries-1/)
 * (@valeries-1)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459722)
 * Bumping this, no response yet. Please help or we have to remove the calendar 
   from our page!
 *  Thread Starter [editor214](https://wordpress.org/support/users/editor214/)
 * (@editor214)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459724)
 * We also run 4.5.2 and the MH Magazine theme, the calendar still works, just half
   a screen of ugly at the top.
 *  [GreyNomad](https://wordpress.org/support/users/greynomad/)
 * (@greynomad)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459726)
 * I just updated and got the same error messages.
 *  [weemsy](https://wordpress.org/support/users/weemsy/)
 * (@weemsy)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459727)
 * Same here. I need a fix.
 *  [zimrock](https://wordpress.org/support/users/zimrock/)
 * (@zimrock)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459745)
 * Same errors here after update, please help, thanks! FYI – Using Avada Theme
 *  [Alexis](https://wordpress.org/support/users/alexisj/)
 * (@alexisj)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459766)
 * Same error here with MH Magazine Lite (child) theme.
 *  [thelifeofrick](https://wordpress.org/support/users/thelifeofrick/)
 * (@thelifeofrick)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459782)
 * Ditto. Very unhappy client too. 🙁
    X-theme.
 *  Plugin Contributor [Brian](https://wordpress.org/support/users/brianjessee/)
 * (@brianjessee)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459784)
 * Hi,
 * Sorry for the issues you are having and for the late reply here.
 * The messages are warnings and do not break the plugin, but there are an annoyance
   and can be removed.
 * It is recommended that all live sites not show PHP Errors, Warnings, and Notices.
 * You can do that with your PHP.ini or in WordPress.
 * To do that in your wpconfig.php file replace this:
 * _define(‘WP\_DEBUG’, false);_
 * with this:
 * _ini\_set(‘log\_errors’,’On’);
    ini\_set(‘display\_errors’,’Off’); ini\_set(‘
   error\_reporting’, E\_ALL ); define(‘WP\_DEBUG’, false); define(‘WP\_DEBUG\_LOG’,
   true); define(‘WP\_DEBUG\_DISPLAY’, false);
 * That coding comes from this article:
 * [https://aristath.github.io/blog/wp-hide-php-errors](https://aristath.github.io/blog/wp-hide-php-errors)
 * That should hide the warnings for now and there will be a fix in 4.2.1, which
   we are working on.
 * You can also downgrade to 4.1.4 if you like.
 * You can download older versions of the core plugin here:
    [https://wordpress.org/plugins/the-events-calendar/developers/](https://wordpress.org/plugins/the-events-calendar/developers/)
 * And follow these steps for a manual change:
 * [https://theeventscalendar.com/knowledgebase/manual-updates/](https://theeventscalendar.com/knowledgebase/manual-updates/)
 * Thanks
 *  [Alexis](https://wordpress.org/support/users/alexisj/)
 * (@alexisj)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459785)
 * It worked for me. Thank you.
 *  Thread Starter [editor214](https://wordpress.org/support/users/editor214/)
 * (@editor214)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459786)
 * Backed up to the previous version, all good, thanks.
 *  [thelifeofrick](https://wordpress.org/support/users/thelifeofrick/)
 * (@thelifeofrick)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459793)
 * Not really a good fix for us. Besides, as like some of the others, the Venues
   aren’t getting updated and inserted into the events.
 * Everything was working just fine prior to this update.
 * Thanks for your assistance.
 *  [zimrock](https://wordpress.org/support/users/zimrock/)
 * (@zimrock)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/null-error-1/#post-7459851)
 * just installed 4.2.1, two of three errors are gone, but still get this error:
 * Warning: Creating default object from empty value in /home2/nmca/public_html/
   wp-content/plugins/the-events-calendar/src/Tribe/JSON_LD/Venue.php on line 51
 * Using the latest WP and Avada theme.
 * Thoughts?

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/null-error-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/null-error-1/page/2/?output_format=md)

The topic ‘Null error’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 20 replies
 * 9 participants
 * Last reply from: [weemsy](https://wordpress.org/support/users/weemsy/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/null-error-1/page/2/#post-7459865)
 * Status: resolved