I've been developing a site with the help of one the clients staff. She was editing content this morning just fine. This evening, she can no longer edit pages or any other content because the body is disabled with the message "This field has been disabled because you do not have sufficient permissions to edit it." I have verified that admin is the only one who can still edit content
As far as I remember, the only activity today was checking for updates (none performed), and editing existing content. In an attempt to fix the issue, I removed the WYSIWYG editor profiles. This had no effect. Whether related or not, when I tried to recreate the profile, I was informed that the name and machine name were already in use.
Is this database corruption? If so, where do I look to fix it? If not, I'm open to ideas.
Comments
UPDATE: I have discovered
UPDATE: I have discovered (according to the log) that the client has not edited anything since 2-11-2011, so she wasn't in this morning. However, after the last edit she made, the log starts recording missing ctools css in the log.
Am I wrong in assuming that nothing changed in content should affect the framework? The next entries in the log start showing php errors.
Although CSS errors shouldn't be locking a user out of editing a field, this is starting to concern me.
Lastly I'm getting the error "Missing text format: tinymce." in the log. I deleted this text format trying to correct the initial problem, but it looks like it didn't get deleted correctly. in fact I have verified that the 2 deleted text formats still exist in the dru_wysiwyg table.
I'm now noticing that content is missing from the front and other pages, and just seems to be randomly disappearing. I have searched the KB and forums, but I can't find anything like this. Should I abandon D7 and recreate the site in D6? It doesn't seem like it's stable if this sort of thing can just happen for no reason.
I am really looking for some help here. If anyone has any idea, I'm open to suggestions.
Seeing the same thing
CSS shouldn't disable fields, but it could grey them out and make them 'disabled'. I'm actively working on this and will update accordingly.
Fixed on my end
The fix for me was input formats, aka text filters. Stumbled upon it via http://drupal.org/node/1034064
Yes, I found that post as
Yes, I found that post as well. Unfortunately, removing the custom filters (CKeditor & TinyMCE) did not correct the problem, but introduced another issue (see my previous post).
I have restored from a backup I believe to be before the issues began. I have backups of the files/sql with the problem if anyone has a suggestion. I will be keeping a very close eye on the site from now on.
A little late maybe...
A little late maybe, but for the future reference of anyone coming across this, filters mean text formats but do not mean WYSIWYG. Text formats are the things like plain text, filtered text, full text (defaults in Drupal 7). WYSIWYG are things like CKEditor, TinyMCE, etc.
I saw this error when the client tried to edit content that had been previously set to use a format they were now not allowed to use. Fix: Give permissions to that role to use the text format, or go back through all of your content that may be using the incorrect text format and change them manually. No fun, I know, but it works.
--
David Needham
Thanks for the above summary/expanation
I was having a similar problem. I don't believe it was as spontaneous as what the OP described. But I didn't notice it until the client brought it up after his training on how to edit content on the site.
Anyways, the above explanation of filters and permissions is what helped me to quickly fix this problem. I just set the filter to one that the client had permissions to use. The change only needed to happen to 3 nodes (all the ones of a specific content type). Thanks David!
Cheers
Is there a way via SQL or
Is there a way via SQL or other to find out which content might be using the wrong text format?
Thanks davidneedham. I had
Thanks davidneedham. I had this problem, and it was indeed the fact that the particular role did not have authority to use the text format "Full HTML".
drupalshrek
Thank you so much
I thought I was getting nuts....
Thanks stkrzysiak
This worked ..
Default value's text format
Just a tip for others.
One easy mistake to make is leaving the default value on a text format that the visitor doesn't have the rights to work with.
Thanks for this simple common
Thanks for this simple common sense tip. Saved me a few hours of debugging...
---
Thanks
It's work
This happened to me when I
This happened to me when I created content as admin in a format that my site editors did not have access to. It was a simple matter of converting those over logged in as admin to the format my site editors did have access to. I did not have a lot of content to switch over so I suppose this would not work well if you have tons of content to convert.
Danny Englander | Twitter | Instagram
That's good for me...
I had this problem yesterday and I just found the soluce there: http://drupalvid.com/vid/07-how-fix-field-has-been-disabled-because-you-....
Best regards,
Ccile
Admin created content with Full HTML
But the editor (role) hasn't got the proper permissions to use Full HTML. So he couldn't edit content created by the admin.
That was the reason indeed.
Thanks
for posting the video. That worked!
Just the answer I needed!
Thanks for posting the video, it gave me the answer I needed!
Todd Vandenbark
Role did not have authority to use the text format "Full HTML"
Thanks davidneedham
This post has just saved my
This post has just saved my life whilst hunting for how to solve this issue. Thanks all who contributed.
FiveRDesign - UK Drupal Consulting, Development, Custom Modules & Support
MySweetShadow - Heavy Metal Blog, Drupal & SEO
Took me 30 mints to figure
Took me 30 mints to figure out, But it looks like Un checking "Required" from the Body i hard checked the previous dayfield solved mine
Thank you
Thank you very much @davidneedham
Permissions issue
Old post, but this answer is valid for D7
You need to give permission to the user role in question, to be able to "Use" the input format that you have used on that field in question. If you have used Full HTML, then the role in question need to be given permission "Use Full HTML input format"
You have give permission to
You have give permission to Text format (Use the Full HTML and Filtered HTML text format etc) and you have give to access based on roles
Body field is disabled for authenticated user
I created a content type i.e. News
It has list of fields Title, Body, Image, etc.
Under Body field, I have a Simple_format text format selected. Authenticated users and all the other users have permissions to this text format. Still, when an authenticated user tries to add a news item, the body field is disabled. There's a message displayed that "This field has been disabled because you do not have sufficient permissions to edit it."
One more thing, when I add a news item from the Drupal backend, the "Simple_format" text format is showing the basic text editing tools but when I login as a normal user/ authenticated user, it's showing only text area with no text editing tools and the text area is disabled. Any solution?