Project:CKEditor - WYSIWYG HTML editor
Version:7.x-1.8
Component:User interface
Category:support request
Priority:normal
Assigned:felixvang
Status:postponed

Issue Summary

when post or view as Anonymous with html this is the error that would show on the screen:

Notice: Undefined property: stdClass::$name in ckeditor_profile_settings_compile() (line 902 of /var/www/drupal/sites/all/modules/ckeditor/includes/ckeditor.lib.inc).
Notice: Undefined property: stdClass::$name in ckeditor_profile_settings_compile() (line 908 of /var/www/drupal/sites/all/modules/ckeditor/includes/ckeditor.lib.inc).
Comment field is required.
If you want to subscribe to comments you must supply a valid e-mail address.

If html turn off then the error is gone. Anyone experience similar issue?
Thank you,

Comments

#1

Yup... same here.

#2

I'm glad i'm not the only person. Zeta, Let me know when you solve the problem. thanks!

#3

I went ahead and turned off the warnings at admin/config/development/logging. It says "It is recommended that sites running on production environments do not display any errors." I thought this was OK since it's working fine. Just didn't like the errors popping up.

Hope that helps.

#4

Status:active» postponed

Thank you guys for noticing this issue. We will check this as soon as possible.
@zeta1600 not showing errors on production servers is always good idea , there is no sense to stress users ;)

#5

Zeta, I turned it off and the error went away. thanks!

#6

In my case this issue was caused by the CKFinder permission "CKFinder access" set for the Anonymous user.

Seems pretty logical, I've looked into the function referenced by the error description and found that it uses $user->name variable for something related to File Browser configuration. Obviously, anonymous user doesn't have it, so this causes an error. I don't know how this can be fixed inside the code, though. Maybe there should be a check that will remove the $user->name variable from the code if user is anonymous.

nobody click here