On a user edit page the error Trying to get property of non-object in fckeditor_user_delegate() is given when a user with with 'access fckeditor' permissions is editing a user without this permission or when a profile has not been assigned to a role.

This is caused because the following line checks access of the wrong user:

if ($type == 'form' && $category == 'account' && user_access('access fckeditor')) {

It should be:

if ($type == 'form' && $category == 'account' && user_access('access fckeditor', $user)) {

Furthermore, the $profile variable should be checked before it is used, because it can be false.


Jorrit’s picture

Status: Active » Fixed

Fixed in 6.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.