Answers.Body: <p>It sounds like you're running PHP 7.2 or greater with a version of CiviCRM that doesn't support PHP 7.2+.  If you edit your question to include your CiviCRM version, that could help folks troubleshoot.  However, it sounds like you may need to upgrade your CiviCRM to a version that supports 7.2.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-26T12:23:44.180Z
Answers.Text: Information about upgrading here: https://docs.civicrm.org/sysadmin/en/latest/upgrade/
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-17T00:36:35.770Z
Answers.LastActivityDate: 2021-02-17T00:36:35.770Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>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:</p>
  <pre><code>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;
          }
  </code></pre>
  <p>Warning appears at top of screen when I enter Wordpress admin dashboard for our website and edit any page.</p>
  <p>How do I fix this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-26T12:21:35.337Z
Comments.Text: You appear to be trying to edit this question as a different user so your edits are pending review. Best if you can log in as the same user to make edits to your question.
Comments.UserDisplayName: William Mortada
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-26T13:29:35.237Z
Comments.Text: I see in your edits that you're running CiviCRM 4.7.  This is many years out of date.  You'll need to upgrade CiviCRM to a version that supports your current version of PHP.
Comments.UserDisplayName: Jon G - Megaphone Tech
Tags: <wordpress><4.7><php7>
Title: Warning: count(): Parameter must be an array or an object that implements Countable
ThreadText: # Warning: count(): Parameter must be an array or an object that implements Countable
  
  (Asked by: username_0 on 2021-02-16)
  
  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?
  
  **Tags:** wordpress, 4.7, php7
  
  > **Comments:**
  > **username_1**: You appear to be trying to edit this question as a different user so your edits are pending review. Best if you can log in as the same user to make edits to your question.  
  > **username_2**: I see in your edits that you're running CiviCRM 4.7.  This is many years out of date.  You'll need to upgrade CiviCRM to a version that supports your current version of PHP.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-02-17. Score: 2
  
  It sounds like you're running PHP 7.2 or greater with a version of CiviCRM that doesn't support PHP 7.2+. If you edit your question to include your CiviCRM version, that could help folks troubleshoot. However, it sounds like you may need to upgrade your CiviCRM to a version that supports 7.2.
  
  > **Comments:**
  > **username_1**: Information about upgrading here: https://docs.civicrm.org/sysadmin/en/latest/upgrade/  
  
  ---
  
  