Fatal error: Cannot use object of type WP_Error as array in /var/www/wordpress/wp-content/themes/department/functions.php on line 161