WordPress.org

Ready to get started?Download WordPress

Forums

Capability Manager Enhanced
Error when I try to create a new role (7 posts)

  1. pisaacs
    Member
    Posted 1 year ago #

    When I try to create a new role using the plugin I get a blank page.

    I'n my error log I get this

    PHP Fatal error: Call to undefined function ak_admin_error() in /var/www/vhosts/mysite.com/wp-content/plugins/capability-manager-enhanced/includes/handler.php on line 35, referer: http://mysite.com/wp-admin/admin.php?page=capsman

    Any help on how to fix this?

    Philip

    http://wordpress.org/plugins/capability-manager-enhanced/

  2. mjassen
    Member
    Posted 1 year ago #

    Hi Philip,

    Can you give more detail -- What mouse clicks and keyboard strokes did you do immediately leading up to the error? What version of WordPress and what version of Capability Manager Enhanced?

    I created a new role without error. The steps I took were to, in the dashboard go to "Users->Role Capabilities..." menu on left, and then in the
    Roles and Capabilities screen that comes up, on the right-hand-side "Create New Role" box, typed a name in the "Name of new role" textbox and clicked the "Create" button. At that time i don't get an error -- i get a "New role created." message at the top of the Roles and Capabilities screen.
    I am on WordPress 3.5.2 and Capabilty Manager Enhanced v. 1.4.10.

    Regards,

    Morgan

  3. pisaacs
    Member
    Posted 1 year ago #

    Hey Morgan,

    I am on WordPress 3.5.2 and Capabilty Manager Enhanced v. 1.4.10.

    The steps I took were exactly the same as what you describe except I get the error message I've printed above.

    What was I doing exactly before? Nothing unusual.

    I'm guessing by your response you aren't having this issue, so I'm not sure you're going to be able to help me. If I know anything about trouble shooting bugs, if others haven't had the problem then it's probably something on my system.

  4. mjassen
    Member
    Posted 1 year ago #

    Philip,

    In line 35 of "handler.php" file specified in error message posted in the first post of this thread, indicates that the plugin thinks that we're wanting it to copy the existing record while not leaving the name field blank...
    Going on that information, I can now able to reliably re-create the error on my system as well. I can now re-create it every time by, in the "Copy Subscriber Role" box on the right-hand-side, typing a name *exactly matching the name of an already-existing role* into the "Name of copied role" textbox and clicking my mouse on the "Copy" button.

    Corresponding to the time when you saw the error message in the log, can you confirm again which button you clicked? (maybe even run through the motions again and tehn check in the log again, to have a fresh case?)(i mean was it definitely the Create button and not the Copy button?) (and not the enter key which might have represented a different button click like the Save button?)

    Regards,

    Morgan

  5. pisaacs
    Member
    Posted 1 year ago #

    Hey Morgan,

    This is great news! I think.

    So again all I did was type a new role name in the "Create New Role" box and click the create button. Nothing more

    I believe it also gave me an error when I type a name in the "Copy Subscriber Role" but to be honest I'm not sure what this does.

    Philip

  6. mjassen
    Member
    Posted 1 year ago #

    Philip,

    The Line number in the error message seen in the error log, corresponding to the exact timestamp where was observed the blank screen error/symptom, will point us in the right direction of where to look next.
    "...handler.php...Line 20..." might mean the plugin thinks the field was left blank when CREATING a new role name
    "...handler.php...Line 22..." might mean the plugin thinks the field name was a duplicate (already existed) when CREATING a new role name
    "...handler.php...Line 33..." might mean the plugin thinks the field was left blank when COPYING a role name
    "...handler.php...Line 35..." might mean the plugin thinks the field name was a duplicate (already existed) when COPYING a role name

    Regards,

    Morgan

  7. kevinB
    Member
    Plugin Author

    Posted 11 months ago #

    The fatal error was due to a misplaced function ak_admin_error() definition, and has been fixed in CME 1.5

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic