Saltar navegación

[Resuelto] Discovered a BUG in your Views Plugin pagination code when used with WPML

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

Language resets after ajax pagination.
Solution:

The solution for this can actually be seen below.
https://toolset.com/forums/topic/discovered-a-bug-in-your-views-plugin-pagination-code-when-used-with-wpml/#post-1117260

This support ticket is created hace 6 años, 3 meses. 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por PaulS4783 hace 6 años, 3 meses.

Asistido por: Shane.

Autor
Mensajes
#1117146

HI,

I have discovered what I think is pretty definitively a bug in your software.
The problem occurs when:
a) Views Plugin is used in a paginated setting (e.g. slider).
b) WPML Plugin is installed with 2 languages
c) The slider is installed on a "non-default language" page
d) An anonymous user visits the page.

When all of the above conditions are met, the slider ONLY shows the first post of the series in the correct language for THAT page. On the second and ALL subsequent slides, Views slider returns the "default language" posts (i.e. disregarding the current page language version).

I'd like to STRESS again that this only occurs to anonymous users.
Logged-in users get the slider posts in the correct language version that you would expect.

I am using all up to date ToolSet plugin versions.
ToolSet Types 3.1.1
ToolSet Views 2.6.4.1
ToolSet Access 2.5
ToolSet Forms 2.1.1.1

AND up to date WPML plugin versions.
WPML CMS 4.07
WPML Media 2.3.7
WPML String Translation 2.8.7
WPML Translation Management 2.6.7

WATCH the following :
enlace oculto

Check URL here:
enlace oculto
and confirmed here:
enlace oculto

#1117260

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Screen Shot 2018-09-28 at 11.14.20 AM.png

Hi Paul,

Thank you for contacting our support forum.

This is actually normal because i suspect that the Language filtering for AJAX is not enabled in WPML.

Go to WPML -> Language and ensure that this setting is checked. See Screenshot.

Thanks,
Shane

#1117339

Good call!
Yes, that fixed the issue.