Skip Navigation

[Closed] Fatal error: Uncaught Exception: Post type already exists. error

This support ticket is created 2 years, 11 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
- 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 2 voices.

Last updated by Minesh 2 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2576175

The error occurs when trying to add a relationship field after selecting the relevant relationship from the relationship menu.
please tell me how to solve it

Fatal error: Uncaught Exception: Post type already exists.
in /var/www/html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/post_type/repository.php on line 376

Call stack:

Toolset_Post_Type_Repository::create()
wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/driver.php:158
Toolset_Relationship_Driver::create_intermediary_post_type()
wp-content/plugins/types/application/controllers/page/field_group_post_relationship_helper.php:216
Types_Page_Field_Group_Post_Relationship_Helper::ensure_intermediary_post_type()
wp-content/plugins/types/application/controllers/page/field_group_post_relationship_helper.php:301
Types_Page_Field_Group_Post_Relationship_Helper::handle_association_field_group_creation()
wp-content/plugins/types/vendor/toolset/types/includes/classes/class.types.admin.edit.custom.fields.group.php:48
Types_Admin_Edit_Custom_Fields_Group::init_admin()
wp-content/plugins/types/vendor/toolset/types/admin.php:495
wpcf_admin_menu_edit_fields_hook()
wp-includes/class-wp-hook.php:307
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:331
WP_Hook::do_action()
wp-includes/plugin.php:476
do_action()
wp-admin/admin.php:237

#2576561

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please tell me what post relationship you are trying to create and using what post types and send me admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

The topic ‘[Closed] Fatal error: Uncaught Exception: Post type already exists. error’ is closed to new replies.