Skip Navigation

[Resuelto] Fatal when using User Switching plugin

This support ticket is created hace 3 años. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Clifford hace 3 años.

Asistido por: Shane.

Autor
Mensajes
#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: enlace oculto

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

Idiomas: Inglés (English )

Zona horaria: 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'