• Resolved platcom

    (@platcom)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mitchell Bennis

    (@eemitch)

    Thank you for reporting this issue. I will get it fixed and release an update.

    kellerjohannes

    (@kellerjohannes)

    Hello Mitchell,

    I also have another error that is displayed to me.
    This message appears if no files have been uploaded.

    Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/28/d878175899/htdocs/clickandbuilds/mywebsite/wp-content/plugins/simple-file-list/ee-list-display.php on line 28

    best regards
    Johannes

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error when deletion all files’ is closed to new replies.