Saltar navegación

[Resuelto] Views: Weird & urgent – post changes within same loop

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

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 -

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

Este tema contiene 7 respuestas, tiene 2 mensajes.

Última actualización por beatR 3 years, 3 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2598697

Hi

we suddenly got a weird issue where Views seems to use a different post depending wether a field is used in html-tags attribute or its content. best to explain with images:

this is the View, i added "data-test="[wpv-post-id]" and another [wpv-post-id] in the div's content:
enlace oculto

this is the output. inside the tag in the data-test attribute, it's the correct post-id. outside it's the post-id of the current post:
enlace oculto

it's not just wpv-post-id, all fields in the content of an element are from the current page (wrong), while the ones in the attributes of the element are the correct ones from the views-loop.

just to test, i downgraded to the previous types, but it didn't help. otherwise all is up-to-date.

any idea?

i can give access to the site, no probs.

Kind regards

Beat

#2598923

Minesh
Colaborador

Idiomas: Inglés (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL as well as admin access details and let me check whats going wrong with your setup.

*** 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.

#2599341

in case my password manager switched back the username again when i saved the reply - this is your wordpress user:
toolset

#2599545

Minesh
Colaborador

This is really weird issue. I can see with the first post id shortcode that is added as attribute data-test="[wpv-post-id]" does result in wrong post ID. The second shortcode [wpv-post-id] does shows the correct value.

I see on your plugins page that you are using outdated Toolset plugins. We always recommend running your site with the latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***

Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/
OR
You can install/update Toolset pluigins using the installer plugin:
-https://toolset.com/faq/how-to-install-and-register-toolset/#automatic-installation-once-you-have-otgs-installer-plugin-installed

Does updating plugin to latest release helps? if no:

In order to minimize the cause of the issue as well as to ensure there is no plugin/theme theme conflict you are using:
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?

#2599559

My issue is resolved now. Thank you!

#2599563

Minesh
Colaborador

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

I've created the following view:
- enlace oculto

And added the view to the following page and translated the page as well:
- enlace oculto

I can see it displays the correct post ID outside and with the link attribute data-test:
- enlace oculto

#2599595

Minesh
Colaborador

Ahh it seems we cross posted it and your issue is resolved. would you mind to mark resolve this ticket with different message like, this ticket is resolved with updates.

#2599653

My issue is resolved now. Basically reinstalling the plugins. Thank you!