• Resolved cinderalla

    (@cinderalla)


    We believe something must have changed in one of PublishPress Capabilities’ updates and is now causing issues with some existing custom roles.

    When you click to edit a custom role that has spaces instead of underscores between words (e.g. website admin) you are unable to edit it. Instead you get the message: “The selected role is not editable.”

    I don’t know how these roles were created with spaces in the name, but it didn’t appear to cause any issues until now.

    It would take days to go back and recreate the custom roles in order to be able to edit them. Could this be fixed somehow please?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Steve Burge

    (@stevejburge)

    Hi @cinderalla

    Thanks for using Capabilities. Sorry, we don’t see that problem in our testing. There may be something else involved that needs tracking down on this site.

    Thread Starter cinderalla

    (@cinderalla)

    Thanks for your quick response, Steve.

    This problem is not just on one site, it’s on hundreds of our websites using the custom role.

    Are you saying you will not take a look at your plugin to see how a role could not be editable and be stored without spaces in the role_name?

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @cinderalla

    We can’t see that problem in testing and haven’t had it reported.

    Please post step-by-step details so someone else can re-create this error.

    Thread Starter cinderalla

    (@cinderalla)

    Hi @stevejburge,

    I’ve found that the problem started in version 2.3.3.

    Steps in the previous version 2.3.2:

    • Go to WP Admin > Capabilities > Roles
    • Click on the role with a space in the name. (This takes you to the edit screen.)
    • Click to turn on “Edit Others” capability.
    • Save Changes
    • See the messsage “Settings saved.”

    Steps in version 2.3.3 and current development version:

    • Click on the same role as above, with a space in the name.
    • Expect to see the edit screen with the capabilities.
    • Instead, see the message “The selected role is not editable.” and no capabilities.
    • Go back to the Roles page and mouse-over the role > click on Delete.
    • See warning message “Are you sure you want to delete this role?”
    • Click on OK, but the role will not delete.

    Hoping that there is a way for you to make the role work again with the spaces. Thank you for your time.

    • This reply was modified 1 year, 7 months ago by cinderalla.
    Plugin Author Steve Burge

    (@stevejburge)

    Hi @cinderalla

    Sorry, still not luck with this in our testing.

    – Can you confirm the error exists in 2.3.4?
    – Does it happen with new roles?

    Thread Starter cinderalla

    (@cinderalla)

    – Can you confirm the error exists in 2.3.4?

    Yes, it does happen in 2.3.4

    – Does it happen with new roles?

    No, it doesn’t happen. When you create a role with spaces, the spaces are replaced with underscores when you save it.

    Plugin Author Steve Burge

    (@stevejburge)

    @cinderalla Sorry, we can’t still see this, and haven’t had any more reports.

    Does anything show in our site’s error log, or with wp_debug enabled?

    Thread Starter cinderalla

    (@cinderalla)

    Hi @stevejburge,

    There are no errors in the site log or with wp_debug enabled. Were you able to test with a role with spaces in it?

    I wasn’t able to add one like that via the WP Admin interface, so it must have been added to the database with the spaces somehow. Strange is that we were able to edit the role with the spaces before version 2.3.3.

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @cinderalla

    Sorry, this remains the only report we’ve had on this and we can’t re-create it in our testing.

    If you have more insight, you’re welcome to re-open this ticket. I’ll also re-open this if anything else comes to light.

    If you need us to dig in and debug your site, our Capabilities Pro team can do that.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Issue with Spaces in Role Names’ is closed to new replies.