Support

Home Forums Event Espresso Premium block_categories is deprecated

block_categories is deprecated

Posted: March 2, 2022 at 4:42 pm

Viewing 1 reply thread


PatNelson

March 2, 2022 at 4:42 pm

I get this error when I try to edit a page with Elementor. If I turn off Event Espresso don’t get the message. Turn it back on and get the error. So it must be the event espresso plugin causing it.

[26-Feb-2022 17:09:02 UTC] PHP Deprecated: block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /var/www/wp-includes/functions.php on line 5691
[26-Feb-2022 17:09:02 UTC] PHP Deprecated: block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /var/www/wp-includes/functions.php on line 5691


Tony

  • Support Staff

March 4, 2022 at 8:20 am

Hi there,

Yes, this is from Event Espresso, or well a combination of EE using a hook that has now been deprecated and the server being set to display errors on the page rather than log them.

Is WP_DEBUG enabled on your site?

https://wordpress.org/support/article/debugging-in-wordpress/#wp_debug

(It’s enabled within the sites wp-config.php file if it is, ideally you want that disabled on the production site so errors aren’t shown to users. That doesn’t ‘fix’ the notices but it does stop it from being displayed on the page)

I’ll create a ticket for us to switch over to the new hook and prevent that notice from happening in a future version.

Viewing 1 reply thread

The support post ‘block_categories is deprecated’ 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