Skip Navigation

[Resolved] Error while editing/creating

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 1 reply, has 1 voice.

Last updated by Minesh 5 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2783524

Good morning,
when I try to modify / add content with a non-administrator user I get this error:

Uncaught Error: Object of class WP_Block_Editor_Context could not be converted to string in /data/http/corsica-pro/wp-content/plugins/types-access/application/controllers/permissions_post_types.php:484
Stack trace:
#0 /data/http/corsica-pro/wp-content/plugins/types-access/application/controllers/permissions_post_types.php(444): OTGS\Toolset\Access\Controllers\PermissionsPostTypes->set_post_type_permissions()
#1 /data/http/corsica-pro/wp-content/plugins/types-access/application/models/capabilities.php(644): OTGS\Toolset\Access\Controllers\PermissionsPostTypes->get_post_type_caps()
#2 /data/http/corsica-pro/wp-content/plugins/types-access/application/controllers/filters/backend_filters.php(537): OTGS\Toolset\Access\Models\Capabilities->get_capabilities_by_user_permissions()
#3 /data/http/corsica-pro/wp-includes/class-wp-hook.php(324): OTGS\Toolset\Access\Controllers\Filters\BackendFilters->toolset_access_has_cap_filter()
#4 /data/http/corsica-pro/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#5 /data/http/corsica-pro/wp-includes/class-wp-user.php(813): apply_filters()
#6 /data/http/corsica-pro/wp-includes/capabilities.php(1018): WP_User->has_cap()
#7 /data/http/corsica-pro/wp-includes/capabilities.php(911): user_can()
#8 /data/http/corsica-pro/wp-includes/block-editor.php(652): current_user_can()
#9 /data/http/corsica-pro/wp-admin/edit-form-blocks.php(314): get_block_editor_settings()
#10 /data/http/corsica-pro/wp-admin/post.php(187): require('...')
#11 {hand}
thrown

#2783678

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I see you are using number of third-party plugins including User Role Editor and User Access Manager.

Can you please tell me when the issue arise?
- After updating WP to latest version 6.7?
- After updating Toolset Blocks plugin to latest version 1.6.17?
- What if you try to rollback WordPress to 6.6.2?

In order to minimize the cause of the issue and to ensure there is no conflict with any third-party plugin or theme:

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference?