• When I upgraded my site to PHP 8.3 I received the following Fatal error:

    PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, false given in <redacted>/wp-content/plugins/subscribe-to-comments/subscribe-to-comments.php:1520

    I fixed it by changing the code to the following:

    <?php if ( (is_countable( $postlist) && count( $postlist ) > 0) && is_array( $postlist ) ) { ?>

    but that’s just a patch for the issue of course. Wanted you to be aware so it could be fixed in the next version. 🙂

The topic ‘PHP Fatal Error – Uncaught TypeError’ is closed to new replies.