Skip Navigation

[Resolved] There was an error saving the relationship…

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 8 replies, has 2 voices.

Last updated by Tristian 2 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2264047
Relationships.jpg

I am trying to: create a relationship on a new site

Link to a page where the issue can be seen: as in the image

I expected to see: a new relationship created

Instead, I got: an error as in the attached screenshot

This site is a new install with the latest version of Toolset (Types & Blocks) installed. I have tried to create several types of relationship and checked the relationships folder exists in the DB (it does).

I have disabled all plugins and reverted to basic theme to test.

These errors are in the Console...

#2264297

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please check by disabling all non-Toolset plugin and check if there is any plugin conflict.

Can you please try to check with default theme as well.

If the issue still persists, can you please share 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.

#2264443

Hi, is there any update on this? It's a high level problem with a fresh install that's stopping us doing everything, Thanks

#2264469

Minesh
Supporter

Languages: English (English )

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

I just checked with the clean installation and yes, when I try to create a post relationship I can see the JS error you mention on the browser's console but still I can create the post relationship successfully.

When I try on your site I can see that when I try to create post relationship at last step and click on the button "Finish" at that action it shows the 500 internal server error.

Can you please check with your hosting authority why its showing 500 internal server error? as I do not find anything obvious with the php error log.

#2264997

This was a fresh install with the latest version of Toolset. I disabled all plugins and switched themes. I have now also replicated this site on a localhost and we are experiencing the exact same problem in a totally different hosting environment?

#2265303

Minesh
Supporter

Languages: English (English )

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

That is really strange as I'm able to successfully create the post relationship.

I've created the following sandbox site, you can auto login to it using the following link:
- hidden link

I've created post types "Student" and "Student Types" and I've also create one-2-many post relationship between them and I can see its working as expected.
=> hidden link

You can give a shot and create another post types and try to create post relationships.

Can you please tell me on your localhost what PHP version you are using as well as what browser you are using?

#2267685

Unfortunately I'm still having the same problem even after upgrading PHP to the latest version.

I'm using PHP 7.4 and Google Chrome.

I can create a relationship in the Sandbox site without any problems (in the same browser) - but not on my site.

This has been tried multiple times with no other plugins installed and using default theme and a fresh download of Toolset...

#2267705

I have enabled debugging and found this error in the WordPress Debug log

[16-Jan-2022 09:37:34 UTC] PHP Warning:  include_once(/home/mysitename/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/wpml/packages/definition.php): failed to open stream: No such file or directory in /home/mysitename/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/utility/autoloader.php on line 127
[16-Jan-2022 09:37:34 UTC] PHP Warning:  include_once(): Failed opening '/home/mysitename/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/wpml/packages/definition.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/mysitename/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/utility/autoloader.php on line 127
[16-Jan-2022 09:37:34 UTC] PHP Fatal error:  Uncaught Error: Class 'OTGS\Toolset\Common\WPML\Package\RelationshipDefinitionTranslationPackage' not found in /home/mysitename/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/definition/persistence.php:430
Stack trace:
#0 /home/mysitename/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/definition/persistence.php(393): Toolset_Relationship_Definition_Persistence->get_wpml_package_definition(Object(Toolset_Relationship_Definition))
#1 /home/mysitename/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/definition/persistence.php(136): Toolset_Relationship_Definition_Persistence->register_definition_strings(Object(Toolset_Relationship_Definition))
#2 /home/mysitename/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/definition/repository.php(279): Toolset_Relationship_Definition_Persistence->insert_definition(Object(Toolset_Relationship_Definition))
#3 /home/asset in /home/mysitename/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/definition/persistence.php on line 430
#2267749

After debugging the issue I saw errors relating to some missing files - that is despite installing the latest version of Toolset plugins.

I reinstalled the Types plugin and the problem disappeared.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.