Renew01 demo problem

Hello,
I imported the renew01 demo in order to see it and as sson as i load the website, it shows me the home page, but at the top of the page it gives me the error:
Warning: count(): Parameter must be an array or an object that implements Countable in C:\newxampp3\htdocs\x\wp-includes\post-template.php on line 284

Any suggestions?
Thanks
Panagiotis

Hi There,

  • Please make sure the version of WordPress is 4.9.8:

  • If this issue still persists, also test for a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
  1. Remove custom CSS and Javascript from the options or Child Theme and test the case.

  2. Switch to the parent theme to check if the issue persists.

  3. Turn off all the cache plugins.

Let us know how it goes!

Hello again,

  1. I have the latest version of word press 4.8.9
  2. I deactivated all my plugins, I only left the cornerstone
  3. I dont’ have any custom css or js, i installed the child theme locally and everything is empty
  4. I switched to the parent them. Nothing happened
  5. Don’t have any cache plugins

The problem only appears on the home page. If I go to the Blog page or Portfolio, everything is fine.
PS: I imported another Renew demo content and the problem still remains.

Panagiots

Hi There,

Could you please also upgrade the PHP version to version 5.6.x or above?

Hope it helps :slight_smile:

I;m using XAMPP Server locally and php is 7.2.10.

I don’t know if this is the problem.

Panagiotis

Hi Panagiots,

It’s a warning which triggers when Wordpress debugging is turned on. Please edit your site’s wp-config.php and set WP_DEBUG to false.

Or set it to your php.ini, like this https://stackoverflow.com/questions/5438060/showing-all-errors-and-warnings, but instead of showing, just hide it.

Thanks!

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