Hi when i switch php to 7.2 from 5.6 then i see warning like this
Warning: count(): Parameter must be an array or an object that implements Countable in /home/klient.dhosting.pl/candida/dekoracje-ozdoby.pl/public_html/wp-includes/media.php on line 1206
Hello @gorskit74,
Thanks for asking. 
You are seeing a PHP warning message. You can get rid of this message by turning off the debug mode. You can do this by opening wp-config.php and adding/changing:
define('WP_DEBUG', false);
When you revisit the page, you should no longer be seeing the message.
Please let us know how it goes.
Thanks.
on one page it is working on the other one i still see:
Warning: count(): Parameter must be an array or an object that implements Countable in /home/klient.dhosting.pl/candida/weselemarzen.com.pl/public_html/wp-includes/media.php on line 1206
in both I added this function in child wp-config.php
I added in function.php
one more thing on second page pictures from slider revolution don’t show up
Hi There,
We do not recommend to use PHP 7.2.x as it has been released very recently so some functionalities aren’t applicable, depreciated or it will introduce new conflicts.
We do recommend to use PHP v7.1.x or something like v5.6.x or higher version as we have tested.
However with regard to your original issue, this warning are coming from the core WordPress files. Usually when the variable is unset or null, it returns the warning message. Somehow, it is related to this issues:
https://core.trac.wordpress.org/ticket/42860
https://core.trac.wordpress.org/ticket/42814
According to the milestone, it will be resolved in WordPress 4.9.5
Thanks for understanding!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.