Skip Navigation

[Resolved] I can’t login with custom user role.

This thread is resolved. Here is a description of the problem and solution.

Problem:

When users with a role lower than administrator log-in the following fatal error may occur with "Enable Media Replace" plugin.

Solution:

It is a known issue, see our erratum here:

https://toolset.com/errata/fatal-access-error-when-non-admins-log-in/

Relevant Documentation:

This support ticket is created 2 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by cristianR-3 2 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#2329013

I am trying to: I am trying to log in with a custom user role.

Link to a page where the issue can be seen: hidden link

I expected to see: The welcome login screen and custom user dashboard.

Instead, I got:
Fatal error: Uncaught Error: Class 'OTGS\Toolset\Access\Controllers\UploadPermissions' not found in /home/cris63/public_html/wp-content/plugins/types-access/application/models/capabilities.php:613 Stack trace: #0 /home/cris63/public_html/wp-content/plugins/types-access/application/controllers/filters/backend_filters.php(534): OTGS\Toolset\Access\Models\Capabilities->get_capabilities_by_user_permissions(Array, Array, Array, Object(WP_User)) #1 /home/cris63/public_html/wp-includes/class-wp-hook.php(307): OTGS\Toolset\Access\Controllers\Filters\BackendFilters->toolset_access_has_cap_filter(Array, Array, Array, Object(WP_User)) #2 /home/cris63/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #3 /home/cris63/public_html/wp-includes/class-wp-user.php(787): apply_filters('user_has_cap', Array, Array, Array, Object(WP_User)) #4 /home/cris63/public_html/wp-includes/capabilities.php(801): WP_User->has_cap('upload_files') #5 /home/cris63/public_html/wp-includes/capabilities.php(693): user_can(Object(WP_U in /home/cris63/public_html/wp-content/plugins/types-access/application/models/capabilities.php on line 613

Notice: is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/cris63/public_html/wp-includes/functions.php on line 5768

Notice: is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/cris63/public_html/wp-includes/functions.php on line 5768
There has been a critical error on this website.

#2329287

Hello,

It is a known issue, see our erratum here:
https://toolset.com/errata/fatal-access-error-when-non-admins-log-in/

The fix for this issue will be officially shipped with next Toolset Access version 2.8.13, but I am not sure when will it be released.

Currently, please try the workaround mentioned in above erratum.

#2329517

Thanks for the replay. I disabled the Enable Media Replace plugin and indeed it fixed the issue. Hopefully, this gets addressed soon.

#2329601

My issue is resolved now. Thank you!