Skip Navigation

[Resolved] AJAX refresh when changing any filter not working

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

Problem:

Product images do not display after submit the AJAX search form.

Solution:

Please try to upgrade all Toolset plugins of your website to the latest version, please test again, you can download them here:

https://toolset.com/account/downloads/

Relevant Documentation:

This support ticket is created 3 years, 10 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 10 replies, has 2 voices.

Last updated by kostaB 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#2025573

Tell us what you are trying to do? To create a radio filter

Is there any documentation that you are following? hidden link

Is there a similar example that we can see? Same video as above

What is the link to your site? hidden link

Currently behind a password wall. Will add credentials when given the chance.

Above the products grid you see these words:

all maxi midi mini

These are a stylized radio filter I made in the archive with Toolset. I minimized the radio input and hid it (not using display: none;}. This is not the reason this isn't working, I promise: I disabled my custom CSS, and it STILL did not work.

To be sure, I changed the form submit type and added a button. The filter subsequently did work. What doesn't work is when I change it back to 'AJAX refresh when changing any filter' and remove the submit button.

What important step, if any, am I missing?

#2025697

Hello,

The problem you mentioned above is abnormal, did you get any PHP/JS error?
Please check these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, deactivate all custom PHP/JS code snippets, and test again

2) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

3) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#2026491

Hi, thank you for your help and support. I initially thought I had done something wrong, it's unfortunate to hear it may be a bug. Sorry for the lengthy response time, I was dealing with a server issue.

Just so you know, I ended up doing everything (deactivating code snippets, plugins, reverting to the 2021 theme). It ended up working, but it produced one important error: the filter worked, but the product images in the archive wouldn't display. However, the filter randomly stopped working too again after a few minutes.

What I found to be the issue was that WP Rocket was loading important JS deferred. I subsequently made an exception for that JS file and now the AJAX filter does work! With one caveat; the product images still are not displaying. Regardless of what is deactivated or disabled.

Now, I am not getting any console error anymore on that page. Which is great, but that still further obfuscates what could be wrong.

I do have an error_log, but I would rather just provide you with login details if this is possible. My website requires many large and high quality images and copying that entire site would be completely unwieldy. I can provide the error log file information in the next private message.

Kind regards,

Kosta

#2026913

Thanks for the details, please provide your website credentials in below private message box, thanks

#2027999
blank-image.JPG

Thanks for the details, I can see the problem in your website, and I have checked those blank image HTML codes, Toolset Blocks plugin does output the image source URL correctly, see my screenshot blank-image.JPG

It might be other compatibility problem of your website, I need your permission to deactivate plugins/theme in your website, please backup your website first, then update here. thanks

#2028495

Hi, absolutely, do have a look. I've just deactivated my theme and reverted to 2021 as well as deactivated every plugin except Woo and Toolset, and it made no difference. But if there's anything you can spot, be my guest.

I'm presuming that the error in the error log does not explain the issue?

Either way, do proceed! Thank you.

#2029153

Thanks for the details, I am checking it in your website, will update here if find anything

#2029427

You are using outdated version of Toolset plugins, I have update all Toolset plugins of your website to the latest version, please test again, check if it is fixed, thanks

#2029505

Ah fantastic, the ticket's issue is resolved. Strange that I received no updates on new Toolset plugins however. Unfortunately, the rest of my site now appears to be broken. Though this can be down to some strange issue with WP Rocket, assuming you didn't do anything else.

Theoretically, if I were to reset my site to some backup point before WP Rocket started acting up, and I subsequently updated my Toolset plugins to the latest versions downloaded from the Toolset site, should my issue be resolved again and would I be able to test if Toolset is causing these recent bugs on my site?

#2029571

Oh yeah, now I see. When Toolset Woo Blocks is enabled, the contents of some product pages won't load. But only some pages. And I am getting FOUC issues in something from a content template too. This ought to be considered another ticket correct? The issue of this ticket, in terms of the Toolset plugins is solved either way. Thank you!

#2029837

My issue is resolved now. Thank you! I will be opening a ticket for another issue.