Plugin causes errors in WP
-
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
-
Hello i’m on it but issue still exist
this is the stack with version 2.3.4:
Fatal error: Uncaught TypeError: UserAccessManager\ObjectMembership\UserMembershipHandler::isMember(): Argument #3 ($objectId) must be of type string|int, null given, called in /homepages/28/d847146969/htdocs/clickandbuilds/wp-content/plugins/user-access-manager/src/UserGroup/AbstractUserGroup.php on line 360 and defined in /homepages/28/d847146969/htdocs/clickandbuilds/wp-content/plugins/user-access-manager/src/ObjectMembership/UserMembershipHandler.php:35 Stack trace: 0 /homepages/28/d847146969/htdocs/clickandbuilds/wp-content/plugins/user-access-manager/src/UserGroup/AbstractUserGroup.php(360): UserAccessManager\ObjectMembership\UserMembershipHandler->isMember() 1 /homepages/28/d847146969/htdocs/clickandbuilds/wp-content/plugins/user-access-manager/src/View/GroupSelectionForm.php(50): UserAccessManager\UserGroup\AbstractUserGroup->isObjectMember() 2 /homepages/28/d847146969/htdocs/clickandbuilds/wp-content/plugins/user-access-manager/src/View/UserProfileEditForm.php(35): include(‘/homepages/28/d…’) 3 /homepages/28/d847146969/htdocs/clickandbuilds/wp-content/plugins/user-access-manager/src/Wrapper/Php.php(80): include(‘/homepages/28/d…’) 4 /homepages/28/d847146969/htdocs/clickandbuilds/wp-content/plugins/user-access-manager/src/Controller/BaseControllerTrait.php(66): UserAccessManager\Wrapper\Php->includeFile() 5 /homepages/28/d847146969/htdocs/clickandbuilds/wp-content/plugins/user-access-manager/src/Controller/Backend/UserObjectController.php(39): UserAccessManager\Controller\Controller->getIncludeContents() 6 /homepages/28/d847146969/htdocs/clickandbuilds/wp-includes/class-wp-hook.php(341): UserAccessManager\Controller\Backend\UserObjectController->showUserProfile() 7 /homepages/28/d847146969/htdocs/clickandbuilds/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() 8 /homepages/28/d847146969/htdocs/clickandbuilds/wp-includes/plugin.php(522): WP_Hook->do_action() 9 /homepages/28/d847146969/htdocs/clickandbuilds/wp-admin/user-new.php(664): do_action() 10 {main} thrown in /homepages/28/d847146969/htdocs/clickandbuilds/wp-content/plugins/user-access-manager/src/ObjectMembership/UserMembershipHandler.php on line 35
.
-
This reply was modified 4 months ago by
laurent06.
Hello! With PHP 8.4/UAM 2.3.4, I get :
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Wrapper\Wordpress::getAllowedMimeTypes(): Implicitly marking parameter $user as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Wrapper/Wordpress.php on line 345
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Wrapper\Wordpress::getUploadDir(): Implicitly marking parameter $time as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Wrapper/Wordpress.php on line 353
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Wrapper\Wordpress::getHomeUrl(): Implicitly marking parameter $scheme as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Wrapper/Wordpress.php on line 361
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Wrapper\Wordpress::getSiteUrl(): Implicitly marking parameter $scheme as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Wrapper/Wordpress.php on line 369
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Database\Database::getColumn(): Implicitly marking parameter $query as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Database/Database.php on line 97
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Database\Database::getRow(): Implicitly marking parameter $query as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Database/Database.php on line 105
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Database\Database::getVariable(): Implicitly marking parameter $query as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Database/Database.php on line 113
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Database\Database::getBlogPrefix(): Implicitly marking parameter $blogId as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Database/Database.php on line 121
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Database\Database::getResults(): Implicitly marking parameter $query as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Database/Database.php on line 145
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Object\ObjectMapHandler::processTreeMapElements(): Implicitly marking parameter $subMap as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Object/ObjectMapHandler.php on line 37
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\UserGroup\AssignmentInformationFactory::createAssignmentInformation(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/UserGroup/AssignmentInformationFactory.php on line 9
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\UserGroup\AssignmentInformationFactory::createAssignmentInformation(): Implicitly marking parameter $fromDate as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/UserGroup/AssignmentInformationFactory.php on line 9
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\UserGroup\AssignmentInformationFactory::createAssignmentInformation(): Implicitly marking parameter $toDate as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/UserGroup/AssignmentInformationFactory.php on line 9
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Form\FormHelper::getParameterText(): Implicitly marking parameter $objectKey as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Form/FormHelper.php on line 61
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Form\FormHelper::convertSelectionParameter(): Implicitly marking parameter $objectKey as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Form/FormHelper.php on line 99
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Form\FormHelper::convertConfigParameter(): Implicitly marking parameter $objectKey as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Form/FormHelper.php on line 132
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Form\FormHelper::getSettingsForm(): Implicitly marking parameter $objectKey as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Form/FormHelper.php on line 165
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\File\FileHandler::createFileProtection(): Implicitly marking parameter $dir as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/File/FileHandler.php on line 301
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\File\FileHandler::createFileProtection(): Implicitly marking parameter $objectType as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/File/FileHandler.php on line 301
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\File\FileHandler::deleteFileProtection(): Implicitly marking parameter $dir as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/File/FileHandler.php on line 312
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Controller\Frontend\TermController::processTerm(): Implicitly marking parameter $isEmpty as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Controller/Frontend/TermController.php on line 156
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Controller\Backend\ObjectController::showGroupSelectionForm(): Implicitly marking parameter $objectUserGroups as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Controller/Backend/ObjectController.php on line 311
[09-Dec-2025 23:15:35 UTC] PHP Deprecated: UserAccessManager\Controller\Backend\PostObjectController::showMediaFile(): Implicitly marking parameter $post as nullable is deprecated, the explicit nullable type must be used instead in /home/[...]/public_html/wp-content/plugins/user-access-manager/src/Controller/Backend/PostObjectController.php on line 122-
This reply was modified 4 months ago by
christianmartel.
I should have added that all images and files protected with UAM are unavailable and I get a critical error when I try to access them.
Fatal error: Uncaught TypeError: UserAccessManager\Wrapper\Php::iniGet(): Return value must be of type string|int, false returned in /home/bhuquebe/public_html/wp-content/plugins/user-access-manager/src/Wrapper/Php.php:52 Stack trace: #0 /home/bhuquebe/public_html/wp-content/plugins/user-access-manager/src/File/FileHandler.php(84): UserAccessManager\Wrapper\Php->iniGet() #1 /home/bhuquebe/public_html/wp-content/plugins/user-access-manager/src/File/FileHandler.php(109): UserAccessManager\File\FileHandler->deliverFileViaFopen() #2 /home/bhuquebe/public_html/wp-content/plugins/user-access-manager/src/File/FileHandler.php(272): UserAccessManager\File\FileHandler->deliverFile() #3 /home/bhuquebe/public_html/wp-content/plugins/user-access-manager/src/Controller/Frontend/RedirectController.php(141): UserAccessManager\File\FileHandler->getFile() #4 /home/bhuquebe/public_html/wp-content/plugins/user-access-manager/src/Controller/Frontend/RedirectController.php(248): UserAccessManager\Controller\Frontend\RedirectController->getFile() #5 /home/bhuquebe/public_html/wp-includes/class-wp-hook.php(341): UserAccessManager\Controller\Frontend\RedirectController->redirect() #6 /home/bhuquebe/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #7 /home/bhuquebe/public_html/wp-includes/class-wp.php(563): apply_filters() #8 /home/bhuquebe/public_html/wp-includes/class-wp.php(829): WP->send_headers() #9 /home/bhuquebe/public_html/wp-includes/functions.php(1343): WP->main() #10 /home/bhuquebe/public_html/wp-blog-header.php(16): wp() #11 /home/bhuquebe/public_html/index.php(17): require(‘/home/bhuquebe/…’) #12 {main} thrown in /home/bhuquebe/public_html/wp-content/plugins/user-access-manager/src/Wrapper/Php.php on line 52
-
This reply was modified 4 months ago by
christianmartel.
Sorry for the inconvenience, hopefully I found all with 2.3.5. Feedback if it works would be nice.
Still the same sadly – php 8.3 wordpress 6.9
Fatal error: Uncaught TypeError: UserAccessManager\Database\Database::getBlogPrefix(): 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 231 and defined in /wp-content/plugins/user-access-manager/src/Database/Database.php:121 Stack trace: #0 wp-content/plugins/user-access-manager/src/Setup/Database/DatabaseHandler.php(231): UserAccessManager\Database\Database->getBlogPrefix() #1 /wp-content/plugins/user-access-manager/src/Controller/Backend/BackendController.php(44): UserAccessManager\Setup\Database\DatabaseHandler->isDatabaseUpdateNecessary() #2 /wp-includes/class-wp-hook.php(341): UserAccessManager\Controller\Backend\BackendController->showAdminNotice() #3 /wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #4 /wp-includes/plugin.php(522): WP_Hook->do_action() #5 /wp-admin/admin-header.php(313): do_action() #6 /wp-admin/index.php(137): require_once(‘…’) #7 {main} thrown in /wp-content/plugins/user-access-manager/src/Database/Database.php on line 121-
This reply was modified 4 months ago by
rubin-sev.
Hello it’s works with 2.3.5 thanks for your help
@laurent06 Good to know, thanks for the feedback.
@gm_alex it works with 2.3.7! Thank you very much!!!
Hi Alex,
I just wanted to share some good news. The fatal error messages regarding User Access Manager and the Forum have completely disappeared. The site no longer crashes, so the update to version 3.3.7 is a success. Nothing in the error log that concerns your plugin.
Thank you very much for your efforts and the quick fix!
Best regards,
Arnout
@christianmartel Glad to hear. Thanks for the feedback.
Fatal Error in v2.3.7: Cannot call constructor (PHP 8.3)
Hi,
Thank you for the quick update to fix the previous conflict. However, after updating to version 2.3.7, I am immediately encountering a new Fatal Error that crashes the site.
The Error:
Uncaught Error: Cannot call constructor in .../wp-content/plugins/user-access-manager/src/Command/GroupCommand.php:29Stack Trace:
#0 .../user-access-manager/init.php(261): UserAccessManager\Command\GroupCommand->__construct()Environment:
- WordPress 6.7
- PHP 8.3.25
- User Access Manager 2.3.7
It seems like
GroupCommandis trying to call a parent constructor that is not accessible or does not exist. Could you please look into this?Best regards, AMMO
Hi Alex,
Could you please take a look at the problem I posted yesterday. The fatal error is still occurring.
Thanks, AMMOHi @ammo69,
could you try version 2.3.8? I improved the logic, but to be honest I wasn’t able to reproduce the issue.
Greetings,
Alex -
This reply was modified 4 months ago by
You must be logged in to reply to this topic.