Skip Navigation

[Resuelto] A content template placed in the long description of a product produces an infin

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

Problem:

The issue here is that the customer is getting an infinite loop error on his product page.

Solution:
The issue because of the [wpv-woo-display-tabs] that is calling for the post body but in the post body you are calling for the body again with a separate content template.

This would work if you call another post in the post body like this [wpv-post-body id='35284' view_template="jfcontrols-standard-descripcion-larga"]

But calling itself will result in an infinite loop.

This support ticket is created hace 6 años, 11 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.

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
- 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 17 respuestas, tiene 2 mensajes.

Última actualización por Francisco Ramón Molina Busquiel hace 6 años, 11 meses.

Asistido por: Shane.

Autor
Mensajes
#599659
2017-12-17_22-13-00.jpg
2017-12-17_22-05-22.jpg
2017-12-17_22-04-18.jpg
2017-12-17_22-01-54.jpg
2017-12-17_21-58-44.jpg

A content template placed in the long description of a product produces an infinite loop.
However, a content template placed in the short description of the product is displayed correctly.
enlace oculto
enlace oculto
Look at the screenshots.

Best regards,
Francisco R.

#599957

Shane
Supporter

Idiomas: Inglés (English )

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

Hi Franciso,

Thank you for contacting our support forum.

I can see why you are getting an infinite loop. This is because the wpv-post-body displays the content of the editor that you are placing the code in. So its essentially continuously calling itself hence the infinite loop.

Thanks,
Shane

#599962

That's not the case, the content template I'm showing for the long description has nothing to do with the template used to display the product.
If this is how you say, how do I show the content template 'enlace oculto' in the long description of the product?
What must be done to achieve this?
This is clearly a Toolset bug.

Thanks for your help Shane.

#600009

Shane
Supporter

Idiomas: Inglés (English )

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

Hi Francisco,

This is not a bug, I see you are calling the body of the post in the short description and then in the body you are calling the body against itself with the same content template. Hence why it is throwing the infinite loop error because you are calling the same shortcode again within itself.

Here is the process of how the calls are going to work.

Short Description -> Calls -> Post Body with the same exact shortcode [wpv-post-body view_template="jfcontrols-standard-descripcion-larga"] which is essentially a loop.

Please let me know if this explains things a bit clearer for you.

Thanks,
Shane

#600019
2017-12-18_21-02-54.jpg
2017-12-18_21-01-13.jpg

No. It's not like you say it.
Please, enter my dashboard and go to the product form:
enlace oculto
In the form you will see:
Short Description -> Calls -> [wpv-post-body view_template="jfcontrols-standard-descripcion-corta"]
Long Description -> Calls -> [wpv-post-body view_template="jfcontrols-standard-descripcion-larga"]

Look at the screenshots.

Please, I need to solve this problem as quickly as possible.

Note: If you think you're right, modify the product so that it works correctly.

#600037

Shane
Supporter

Idiomas: Inglés (English )

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

Hi Francisco,

Thanks for pointing this out. I'm doing some more investigation on this.

Thanks,
Shane

#600039

Shane
Supporter

Idiomas: Inglés (English )

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

Hi Francisco,

So its still the same issue with the infinite call because of the {!{wpv-woo-display-tabs}!} that is calling for the post body but in the post body you are calling for the body again with a separate content template if you understand where i'm getting at.

This would work if you call another post in the post body like this [wpv-post-body id='35284' view_template="jfcontrols-standard-descripcion-larga"]

But calling itself will result in an infinite loop.

Please let me know if this is a bit more clearer for you. Also since I suspect that the content will be static then using the id attribute should be a suitable workaround.

Thanks,
Shane

#600144
2017-12-19_10-37-17.jpg

Yes. Now I see the content template, however, the line breaks are ignored.
Look at the screenshot.
Thanks for your help Shane.

#600252
2017-12-19_15-30-51.jpg
2017-12-19_15-29-17.jpg

The long description is showing more text than the DIVI layout.
The rounded text is not from this article. Look at the screenshot.

By the way, where did you get the id from the long description?

Thanks for your help.

#600279

Shane
Supporter

Idiomas: Inglés (English )

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

Hi Francisco,

I just use the ID of another product because this product here
enlace oculto

Does not have any information in it besides the 2 [wpv-post-body] shortcodes so i'm very confused as to what information is to be displayed for this product as there is no product description.

Thanks,
Shane

#600286
2017-12-19_16-52-59.jpg

In the long description it should only show the contents of the content template with id 38109.
Look at the screenshot.
What can be done to only show this content?

Thanks for your help.

#600356

Shane
Supporter

Idiomas: Inglés (English )

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

Hi Francisco,

I doing some more checks on this to see if I can find the exact information for you but I suspect that its being caused by the woocommerce shortcode used to display the tabs.

Thanks,
Shane

#600414

Tell me something as soon as you can.
Thanks for your help.

#600574

Shane
Supporter

Idiomas: Inglés (English )

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

Hi Francisco,

As suspected the loop is being caused by the [wpv-woo-display-tabs disable_reviews_tab='no'] shortcode.

It is because this code is calling the post body and within the post body the post body is calling itself which will generate an infinite loop because of the constant repetitive calls to itself.

Please let me know if this clears things up a bit for you.

Thanks,
Shane

#600602

Yes. Right. That is the explanation.
But, how can I show the information I want to show?