Forum

Thread tagged as: Question, Problem, Error

User Roles Duplication (Bug?)

Bit of a strange one. I've just gone to edit user roles for one of my client sites and a lot of the privileges checkboxes are duplicated 3 or 4 times. For some reason it's not all of them but I can't work out a pattern for which ones are and aren't duplicated. It's happening on both local dev and live sites. Very odd...

Privileges List

X = Checked

System
Log in
Change settings
Manage users
View update notices

Assets
X Upload assets
X Upload assets
X Upload assets
Upload assets
Manage assets

Categories
Create new categories
Create new categories
Create new categories
Delete categories
Delete categories
Delete categories
Manage categories
Manage categories
Manage categories
Create category sets
Create category sets
Create category sets
Delete category sets
Delete category sets
Delete category sets

Pages
Delete regions
X Edit page details
Edit region options
X Reorder pages
Add new pages
Add new top-level pages
Add new top-level pages
Add new top-level pages
Add new top-level pages
Delete pages
Delete pages they created themselves
Delete pages they created themselves
Delete pages they created themselves
Delete pages they created themselves
Configure page settings
Delete master pages
Configure master pages
Edit page titles and attributes
Configure master pages
Edit page titles and attributes
Configure master pages
Edit page titles and attributes
Configure master pages
Edit page titles and attributes
Configure navigation groups
Configure navigation groups
Configure navigation groups
Configure navigation groups
Create navigation groups
Create navigation groups
Create navigation groups
Create navigation groups
Delete navigation groups
Delete navigation groups
Delete navigation groups
Delete navigation groups
Republish pages
Republish pages
Republish pages

Blog
X Access the blog
X Create posts
X Delete posts
X Publish posts
Moderate comments
Enable comments on a post
Import data
X Manage authors
Manage categories
Manage sections

Forms
X Access forms
Configure forms
Delete forms

Diagnostics Report

Perch: 2.8.32, PHP: 7.0.12, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 241ae00989d1995ffcbbf63d579943635faf9972 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32), perch_blog (5.0), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms' );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/website/public_html/perch
PERCH_CORE: /home/website/public_html/perch/core
PERCH_RESFILEPATH: /home/website/public_html/perch/resources
Image manipulation: GD
PHP limits: Max upload 1024M, Max POST 1024M, Memory: 256M, Total max file upload: 256M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/website/public_html
HTTP_HOST: website.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Any ideas?

Thanks!

Mark Greenwood

Mark Greenwood 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

How old is the install? There was a bug like this in the past.

Hi Drew,

I think the original site was 2 years old at 2.6.6 before I updated it to the current version about a week ago. This is the first issue I've had since.

Glad it's familiar, any memory of a fix? I'm coming up blank in my search so far.

Thanks.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I think the fix is probably just to remove the duplicates.

Ah, OK.

Do you mean via the database? Would it matter which ones I delete? Isn't there some kind of link table holding the roles and privileges together?

Sorry, lots of questions at once! The privileges are working when any of them are ticked so it may be a case of letting it be.

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you delete the wrong ones you'd just need to re-check them. It's not a big deal.

Right, I'll give that a go, thanks for the help!