The problem:
When a non-administrator user posts a long text, the preview is broken. When you hit "preview", you get a blank screen with this at the top: "Array ( [und] => Array ( [0] => Array ( [summary] => [value] =>", then the entire text, twice, and below all that is the normal site with the normal preview. When you hit "save", the text is saved normally and without problems, so this is not a killer, but it's ugly and highly confusing for the user.
What I tried to solve this:
I tried all possible ways to narrow down the causes for the past week. What I can say for sure is this:
- It happens only with very long texts (the magical limit seems to be just under 4,000 characters)
- It's completely independent of the type of text you post--formatting etc. doesn't matter, nor do footnotes or anything
- It's not content type-related (happens with all content types)
- It's not editor-related (or at least, if it is, it happens with CKEditor as well as with TinyMCE)
- It's not text format-related
- It happens only to non-administrator roles (when I log in as administrator, I can post texts of any length without problem)
- So my conclusion would be it's permission-related. But I have spent days ticking permissions on and off and it doesn't go away. I am stumped because there just don't seem to be any permissions left that could be even remotely related to the problem that I haven't tried yet.
In short: What is it that an administrator can do that a normal user can't do that breaks the preview of a long text?
If anybody could suggest possible ways to solve this, I'd be grateful. This is my first ever Drupal site, so I may be missing something obvious, and btw I am totally ignorant as to everything that happens under the hood (PHP and all that). This is a D 7.12 site with a small number of contributed modules (which all work fine) in their proper place but no changes to the core and no reported problems. This is a list of my modules: ACL, Advanced Forum, Chain Menu Access, Content Access, Forum Access, CTools, Date, Display Suite, Email, Link, FlatComments, Footnotes, Media, Print, Video, Views, Webform, Wysiwyg.
This is the first time I haven't been able to solve a problem; I do need help. Thank you.
Comments
Still searching
I can now say that it's completely unrelated to any editor, as it happens even using plain text.
Can anybody suggest any way towards a solution? I am stumped.
Thank you!
Apparently I have the solution but it confuses me
After checking and unchecking basically the entire permissions list by sections I got it narrowed down and have a solution, but I find it highty confusing ...
When I let non-administrators use the administration pages for posting articles, i.e. when I give them the following permissions:
- Access the administrative overlay
- Use the administration pages and help
- View the administration theme
then the preview works alright for them too.
In other words, it's only the preview in the normal content window that breaks the layout. Almost as if the window were too small for long texts.
No idea if this makes any sense. Could it be a bug?
And is there any downside to my solution?
Thank you!
Still interested in a reply or comment
Or should this be working as designed? That long texts can't be posted in the normal content window?