
sowdendigital(@sowdendigital)
3 Posts
Customers
Quote from sowdendigital on June 14, 2023, 09:54
Hi,
I cannot get the plugin working. The shortcode creates the filters, and that looks good. But nothing happens when the filters are clicked, and I see the following in the console log.
jQuery.Deferred exception: assignment to undeclared variable woof_current_values
jQuery.Deferred exception: assignment to undeclared variable woof_is_ajax
Uncaught ReferenceError: assignment to undeclared variable woof_current_values
Uncaught ReferenceError: assignment to undeclared variable woof_is_ajax
Any ideas How i can get things working?
Jack
Hi,
I cannot get the plugin working. The shortcode creates the filters, and that looks good. But nothing happens when the filters are clicked, and I see the following in the console log.
jQuery.Deferred exception: assignment to undeclared variable woof_current_values
jQuery.Deferred exception: assignment to undeclared variable woof_is_ajax
Uncaught ReferenceError: assignment to undeclared variable woof_current_values
Uncaught ReferenceError: assignment to undeclared variable woof_is_ajax
Any ideas How i can get things working?
Jack

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 14, 2023, 12:38
Hello Jack
Please try to disable JS optimization, clear all cache and do a test
Hello Jack
Please try to disable JS optimization, clear all cache and do a test

sowdendigital(@sowdendigital)
3 PostsTopic Author
Customers
Quote from sowdendigital on June 14, 2023, 16:35
Hi, already tryed this and its presently turned off. There is no cache on this site.
Jack
Hi, already tryed this and its presently turned off. There is no cache on this site.
Jack

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 15, 2023, 11:04
Hello Jack
I disabled you custom theme - https://c2n.me/4iKCi4m
So please write to the authors of this theme to disable JS optimization(deferred loading)
Hello Jack
I disabled you custom theme - https://c2n.me/4iKCi4m
So please write to the authors of this theme to disable JS optimization(deferred loading)

sowdendigital(@sowdendigital)
3 PostsTopic Author
Customers
Quote from sowdendigital on June 15, 2023, 11:33
Hi,
Thanks for the help. I had already removed most of the JS Optimisation code.
However, the following was causing the issue. I have now removed this, and things are working.
add_filter('script_loader_tag', 'clean_script_tag');
function clean_script_tag($input) {
$input = str_replace(" ", '', $input);
$input = str_replace(' ', '', $input);
return str_replace("'", '"', $input);
}
Thanks for the help.
Jack
Hi,
Thanks for the help. I had already removed most of the JS Optimisation code.
However, the following was causing the issue. I have now removed this, and things are working.
add_filter('script_loader_tag', 'clean_script_tag');
function clean_script_tag($input) {
$input = str_replace("", '', $input);
$input = str_replace(' ', '', $input);
return str_replace("'", '"', $input);
}
Thanks for the help.
Jack

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 15, 2023, 12:26
Great! Welcome;)
Great! Welcome;)