[Solved: GBFilePicker] No Access to Add New Content message

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Cerulean
Forum Members
Forum Members
Posts: 172
Joined: Mon Nov 01, 2010 8:56 am

[Solved: GBFilePicker] No Access to Add New Content message

Post by Cerulean »

Users in the Editor group of one of my sites see the message "No Access to Add New Content" when clicking "Submit" when trying to add a new page, and even before submitting if choosing a template from the dropdown on the "Add New Content" screen.

Editors have previously been able to add pages without problem so I'm puzzled about what has caused this out of the blue. The "Add Pages" permission is allowed for the Editor group, and I have tried allowing the "Manage All Content" and "Modify Any Page" permissions for the group too but the problem remains.

When logged into my Admin account I am able to add pages.

Any ideas what could be causing this problem? The CMSMS version is 1.11.7
Thanks.
Last edited by Cerulean on Wed Jul 03, 2013 4:54 am, edited 1 time in total.
Cerulean
Forum Members
Forum Members
Posts: 172
Joined: Mon Nov 01, 2010 8:56 am

Re: "No Access to Add New Content" message for Editor group

Post by Cerulean »

Update: have traced the problem to the GBFilePicker module - when it is deactivated the problem is gone.

I find GBFilePicker to be very useful though and it's a shame not to able to use it. Any suggestions on how to use GBFilePicker and still allow Editors to add pages would be gratefully received.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [Solved: GBFilePicker] No Access to Add New Content mess

Post by Dr.CSS »

Do they have permission to use the GBFilePicker..?
Cerulean
Forum Members
Forum Members
Posts: 172
Joined: Mon Nov 01, 2010 8:56 am

Re: [Solved: GBFilePicker] No Access to Add New Content mess

Post by Cerulean »

The "Use GBFilePicker" permission doesn't have any effect on the problem.

After more investigation it seems that this issue is something that is caused by the server environment of my hosting. I have traced it to the presence of a custom php.ini file (even an empty php.ini triggers the issue). No php.ini, no problem. Will post back if I find out any more information.
Cerulean
Forum Members
Forum Members
Posts: 172
Joined: Mon Nov 01, 2010 8:56 am

Re: [Solved: GBFilePicker] No Access to Add New Content mess

Post by Cerulean »

More info for anyone with the same problem...

I had a php.ini file in my site root to increase the PHP settings for upload_max_size and post_max_size. But because settings made in php.ini are not recursive into subfolders, files inside the /admin/ subfolder were still running under the default PHP settings. It seems that the combination of some CMSMS files running under the custom PHP settings and some (subfoldered) files running under the default PHP settings was the cause of the problem.

Adding a line to .htaccess in the site root can make the custom php.ini settings apply to subfolders, and this resolved the problem for me:

SuPHP_ConfigPath /path/to/root/
Post Reply

Return to “The Lounge”