[Jun 30 21:03:29] Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /home/cordmaga/public_html/wp-content/plugins/adrotate-pro/library/update-api.php:56 Stack trace: #0 /home/cordmaga/public_html/wp-includes/class-wp-hook.php(288):
This happened after AdRotate Pro was updated a few days ago.
An error of type E_ERROR was caused in line 56 of the file /home/cordmaga/public_html/wp-content/plugins/adrotate-pro/library/update-api.php. Error message: Uncaught Error: Cannot use object of type WP_Error as array in /home/cordmaga/public_html/wp-content/plugins/adrotate-pro/library/update-api.php:56
#0 /home/cordmaga/public_html/wp-includes/class-wp-hook.php(288): adrotate_update_check(Object(stdClass))
#1 /home/cordmaga/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(Object(stdClass), Array)
#2 /home/cordmaga/public_html/wp-includes/option.php(1783): apply_filters(‘site_transient_…’, Object(stdClass), ‘update_plugins’)
#3 /home/cordmaga/public_html/wp-includes/update.php(648): get_site_transient(‘update_plugins’)
#4 /home/cordmaga/public_html/wp-includes/admin-bar.php(998): wp_get_update_data()
#5 /home/cordmaga/public_html/wp-includes/class-wp-hook.php(286): wp_admin_bar_updates_menu(Object(WP_Admin_Bar))
#6 /home/cordmaga/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#7 /home/cordmaga/public_html/wp-includes/plugin.php(531): WP_Hook->do_action(Array)
There is a bit of a incompatibility with older PHP versions.
You probably have version 5.2 or 5.3 or something like that. Nothing wrong with that, but the method used on that line 56 doesn’t work on it apparently. I already fixed that for the next version.
Information, support and updates about plugins made and maintained by Arnan de Gans. Check out ajdg.solutions for more information.