Skip Navigation

[Résolu] Warning: Missing argument 2 for WC_Template_Loader::unsupported_theme_title_filter()

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 6 années et 1 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

Marqué : 

This topic contains 4 réponses, has 2 voix.

Last updated by Dido Il y a 6 années et 1 mois.

Assisted by: Beda.

Auteur
Publications
#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:
hidden link

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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.