• Resolved ammo69

    (@ammo69)


    On WP version 6.8.3 / PHP 8.3 my site experienced problems with this plugin.

    type E_ERROR caused by line nr. 76 of the file wp-content/plugins/user-access-manager/src/Command/GroupCommand.php. Error: Uncaught Error: Cannot call constructor in wp-content/plugins/user-access-manager/src/Command/GroupCommand.php:76

    Stack trace:
    #0 wp-content/plugins/user-access-manager/init.php(258): UserAccessManager\Command\GroupCommand->__construct()
    #1 wp-content/plugins/user-access-manager/user-access-manager.php(77): initUserAccessManger()
    #2 wp-includes/class-wp-hook.php(341): initUam()
    #3 wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(522): WP_Hook->do_action()
    #5 wp-settings.php(742): do_action()
    #6 wp-config.php(115): require_once(‘/home/xxxxxxxxxxx’)

    Now I have WP 6.9, still the same error. It looks like the plugin does function but this is a bit weird. Are you @gm_alex still developing this (8 months ago latest update) or should I look for an alternative?

    Best regards, AMMO

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

    (@gm_alex)

    Hi,

    could you have a look if the latest release fixes the issue?

    Greetings,
    Alex

    Thread Starter ammo69

    (@ammo69)

    Hi Alex,

    The latest release is 2.3.0, this version generates not the mentioned errors but it does crash my entire site with a critical error.

    I uploaded the site error log to Gemini and this the conclusion:

    1. The Critical Issue: Conflict Between Plugins

    The most recent and serious errors are caused by a conflict between two plugins: User Access Manager and Asgaros Forum.

    • The Error Message: PHP Fatal error: Uncaught TypeError: UserAccessManager\Object\ObjectHandler::registeredTaxonomy(): Argument #2 ($objectType) must be of type array|string, null given.
    • What is happening: The plugin Asgaros Forum attempts to register a taxonomy (a grouping, like categories). The User Access Manager plugin monitors this process but receives an empty value (null) where it expects a string or list. Due to stricter rules in newer PHP versions (likely running PHP 8.0 or higher), this leads directly to a fatal crash.
    • Consequence: Your backend (wp-admin) is likely inaccessible or barely responsive.

    Solution: You must disable one of these two plugins to regain access. Since you probably cannot enter the admin panel, this must be done via FTP or the File Manager of your hosting (DirectAdmin/cPanel).

    Summary

    Your site is crashing due to the User Access Manager plugin in combination with the forum. Disable User Access Manager manually via the files on the server to get the site working again.

    How to fix this?

    Best regards, AMMO

    Plugin Author gm_alex

    (@gm_alex)

    Hi,

    new release is on the way and will be available within the next minutes. Please give it a try.

    Greetings,
    Alex

    Hi Alex,

    I upgraded to version 2.3.2 and still get an error (PHP 8.5, WP 6.0, WPML, many other possible culprits). A fix for me was modifying line 156 in /src/Controller/Frontend/TermController.php and add “string” as a possible type for $term and the return value:

        private function processTerm(bool|WP_Term|stdClass|string $term, bool &$isEmpty = null): WP_Term|stdClass|bool|string

    (sorry for hijacking the thread)

    Plugin Author gm_alex

    (@gm_alex)

    @ammo69 @helmuthb New release is on the way, please check it. Thanks.

    Hi
    still critical error on my website with 2.3.3 release

    • This reply was modified 3 months, 2 weeks ago by rubin-sev.

    Bonjour

    j’ai toujours une erreur critique avec la version 2.3.3

    Plugin Author gm_alex

    (@gm_alex)

    @rubin-sev Could you provide me the error you are receiving?

    Fatal error: Uncaught TypeError: UserAccessManager\Wrapper\Wordpress::switchToBlog(): Argument #1 ($blogId) must be of type int, string given, called in /wp-content/plugins/user-access-manager/src/Setup/Database/DatabaseHandler.php on line 210 and defined in /wp-content/plugins/user-access-manager/src/Wrapper/Wordpress.php:201 Stack trace: #0 wp-content/plugins/user-access-manager/src/Setup/Database/DatabaseHandler.php(210): UserAccessManager\Wrapper\Wordpress->switchToBlog() #1 /wp-content/plugins/user-access-manager/src/Setup/Database/DatabaseHandler.php(230): UserAccessManager\Setup\Database\DatabaseHandler->getActivePluginSites() #2 /wp-content/plugins/user-access-manager/src/Controller/Backend/BackendController.php(44): UserAccessManager\Setup\Database\DatabaseHandler->isDatabaseUpdateNecessary() #3 /wp-includes/class-wp-hook.php(341): UserAccessManager\Controller\Backend\BackendController->showAdminNotice() #4/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #5 /wp-includes/plugin.php(522): WP_Hook->do_action() #6 /wp-admin/admin-header.php(313): do_action() #7 /wp-admin/index.php(137): require_once(‘…’) #8 {main} thrown in wp-content/plugins/user-access-manager/src/Wrapper/Wordpress.php on line 201

    There has been a critical error on this website.

    Thread Starter ammo69

    (@ammo69)

    hi,
    It looks like the plugin is functioning as supposed to. Using version 2.3.3
    @rubin-sev still has problems, but on my site it looks good now.

    Thanks so far for the quick respons!
    AMMO

    hello,

    Since new version i was able to update a account on wordpress but the user creation is blocked.

    Any new update is on going ?

    Plugin Author gm_alex

    (@gm_alex)

    @laurent06 Could you provide me an error?

    Fatal error: Uncaught TypeError: UserAccessManager\UserGroup\AbstractUserGroup::isObjectMember(): Argument #2 ($objectId) must be of type string|int, null given, called in /homepages/28/d847146969/htdocs/clickandbuilds//wp-content htdocs/clickandbuilds//wp-admin/user-new.php(664): do_action() #9 {main} thrown in /homepages/28/d847146969/htdocs/clickandbuilds//wp-contentr-access-manager/src/UserGroup/AbstractUserGroup.php:353 Stack trace: #0 /homepages/28/d847146969/htdocs/clickandbuilds//wp-content/plugins/user-access-manager/src/View/GroupSelectionForm.php(50): UserAccessManager\UserGroup\AbstractUserGroup->isObjectMember() #1 /homepages/28/d847146969/htdocs/clickandbuilds//wp-content/plugins/user-access-manager/src/View/UserProfileEditForm.php(35): include(‘/homepages/28/d…’) #2 /homepages/28/d847146969/htdocs/clickandbuilds//wp-content/plugins/user-access-manager/src/Wrapper/Php.php(80): include(‘/homepages/28/d…’) #3 /homepages/28/d847146969/htdocs/clickandbuilds//wp-content/plugins/user-access-manager/src/Controller/BaseControllerTrait.php(66): UserAccessManager\Wrapper\Php->includeFile() #4 /homepages/28/d847146969/htdocs/clickandbuilds//wp-content/plugins/user-access-manager/src/Controller/Backend/UserObjectController.php(39): UserAccessManager\Controller\Controller->getIncludeContents() #5 /homepages/28/d847146969/htdocs/clickandbuilds//wp-includes/class-wp-hook.php(341): UserAccessManager\Controller\Backend\UserObjectController->showUserProfile() #6 /homepages/28/d847146969/htdocs/clickandbuilds//wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #7 /homepages/28/d847146969/htdocs/clickandbuilds//wp-includes/plugin.php(522): WP_Hook->do_action() #8 /homepages/28/d847146969/htdocs/clickandbuilds//wp-admin/user-new.php(664): do_action() #9 {main} thrown in /homepages/28/d847146969/htdocs/clickandbuilds//wp-content/plugins/user-access-manager/src/UserGroup/AbstractUserGroup.php on line 353

    • This reply was modified 3 months, 2 weeks ago by laurent06.

    @gm_alex did you find something ? the issue is only when i’m trying to create a new user account

    • This reply was modified 3 months, 2 weeks ago by laurent06.
    Plugin Author gm_alex

    (@gm_alex)

    @laurent06 Can you try 2.3.4 please?

Viewing 15 replies - 1 through 15 (of 35 total)

You must be logged in to reply to this topic.