Skip to content
Alexander Schneider edited this page Dec 3, 2017 · 3 revisions

PHP Version to low

Beginning from version 2.0.0 UAM requires at least PHP 5.4. You have two options:

  1. Download an older version here from https://wordpress.org/plugins/user-access-manager/advanced/ at the "PREVIOUS VERSIONS" section. Delete the current version under wp-content/plugins and upload the old version.
  2. Update your PHP version to a version higher or equals PHP 5.4. (Recommended) The latest version of PHP 5.3 is more than four years old and didn’t received any security updates since that, which is a huge security issue on your site. Use at least PHP 5.6 which still receives security updates and is full compatible to PHP 5.3.

Possible inconsistency for users at uam_access_group_to_object table

First this doesn't affect the plugin in any way and is overwritten if you save the assignment to the user again. For full details see: https://github.com/GM-Alex/user-access-manager/issues/43. If this affects you because you are using a custom query you can fix that by the following mysql statement:

UPDATE wp_uam_accessgroup_to_object SET object_type = '_user_' WHERE general_object_type = '_user_';

Fatal error class PHP not found

If you are getting an error like the following

PHP Fatal error: Uncaught Error: Class 'UserAccessManager\Wrapper\Php' not found in /…/wp-content/plugins/user-access-manager/init.php:38
Stack trace:
#0 /…/wp-content/plugins/user-access-manager/user-access-manager.php(75): initUserAccessManger()
#1 /…/wp-settings.php(305): include_once('/…/…')
#2 /var/www/infos/wp-config.php(124): require_once('/…/…')
#3 /…/wp-load.php(37): require_once('/…/…')
#4 /…/wp-blog-header.php(13): require_once('/…/…')
#5 /…/index.php(17): require('/…/…')
#6 {main}
thrown in /…/wp-content/plugins/user-access-manager/init.php on line 38

Run composer dump-autoload -o at the plugin folder. Composer need to be installed, for more information about composer visit https://getcomposer.org/