I have a client that's been relying on a WP plugin for years that was abandoned by the author a few years ago. I've been able to make some fixes to make it work with an upgrade to PHP 7.2, but this one puzzles me. The more I research it, I feel like the less I understand about how to fix it.
Warning below:
Warning: count(): Parameter must be an array or an object that implements Countable in /app/public/wp-content/plugins/ozh-admin-drop-down-menu/inc/core.php on line 311 (first line below is 311)
if (!count($wp_ozh_adminmenu)) {
$wp_ozh_adminmenu = (array)get_option('ozh_adminmenu');
unset($wp_ozh_adminmenu[0]);
}
$wp_ozh_adminmenuan array? Can you make sure that? - Satish Saini$wp_ozh_adminmenu? I guess it's a string. what about a test like...if (!is_array($wp_ozh_adminmenu) || count($wp_ozh_adminmenu) === 0)- kuh-chan