I am not a PHP/SQL programmer. Our CivicCRM is Version 4.7. PHP is 7.3.27. I upgraded our WordPress site to WP 5.6.1 and now get these errors:
Warning: count(): Parameter must be an array or an object that implements Countable
in /home/rembrand/public_html/wordpress/wp-content/plugins/civicrm/civicrm/packages/DB.php
on line 793
Warning: Cannot modify header information - headers already sent by (output started
at /home/rembrand/public_html/wordpress/wp-content/plugins/civicrm/civicrm/packages/DB.php:793)
in /home/rembrand/public_html/wordpress/wp-admin/admin-header.php
on line 9
if (!count($dsn)) {
return $parsed;
}
Warning appears at top of screen when I enter Wordpress admin dashboard for our website and edit any page.
How do I fix this?