Title: Critical error after activating the plugin
Last modified: May 23, 2022

---

# Critical error after activating the plugin

 *  Resolved [jedi](https://wordpress.org/support/users/jencor/)
 * (@jencor)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/critical-error-after-activating-the-plugin/)
 * Hello
    After adding the free plugin on a fresh WordPress installation, I received
   an email with “Your website has a technical problem”.
 * **Information:**
    WordPress version 5.9.3 Active theme: Twenty Twenty-One (version
   1.5) Current plugin: Simple File List (version 4.4.9) PHP version 8.0.16 ** Error
   details:
 *     ```
       An error of type E_ERROR was found in line 28 of file /var/www/vhosts/hoster/folder/wp-content/plugins/simple-file-list/ee-list-display.php verursacht. Fehlermeldung: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /var/www/vhosts/hoster/folder/wp-content/plugins/simple-file-list/ee-list-display.php:28
       Stack trace:
       #0 /var/www/vhosts/hoster/folder/wp-content/plugins/simple-file-list/ee-list-display.php(28): count(false, 0)
       #1 /var/www/vhosts/hoster/folder/wp-content/plugins/simple-file-list/ee-admin-page.php(102): include('/var/www/vhosts...')
       #2 /var/www/vhosts/hoster/folder/wp-includes/class-wp-hook.php(307): eeSFL_FREE_ManageLists('')
       #3 /var/www/vhosts/hoster/folder/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
       #4 /var/www/vhosts/hoster/folder/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
       #5 /var/www/vhosts/hoster/folder/wp-admin/admin.php(259): do_action('toplevel_page_e...')
       #6 {main}
         thrown
       ```
   
 * Could you please help me?
    Best regards

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mitchell Bennis](https://wordpress.org/support/users/eemitch/)
 * (@eemitch)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/critical-error-after-activating-the-plugin/#post-15670821)
 * Hi. This error is caused by PHP 8. The specific issue is that there are no files
   in your file list directory. Add at least one file and the error will go away.
   Revert to PHP 7.4 and this will no longer be an error, just a warning.
 * An update is coming soon to address this.

Viewing 1 replies (of 1 total)

The topic ‘Critical error after activating the plugin’ is closed to new replies.

 * ![](https://ps.w.org/simple-file-list/assets/icon-256x256.png?rev=1330838)
 * [Simple File List](https://wordpress.org/plugins/simple-file-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-file-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-file-list/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-file-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-file-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-file-list/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mitchell Bennis](https://wordpress.org/support/users/eemitch/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/critical-error-after-activating-the-plugin/#post-15670821)
 * Status: resolved