Skip Navigation

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

This thread is resolved. Here is a description of the problem and solution.

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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Dido 3 years, 8 months ago.

Assigned support staff: Beda.

Author
Posts
#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!