Hello !

With the following configuration :

- one super-user
- some roles like "domain manager", "authenticated user", "anonymous user".
- multiples sites with one core and some sub-domains.
- lot of modules enabled, as Ubercart, singlesign-on client/controller, pathauto, cck, etc...
- ckeditor tables shared from the default site (even if the ckeditor tables be not shared, same issue)
- IMCE to upload pics to server, with 2 profiles : User-1 (default) and manager-profile
- ckeditor with 2 profiles : the first only for authenticated user, with basic ckeditor settings, the second for "domain manager" role with advanced settings.

With the super-user (user-1), I come to a subdomain managed by a "domain manager" user and try to edit the homepage, no problem. I can add pictures without problem and send form, all is ok.
With the "domain manager" user of the subdomain, I try to edit same page (homepage) and inserting a picture: picture inserted correctly into ckeditor textarea, but when I submit the form, I always have a "Validation error, please try again. If this error persists, please contact the site administrator". Even if I reload the page, same error occurs...
If I remove the picture from the textarea, no problem... If I switch to plain text area and add html tag for the picture, no problem too, form submitted and picture displayed on page.

I don't understand why it work with super-user and don't work with another user... Search a lot of solutions on drupal.org website and on the web, but didn't find anything...

Comments

titouille’s picture

Some additional informations :

On the stephanie.in-the-lab.com subdomain, with the "domain manager" (role) user :

With ckeditor, I launch the "add picture" popup. I click on the "browse server" button to open IMCE. I take an image into /sites/stephanie.in-the-lab.com/files/u3 called "test-picture-2.jpg", so the full path included into the popup is "/sites/stephanie.in-the-lab.com/files/u3/test-picture-2.jpg".
I validate the popup, the picture is added into the ckeditor textarea. When I try to submit the form, I encount the validation error...

I click on the "view" tab, and on the "edit" tab to re-enter into edition mode. I click on the "add picture" button to open the popup. Instead of clicking on the "browse server" button, I directly write the full path of the picture into the input : "/sites/stephanie.in-the-lab.com/files/u3/test-picture-2.jpg". I validate, picture is added in ckeditor textarea. Then I click on the submit button, all is ok, no validation error.

The problem is with the IMCE plugin, but I don't know why... Because the imce plugin submit picture to ckeditor and submit form ID is used once time, it will be not ok with the submit form action ? No idea about that... If another user have same problem I'll be happy to know it, because it seems I'm lonely with that...

If I try same thing on the main domain www.in-the-lab.com with the same user (role is identified user at this time), adding a comment into a blog post, all is ok too... If I try, on domain or sub-domain, with the power-user, to use IMCE to add pictures, already no problem...

titouille’s picture

All is ok. It was a problem with one of my own module who change roles on the fly. I have rewrite the module and now it works.

titouille’s picture

Status: Active » Closed (fixed)