Title: PHP Deprecated block_categories
Last modified: November 14, 2021

---

# PHP Deprecated block_categories

 *  Resolved [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-php-deprecated-block_categories/)
 * [14-Nov-2021 10:03:43 UTC] PHP Deprecated: block_categories is deprecated since
   version 5.8.0! Use block_categories_all instead. in /home/wp-includes/functions.
   php on line 5586
 * This shows when you try to edit a page and save.
 * So it is NOT tested and compatible with 5.8.x as mentioned in the front page.
    -  This topic was modified 4 years, 6 months ago by [dimal](https://wordpress.org/support/users/dimalifragis/).
    -  This topic was modified 4 years, 6 months ago by [dimal](https://wordpress.org/support/users/dimalifragis/).

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

 *  Plugin Author [Steve Truman](https://wordpress.org/support/users/a3rev/)
 * (@a3rev)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-php-deprecated-block_categories/#post-15067993)
 * [@dimalifragis](https://wordpress.org/support/users/dimalifragis/)
 * Hmm – we run this plugin on over 100 clients sites and have not seen that issue.
   Will try and recreate your error message. How do I do recreate that error message?
   I don’t see it from dev tools on the frontend.
 * Are you using a plugin that is showing that, I mean I have test with Query Monitor
   and it is not showing it as a PHP error ?
 * What version of WordPress and PHP is your site running on?
 * Thank you
    Steve
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-php-deprecated-block_categories/#post-15068459)
 * Wordpress 5.8.x and PHP 8 but i mentioned all this in my post.
 * Happens when editing a post and save.
 * And this is logged in DEBUG LOG. I manually changed your code from block_categories
   to block_categories_all and all ok.
 *  Plugin Author [Steve Truman](https://wordpress.org/support/users/a3rev/)
 * (@a3rev)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-php-deprecated-block_categories/#post-15072991)
 * [@dimalifragis](https://wordpress.org/support/users/dimalifragis/)
 * Please upgrade to new maintenance version 2.4.13 – it has the fix for this issue.
 * Thank you for the bug report.
 * Steve

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

The topic ‘PHP Deprecated block_categories’ is closed to new replies.

 * ![](https://ps.w.org/page-views-count/assets/icon.svg?rev=986301)
 * [Page View Count](https://wordpress.org/plugins/page-views-count/)
 * [Support Threads](https://wordpress.org/support/plugin/page-views-count/)
 * [Active Topics](https://wordpress.org/support/plugin/page-views-count/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-views-count/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-views-count/reviews/)

## Tags

 * [PHP Deprecated](https://wordpress.org/support/topic-tag/php-deprecated/)

 * 3 replies
 * 2 participants
 * Last reply from: [Steve Truman](https://wordpress.org/support/users/a3rev/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-php-deprecated-block_categories/#post-15072991)
 * Status: resolved