Error when using the header builder - wp-includes/post-template.php on line 284


#1

Whenever I use a header built through Header Builder I get the following error message on blog posts:

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/29/d748404905/htdocs/clickandbuilds/MrcioMaron/wp-includes/post-template.php on line 284

If I go back to a stock header everything works just fine.

Can anybody help?


#2

Hello,

This is just a warning, not error.
You can hide it adding this code in wp-config.php file via FTP:

ini_set('display_errors','Off');

Thank you.
Best regards,
Artbees Support.


#3

Hi Tatyana,
I have the same error when saving my menu. After that, the menu itself looks ok.

Warning: count(): Parameter must be an array or an object that implements Countable in (…)/wp-content/themes/jupiter/framework/admin/general/mega-menu.php on line 36
(This is a local copy of a site online.)

You say it’s a warning, not an error. But should warnings not also been taken care of?
I know I can hide it but I think that’s not the solution…:slight_smile: