Fatal error when deletion all files
-
Hello. In the last months I have seen this error in some of my sites when I have them in PHP 8. This does not happen in PHP 7.
If I delete all uploaded files, I get fatal error page in both ADMIN and FRONTEND page.
Here is the error detail. It will be great if you can fix that, so your plugin works ok under php 8.:
Error details:
==================
Error type E_ERROR in line 28 of file /var/www/vhosts/xxxxxxxx/httpdocs/wp-content/plugins/simple-file-list/ee-list-display.php. error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /var/www/vhosts/xxxxx/httpdocs/wp-content/plugins/simple-file-list/ee-list-display.php:28
Stack trace:
#0 /var/www/vhosts/xxxxx/httpdocs/wp-content/plugins/simple-file-list/ee-list-display.php(28): count()
#1 /var/www/vhosts/xxxx/httpdocs/wp-content/plugins/simple-file-list/ee-admin-page.php(102): include(‘…’)
#2 /var/www/vhosts/xxxx/httpdocs/wp-includes/class-wp-hook.php(307): eeSFL_FREE_ManageLists()
#3 /var/www/vhosts/xxxx/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#4 /var/www/vhosts/xxxxx/httpdocs/wp-includes/plugin.php(474): WP_Hook->do_action()
#5 /var/www/vhosts/xxxx/httpdocs/wp-admin/admin.php(259): do_action()
#6 {main}
thrown
- The topic ‘Fatal error when deletion all files’ is closed to new replies.