Skip Navigation

[Cerrado] Unable to save relationship field when WPML is activated.

This support ticket is created hace 1 año, 1 mes. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Este tema contiene 7 respuestas, tiene 3 mensajes.

Última actualización por Nigel hace 1 año.

Asistido por: Nigel.

Autor
Mensajes
#2649301

Hi guys,
On a website we have two post types: 'projects' and 'contact persons'. In a project we can store a related contact person.
When WPML is activated some projects don't show a contact person + contact person can not be stored.
Please open a private ticket so i can get you access to a copy of the live site with only Types, Views, WPML and TwentyTwenty activate.
Thanks!
Marc

#2649351

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi Marc

Let me set up a private reply for you to share credentials...

#2650317

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

First of all - I've created the following sandbox site and you can auto-login to it using the following link:
- enlace oculto

As you can see I've added the post reference test field to the following custom field group that is set to display with the post type "Personal Trainers":
- enlace oculto

When I edit any personal trainer post and add/update the post reference field:
- enlace oculto

I can see it's working as expected.

However - with your site I can see the issue.

Would you be able to reproduce the issue with the sandbox site I shared, if yes, would you mind to share exact steps I've to follow that should help me to reproduce the issue.

If you won't able to reproduce the issue with the sandbox site, that means there must be something wrong with your site. As I do not know your site history:
- Can you please make sure the post relationships are correct and now edited recently.
- 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?
- Do you know any other significant structure changes to your site for post-relationships or any other entity?

#2650451

Hi Minesh!
Thanks for helping me. The error does not occur on the sandbox, so let's go to the second part of your reply.

- Can you please make sure the post relationships are correct and now edited recently.
The post relationships are correct.

- 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?
That is already the case; correct? Meaning: error is not coming from custom code or conflicting plugins or conflicting theme.

Do you see any difference?
- Do you know any other significant structure changes to your site for post-relationships or any other entity?
No. There is nothing special about this setup. Giving a bit of direction; as soon as you disable WPML it is working.

Hope to hear from you soon!
Marc

#2650683

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Then in order to find what's causing the issue I will require to have duplicator copy of your site.
- https://toolset.com/faq/provide-supporters-copy-site/

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

#2662055

Hi Minesh,
Sorry for the delay, hereby the Duplicator copy of the website:

enlace oculto

Thanks!
Marc

#2662975

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi Marc

Minesh is on vacation, let me take over here.

I'm going to take a look at your own site first to see if I can spot the problem, and if not I'll download the duplicator package you shared to take a closer look.

#2663033

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

With the project you shared that is not working, I have found that if I add a person to the Contactpersoon reference field and update the project, in the database the connection is recorded. (It's a little tricky to track, as these tables are quite complex, but the connection is stored.)

But for some reason when you load the edit page it doesn't populate the select field with the existing contact.

Do you have an example of where this is working correctly, so that I can compare the two?

El debate ‘[Cerrado] Unable to save relationship field when WPML is activated.’ está cerrado y no admite más respuestas.