Skip Navigation

[Resolved] Fatal when using User Switching plugin

This support ticket is created 3 years 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Clifford 3 years ago.

Assisted by: Shane.

Author
Posts
#2223409

I am trying to use https://wordpress.org/plugins/user-switching/ but then when I try to switch from an Admin to an Author (haven't tried any other switching) it causes a fatal for this URL: hidden link

WordPress version 5.8.2
PHP version 7.4.25

Error Details
=============
An error of type E_ERROR was caused in line 613 of the file/wp-content/plugins/types-access/application/models/capabilities.php. Error message: Uncaught Error: Class 'OTGS\Toolset\Access\Controllers\UploadPermissions' not found in/wp-content/plugins/types-access/application/models/capabilities.php:613
Stack trace:
#0/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/wp-includes/class-wp-hook.php(303): OTGS\Toolset\Access\Controllers\Filters\BackendFilters->toolset_access_has_cap_filter(Array, Array, Array, Object(WP_User))
#2/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
#3/wp-includes/class-wp-user.php(786): apply_filters('user_has_cap', Array, Array, Array, Object(WP_User))
#4/wp-includes/c

(cutoff via email)

#2223461

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Clifford,

Thank you for getting in touch.

This is a known issue that isn't caused by the User Switching plugin but rather the Enable Media Replace plugin.

Disabling this plugin will resolve the issue however we do have a workaround on our Erratas page on the issue.
https://toolset.com/errata/fatal-access-error-when-non-admins-log-in/

Please let me know if this workaround in the link above was able to help.

Thanks,
Shane

#2224193

Thanks for the info. That fixed it.

FYI: That link should say 'downgrade to' not 'download to'