Support

Home Forums Event Espresso Premium Warning: Undefined array key "espresso_events" in /var/www/wp-content/plugins/ev

Warning: Undefined array key "espresso_events" in /var/www/wp-content/plugins/ev

Posted: March 12, 2024 at 2:00 pm


Robert Johnson

March 12, 2024 at 2:00 pm

I recently updated the Event Espresso pluin on my website. Now, I am getting this error message:
Warning: Undefined array key “espresso_events” in /var/www/wp-content/plugins/event-espresso-core-reg/core/CPTs/EE_CPT_Strategy.core.php on line 331


Tony

  • Support Staff

March 12, 2024 at 3:59 pm

Hi there,

We’ll get an update out to prevent that Warning from being thrown, however, is that displaying on the front end pages of the site currently?

If so it means your site is set to display errors rather than log them and whilst this is bing thrown by Event Espresso I highly recommend the server is setup to not display errors on the screen and just log them (displaying errors is great for troubleshooting but not something you want on production sites).


Robert Johnson

March 12, 2024 at 4:45 pm

When will the Event Espresso fix be available? Should I try to revert back to the previous version of Event Espresso while you are working on the fix?


Tony

  • Support Staff

March 12, 2024 at 5:00 pm

No, you should set the site not to display the errors if that’s showing on the front end.

It’s a warning/notice that doesn’t cause an issue, it’s basically saying “this isnt right but it run anyway” and not an error.


greyowl

March 18, 2024 at 8:08 am

I have the same problem. How do I setup the server to not display errors on the screen and just log them?


greyowl

March 18, 2024 at 8:18 am

OK, I’ve managed to do that through the hosting PHP settings and now the error message are no longer displayed.


Rio

  • Support Staff

March 19, 2024 at 6:53 am

Awesome, you can check this https://eventespresso.com/wiki/troubleshooting-checklist/

define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
        @ini_set( 'display_errors', 0 );
        define( 'WP_DEBUG_LOG', true );
        define( 'WP_DEBUG_DISPLAY', false );
}

that will just write the log in debug.log, instead of printing it in the browser.

thanks

The support post ‘Warning: Undefined array key "espresso_events" in /var/www/wp-content/plugins/ev’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso