Title: Fatal error on class-admin.php
Last modified: September 30, 2024

---

# Fatal error on class-admin.php

 *  Resolved [Bruno Henrique](https://wordpress.org/support/users/brunolohl/)
 * (@brunolohl)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/fatal-error-on-class-admin-php/)
 * `**Fatal error**: Uncaught TypeError: count(): Argument #1 ($value) must be of
   type Countable|array, false given in /var/www/public/wp-content/plugins/wp-rest-
   cache/admin/class-admin.php:363 Stack trace: #0 /var/www/public/wp-content/plugins/
   wp-rest-cache/admin/class-admin.php(363): count() #1 /var/www/public/wp-includes/
   class-wp-hook.php(324): WP_Rest_Cache_Plugin\Admin\Admin->display_notices() #
   2 /var/www/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#
   3 /var/www/public/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /var/www/
   public/wp-admin/admin-header.php(303): do_action() #5 /var/www/public/wp-admin/
   index.php(137): require_once('...') #6 {main} thrown in **/var/www/public/wp-
   content/plugins/wp-rest-cache/admin/class-admin.php** on line **363**`
 * PHP Version: 8.3.1

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

 *  Plugin Author [Richard Korthuis](https://wordpress.org/support/users/rockfire/)
 * (@rockfire)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/fatal-error-on-class-admin-php/#post-18045253)
 * Hi [@brunolohl](https://wordpress.org/support/users/brunolohl/) 
   Thank you for
   using our plugin and sorry you are experiencing this error.We just released a
   new version of our plugin which should resolve the problem, can you please update
   and test it?
 *  Thread Starter [Bruno Henrique](https://wordpress.org/support/users/brunolohl/)
 * (@brunolohl)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/fatal-error-on-class-admin-php/#post-18045420)
 * It’s working now. Thanks for your fast support!

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

The topic ‘Fatal error on class-admin.php’ is closed to new replies.

 * ![](https://ps.w.org/wp-rest-cache/assets/icon-256x256.png?rev=3328849)
 * [WP REST Cache](https://wordpress.org/plugins/wp-rest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rest-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Bruno Henrique](https://wordpress.org/support/users/brunolohl/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/fatal-error-on-class-admin-php/#post-18045420)
 * Status: resolved