HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Weird Issue with Forums

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#100252 (In Topic #19681)
Avatar

Well-settled

And I swear I haven't changed anything!

And yes, I do swear I haven't changed anything!!

The other day I created an "Admin Only" forum so we could stop using PMs to communicate between the various admins.  It was decided that we wanted to grant a few other people access to this forum so I created a hidden group called "Special Access" so they could read/write in this area.

Every time I go to save, the permissions are not saved... As in the updated permissions for that group are not set.

I have tried other existing groups and they work fine and I have even granted that new group permissions to other forums.

I have even tried creating new groups to replace the original one AND create a new forum.  No luck.

Now I am also getting the error, where the second forum I created called "Administrators Area", I can't delete.  No error, nothing.

Two errors:
  1. Permissions for new group are not being saved on new forum
  2. Second new forum will not delete

Russ Teicheira
http://vvarmachine.com or http://vvarnc.com - OCPortal Install
http://www.russteicheira.net
 - Profile Site that needs updating
http://projectxfire.com - Tech Blog that I need to get back to
Back to the top
 
Posted
Rating:
#100255
Avatar

Community saint

Did you clear the caches under the website tools after?
Back to the top
 
Posted
Rating:
#100257
Avatar

If you can open a bug report ticket with access, I'll try and look at it within the next couple of days:
https://ocportal.com/site/tickets/ticket.htm?ticket_template=bug&cost=free


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100258
Avatar

Well-settled

Duck said

Did you clear the caches under the website tools after?
Yes

Chris Graham said

If you can open a bug report ticket with access, I'll try and look at it within the next couple of days:
https://ocportal.com/site/tickets/ticket.htm?ticket_template=bug&cost=free
Right-o


Russ Teicheira
http://vvarmachine.com or http://vvarnc.com - OCPortal Install
http://www.russteicheira.net
 - Profile Site that needs updating
http://projectxfire.com - Tech Blog that I need to get back to
Back to the top
 
Posted
Item has a rating of 5 (Liked by rteicheira)  
Rating:
#100273
Avatar

Hi,

This is being caused by the very large number of usergroups you have, and PHP's max_input_vars setting.

ocPortal tries to detect this problem to warn you, but it wasn't counting all the permission cells in against the limit. I have corrected it. You now get a warning at the top.

You are on a CGI server, meaning you would probably up the limit by making an adminzone/php.ini file with a raised value for that setting.

You may want to consider using clubs rather than usergroups where possible. Clubs let you categorise members without having permission fields made for them. It would make the forms snappier to load too, and things more manageable. I don't know if that's possible for your model, but it's the ideal solution in my mind.

I have made a workaround for your site, to help deal with things with the current max_input_vars setting. It is a bit precarious, so we won't be taking the warning off, but it should ameliorate things a bit. What we're doing now is any privilege cell set to inherit will be taken out of the form when you submit. We don't need it, inherit is implied, and the server will know. That's most of the permission cells. Also, if deleting all privilege cells will be taken out.

I have deleted that forum for you to test this and it worked.

Note that if you have a forum that does not have view access, you don't need to deny all privileges in it for those groups who can't access it anyway. Generally too it's good to try and make use of privilege inheritance to avoid having to have things explicitly set on each forum. It's also good to try and set permissions on a smaller set of 'core permission groups' and lay on only very specific extra permissions for other groups, with the knowledge those groups will only be secondary groups so will benefit from the core permission group permissions anyway.
I say this because this will work with my change above, to allow it to optimise out those privilege cells.

To get a sense for how many form fields there are, type this into your browser Javascript console:

Code

document.getElementsByTagName('input').length+document.getElementsByTagName('select').length+document.getElementsByTagName('textarea').length

max_input_vars is a bit annoying. As a note to other reader's, Suhosin has similar but harsher settings. max_input_vars is built in since 'recent' versions of PHP, as IMHO a crude workaround to a design flaw in PHP. I don't think multiplying the default value up a few times would cause any harm.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100275
Avatar

Well-settled

I had a small feeling it was due to the number of groups.  When I get home today I will try out your fix.  In class for the next three days *groans*

Russ Teicheira
http://vvarmachine.com or http://vvarnc.com - OCPortal Install
http://www.russteicheira.net
 - Profile Site that needs updating
http://projectxfire.com - Tech Blog that I need to get back to
Back to the top
 
Posted
Rating:
#100292
Avatar

Well-settled

That worked.  Going to start planning a different way of showing ribbons

Russ Teicheira
http://vvarmachine.com or http://vvarnc.com - OCPortal Install
http://www.russteicheira.net
 - Profile Site that needs updating
http://projectxfire.com - Tech Blog that I need to get back to
Back to the top
 
Posted
Rating:
#100309
Avatar

Well-settled

So everything is working, but it looks like I am going to have to write an addon to assign the rank images and other ribbons and display them with the user on the forums zone.

Russ Teicheira
http://vvarmachine.com or http://vvarnc.com - OCPortal Install
http://www.russteicheira.net
 - Profile Site that needs updating
http://projectxfire.com - Tech Blog that I need to get back to
Back to the top
 
Posted
Item has a rating of 5 (Liked by rteicheira)  
Rating:
#100311
Avatar

Can't you just make those groups non-permissive? It's a setting when you edit them.

(That's how clubs work, technically clubs are non-permissive groups that come with a forum)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#100323
Avatar

Well-settled

Is that the "Private Club" feature?

Russ Teicheira
http://vvarmachine.com or http://vvarnc.com - OCPortal Install
http://www.russteicheira.net
 - Profile Site that needs updating
http://projectxfire.com - Tech Blog that I need to get back to
Back to the top
 
Posted
Item has a rating of 5 (Liked by rteicheira)  
Rating:
#100324
Avatar

Ah, yes – didn't realise we actually called it clubs in there.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Item has a rating of 5 (Liked by Robbie Goacher)  
Rating:
#100326
Avatar

Well-settled

Bad Chris! :P

Russ Teicheira
http://vvarmachine.com or http://vvarnc.com - OCPortal Install
http://www.russteicheira.net
 - Profile Site that needs updating
http://projectxfire.com - Tech Blog that I need to get back to
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: