If a plugin install fails, it usually returns an instance of WP_Error, but not always. On developer.php, line 397, we need to check that $install_result is a WP_Error before calling get_error_message(), because it can be a boolean. Otherwise, you can get:
Fatal error: Call to a member function get_error_message() on a non-object in /{Web Server}/trunk/wp-content/plugins/developer/developer.php on line 397
If a plugin install fails, it usually returns an instance of
WP_Error
, but not always. Ondeveloper.php
, line 397, we need to check that$install_result
is aWP_Error
before callingget_error_message()
, because it can be aboolean
. Otherwise, you can get:Fatal error: Call to a member function get_error_message() on a non-object in /{Web Server}/trunk/wp-content/plugins/developer/developer.php on line 397