Compatibility Issue?

Hi Guys…

I started getting the following message -

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/8/d383941833/htdocs/MY WEBSITES/jbfoto/wp-includes/post-template.php on line 284"

after doing some research and checking a few forums I have completed the following checks and confirm…

I am using PHP 7.2
I am using the latest version of WP core
I am using the current version of X and updated included plugins

I deactivated ALL plugins and re-activated them one at a time. However, this did nothing.
The only thing that removes the message is switching to another theme? Which I obviously don’t want to do.

Your help would be really appreciated.

Hello Jason,

There are some possibilities why you are getting this warning message which is not limited to a theme issue. Have you tried to completely disable all plugins then clear your site’s cache after then check if the error persists? Also, please note that this is just a PHP warning and should not cause any issue in the site’s functions. You can have the warning messages to not display by login through FTP then editing the wp-config.php file and set define( 'WP_DEBUG', true ); to false.

Thank you.

Thanks for your reply. I created a child theme and the problem seems to have stopped.

Glad it works for you now :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.