Developer Tools

Edit plugins with the online code editor and other useful features for developers.

Back to Developer Tools Support

Iocare
Iocare

Getting error

We're sorry, but an unhandled error occurred. Please see the details below.

Trying to get property of non-object
/public_html/plugins/indikator/devtools/Plugin.php line 145
TYPE

Undefined

EXCEPTION

ErrorException

        // Is superuser
        if (Tools::get($name.'_superuser', false) && $admin->is_superuser == 1) {
            return true;
        }

        // Is admin group
        if (Tools::get($name.'_admingroup', false) > 0 && DB::table('backend_users_groups')->where('user_id', $admin->id)->where('user_group_id', Tools::get($name.'_admingroup', false))->count() == 1) {
            return true;
        }

        // Is current user

This error is thrown when trying to open News Plugin backend page without admin login.

gergo85
gergo85

Thank you for report this issue! I fixed it, please update the plugin.

Iocare

1-3 of 3