WordPress.org

Support

Support » Plugins and Hacks » Advanced Access Manager » [Resolved] [Plugin: Advanced Access Manager] Can not assign roles to new users

[Resolved] [Plugin: Advanced Access Manager] Can not assign roles to new users

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Vasyltech

    @vasyl_m

    Hi Jamie Jackson,
    What WP version you are using now?

    Regards,
    Vasyl

    i also facing same problem.

    i’m using WordPress 3.3
    please guide me what i do?

    Hi Vasyl,

    Thanks for helping! I’m using 3.3

    Plugin Author Vasyltech

    @vasyl_m

    I’m guessing something has been changed with user level on release 3.3 and now filtering is not working properly.
    New release and a lot of surprises.
    I’ll check it ASAP.

    thanks – I’ll hold off on other wp upgrades.

    Plugin Author Vasyltech

    @vasyl_m

    Hi Jamie,
    I have just release 1.4.3 with some emergency solutions. Hope this will help you in your case.

    Regards,
    Vasyl

    Hi Vasyl,

    Works perfectly! Thanks for the speedy update.

    Jamie

    Hey, I have the exact same problem and it’s still broken for me.

    WordPress 3.2.1
    Advanced Access Manager 1.4.3

    Brian

    Plugin Author Vasyltech

    @vasyl_m

    Hi Brian,
    I didn’t receive any emails with the same problem for WP 3.2.1.
    Please be sure that you have the highest user level to be able to do promote other users.

    Regards,
    Vasyl

    Like Brian I am now having issues setting users to anything but subscriber with WordPress 3.2.1 and Access Manager 1.4.3

    Plugin Author Vasyltech

    @vasyl_m

    Ok. In such way I’ll check this issue today for sure and let you know how to fix this.

    Plugin Author Vasyltech

    @vasyl_m

    Hi guys,
    The problem is solved. The cause is ridiculous. In release WP 3.2.1 the list of user roles is associated array and in WP 3.3 is just an array. Why they did this change? Gifts and gifts for Christmas from core team 🙂
    Ok this is the solution. Go to advanced-access-manager/module/class-module_user.php and replace the function getCurrentUserRole with next script:
    function getCurrentUserRole() {
    global $wp_version;

    if (version_compare($wp_version, ‘3.3’, ‘=’)) {
    $result = (is_array($this->roles) ? $this->roles : array());
    } else {
    //deprecated, will be deleted in release 1.5
    if (is_object($this->data) && isset($this->data->{$this->cap_key})) {
    $result = array_keys($this->data->{$this->cap_key});
    } else {
    $result = array();
    }
    }

    return $result;
    }

    Regards,
    Vasyl

    Works great thanks Vasyl!!!

    Plugin Author Vasyltech

    @vasyl_m

    If you experiencing the same problem with 3.3.1 you can download next file and replace it in advanced-access-manager/module.
    I’m going to release version 1.5.5 on Sunday this week so it’ll have this fix.

    File can be downloaded here (please do not forget to rename it to php):
    http://whimba.org/temp/class-module_user.php1

    Apologize for small inconveniences.

    Thanks Vasyl, panic over 🙂 everything working again!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Resolved] [Plugin: Advanced Access Manager] Can not assign roles to new users’ is closed to new replies.
Skip to toolbar