[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.
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.
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.
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.
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?
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?
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