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

Marqué : 

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

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

Assigned support staff: 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!