I have a warning about count() function. seems called on non array...I have catches it and generate a stack trace in order to help you to find a solution. I have found this issue on debug.log file. No warning appears on front end/back end area.
[28-Sep-2018 09:11:43 UTC] PHP Fatal error: Uncaught ErrorException: count(): Parameter must be an array or an object that implements Countable in /www/pluginsyithemes_804/public/wp-includes/post-template.php:284
Stack trace:
#0 /www/pluginsyithemes_804/public/wp-includes/post-template.php(284): {closure}(2, 'count(): Parame...', '/www/pluginsyit...', 284, Array)
#1 /www/pluginsyithemes_804/public/wp-includes/formatting.php(3308): get_the_content('')
#2 /www/pluginsyithemes_804/public/wp-includes/class-wp-hook.php(288): wp_trim_excerpt('')
#3 /www/pluginsyithemes_804/public/wp-includes/plugin.php(203): WP_Hook->apply_filters('', Array)
#4 /www/pluginsyithemes_804/public/wp-includes/post-template.php(397): apply_filters('get_the_excerpt', '', Object(WP_Post))
#5 /www/pluginsyithemes_804/public/wp-content/plugins/wordpress-seo/frontend/class-opengraph.php(589): get_the_excerpt()
#6 /www/pluginsyithemes_804/public/wp-includes/class-wp-hook.php(286): WPSEO_OpenGraph->description('')
#7 /www/pluginsyithemes_804/public/wp-includes/class-wp-hook.php(310): WP_ in /www/pluginsyithemes_804/public/wp-includes/post-template.php on line 284
I think the issue is related to a wrong variable initialization.
I don't know, the issue appear during plugin configuration but I haven't a "step by step" to reproduce it, but seems related to opengraph class, so something related to Facebook...
* Which browser is affected (or browsers):
- [ ] IE11
- [x] Edge
- [x] Chrome
- [x] Firefox
- [ ] Safari
Thanks for your time!
AG
It was an Wordpress Core Bug see this Issue https://core.trac.wordpress.org/ticket/42814
Thanks for your time @Julian-B90
AG
Most helpful comment
It was an Wordpress Core Bug see this Issue https://core.trac.wordpress.org/ticket/42814