Custom Fields
Support General "Trying to get property 'plugin' of non-object" after upgrade to metabox 5.x

  • Creator
  • #15757


    ErrorException (E_NOTICE)
    Trying to get property 'plugin' of non-object

     * Check if a plugin has an update to a new version.
     * @param object $plugin_data The plugin update data.
     * @return bool
    private function has_update( $plugin_data ) {
        $plugins = get_plugins();
        return isset( $plugins[ $plugin_data->plugin ] ) && version_compare( $plugins[ $plugin_data->plugin ]['Version'], $plugin_data->new_version, '<' );

    Hi, wordpress backoffice inaccessible due a invalid object: $plugin_data->plugin

Viewing 1 replies (of 1 total)
  • Author
  • #15760
    Anh Tran

    Hi, which version of WordPress are you using? Since v5, WordPress has a mechanism that allows you to access the Dashboard if there's any error. Please try it first. The please go to Dashboard -> Updates and click "Check Now" button to refresh the updates.

    If bug still happens, please send me a temporary admin account. I'll check that for you.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.