'js_search_filter' function wasn't found

Posted in: Newsmag
Post count: 114

Hi,

I tested the ‘Start SEO data optimization’ on Yoast SEO and it failed. The support said it was something at my side.

My Hoster said:

The error reports that ‘js_search_filter’ function wasn’t found. I see it was called by the Theme in this file: wp-content/themes/Newsmag-child/functions.php
There were no other errors or warning in PHP or Apache log during the process.

and gave me this info:

{…}
​component: "Plugin: wordpress-seo-premium"
​file: "wp-includes/class-wp-hook.php"
​key: "72ad45a5e822047537248a8e135cb3a8"
​line: 292
​message: "call_user_func_array() expects parameter 1 to be a valid callback, function 'js_search_filter' not found or invalid function name"
​stack: Array(4) [ "do_action_ref_array('pre_get_posts')", "WP_Query->get_posts()", "Yoast\\W\\S\\I\\A\\Admin_Columns_Cache_Integration->fill_cache()", … ]
​type: "warning"
​<prototype>: Object { … }

What can I do to call the js_search_filter in the functions.php?

Thank you in advance and best regards,
Luke

Post count: 35449

Hi,
The code that you report that is set in child theme is not coming from our theme, that code was set there by someone. By default the functions from child theme has only this code in it https://i.imgur.com/RRP7mBY.png
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.