Skip Navigation

[Resuelto] Warning: Missing argument 2 for WC_Template_Loader::unsupported_theme_title_filter()

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

Problem:
When I update WooCommerce to the latest version, I get an error message:

Warning: Missing argument 2 for WC_Template_Loader::unsupported_theme_title_filter() in .../wp-content/plugins/woocommerce/includes/class-wc-template-loader.php on line 380

This is only on pages which contain Views from Toolset.

Solution:
https://toolset.com/errata/missing-id-argument-when-the-the_title-hook-is-applied/

This support ticket is created hace 6 años, 9 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Etiquetado: 

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por Dido hace 6 años, 9 meses.

Asistido por: Beda.

Autor
Mensajes
#618602

Hi,
I have a problem with displaying titles, since the latest major update from WooCommerce.
They say, it is a Toolset issue.
Read more about this topic in my ticket:
enlace oculto

Kind regards,
Dido

#618609

Yes, we use the_title filter with too few arguments in a few places.

Strange that this showed up only thru an update of WooCommerce. The Filter is called incorrectly since a while, and it did not produce issues earlier.

According the Codex the $id is mandatory, and if you support older WordPress versions even a "null" value must be passed.

So, we definitely need to add the $id to our the_title filters.

I reported the issue and will update you as soon as possible about its process.

#618617

Very good, thank you

#620180
#620191

Great news!