Running the Forminator plugin (hidden link) seems to conflict with Toolset Access. This happened today, and has been working for over a year before -- I'm assuming either a Toolset, Access, or Forminator auto-update. Disabling either Access or Forminator fixes the problem.
This is a staging duplicate site of the production site where this issue occurred.
PHP error message:
Fatal error: Uncaught Error: Class 'Toolset_Post_Type_Exclude_List' not found in /var/www/html/wp-content/plugins/types-access/application/controllers/permissions_post_types.php:209 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(287): OTGS\Toolset\Access\Controllers\PermissionsPostTypes->registered_post_type_hook('forminator_form...', Object(WP_Post_Type)) #1 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #2 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /var/www/html/wp-includes/post.php(1449): do_action('registered_post...', 'forminator_form...', Object(WP_Post_Type)) #4 /var/www/html/wp-content/plugins/forminator/library/modules/custom-forms/loader.php(123): register_post_type('forminator_form...', Array) #5 /var/www/html/wp-content/plugins/forminator/library/abstracts/abstract-class-module.php(51): Forminator_Custom_Form->register_cpt() #6 /var/www/html/wp-content/plugins/forminator/library/class-modules.php(87): Forminator_Module->__construct( in /var/www/html/wp-content/plugins/types-access/application/controllers/permissions_post_types.php on line 209
Commenting out lines 208-211 in types-access/application/controllers/permissions_post_types.php fixes the error. It seems the 'Toolset_Post_Type_Exclude_List' class is for some reason not available to the Forminator plugin.
Here is the commented-out code:
// if ( empty( $this->excluded_post_types ) ) {
// $post_type_exclude_list_object = new \Toolset_Post_Type_Exclude_List();
// $this->excluded_post_types = $post_type_exclude_list_object->get();
// }