Fatal Error on PHP 8.2
-
On PHP 8.2, the following error is thrown:
PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in XXX/wp-content/plugins/wplegalpages/public/class-wp-legal-pages-public.php:745
The issue is coming from
$page_count = count( $footer_pages );
while it should be:
$page_count = is_array($footer_pages) ? count($footer_pages) : 0;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Fatal Error on PHP 8.2’ is closed to new replies.