Title: Warning on .PHP error
Last modified: November 24, 2019

---

# Warning on .PHP error

 *  [3pees](https://wordpress.org/support/users/3pees/)
 * (@3pees)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/warning-on-php-error/)
 * I am trying to build a website using Aspire (electronics shop) theme, on localhost.
   But after loading the .XML file using wordpress import and choosing Home in the
   Setting-Reading page, I received the warning below on the site. I am using wordpress
   5.3
 * Warning: count(): Parameter must be an array or an object that implements Countable
   in C:\xampp\htdocs\electroshop\wp-includes\post-template.php on line 316.
    -  This topic was modified 6 years, 8 months ago by [James Huff](https://wordpress.org/support/users/macmanx/).
      Reason: moved to Locahost Installs forum

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/warning-on-php-error/#post-12170281)
 * This may be a theme conflict.
 * Try switching to the unedited default Theme (Twenty Nineteen, etc.) for a moment
   using the WP dashboard to rule out any theme-specific issue.
 * If you don’t have access to your Dashboard’s Appearance page, access your server
   via [SFTP or FTP](https://wordpress.org/support/article/ftp-clients/), or a file
   manager in your hosting account’s control panel (consult your hosting provider’s
   documentation for specifics on these), navigate to /wp-content/themes/ and rename
   the directory of your currently active theme. Alternately, you can remove other
   themes except the default theme (Twenty Nineteen, etc.). That will force your
   site to use it.
 * If that does not resolve the issue, try deactivating ALL (yes all) plugins temporarily
   to see if this resolves the problem (plugin functions can interfere). If this
   works, re-activate them individually (one-by-one) to find the problematic plugin(
   s).
 * If you don’t have access to your Dashboard’s Plugins page, try [manually resetting your plugins](https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus)(
   no Dashboard access required). Here is another tutorial: [http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/](http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/).
   If that resolves the issue, reactivate each one individually until you find the
   cause.

Viewing 1 replies (of 1 total)

The topic ‘Warning on .PHP error’ is closed to new replies.

## Tags

 * [count](https://wordpress.org/support/topic-tag/count/)

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/warning-on-php-error/#post-12170281)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
