Hi @sync4489
I guess you’ve tried the wp.hooks command because you read this other post, right?
https://wordpress.org/support/topic/stock-central-search-not-working-filters-disappeared/
However, looking at your browser’s console, I can’t see any error related to wp.hooks. So I guess your case is different.
What I can see in your screenshot is an error being thrown by a Chrome extension (not sure this is related though).
Might you try to identify which Chrome extension is failing and to disable it, please?
Also, might you try to do search using another browser (Firefox, for example).
Best Regards,
Salva.
Hi, the extension that “fails” is just MEGA.nz cloud, nothing to do with Atum or wordpress, etc.
I don’t know why it gives the error as it works flawlessly, anyway it’s there since years and always gives that message.
The problem arose when we upgraded from 1.8.3 to 1.8.4 (and now 1.8.5)
We also disabled the MEGA extension just to be sure, but nothing has changed, the search in the Stock Central does not work anymore.
We are considering to revert to 1.8.3, are there any problems or particular procedure we should be aware of before downgrading?
PS: yes, I mentioned the wp.hooks as I saw it in a another post…
Hi @sync4489
We need to understand why is it failing on your side because we aren’t able to replicate this.
If you don’t have any other error apart from that Chrome extension on your browser’s console, I’d suggest you check your PHP error logs.
If you need help to get them, please do read this article:
Debugging in WordPress
And, if there are no PHP errors, it would help if you can record a screencast video when I can watch the exact steps to try to reproduce this on my side, please.
Best Regards,
Salva.
Ok found the problem!
many months ago we had overriden the posts_search function for the native woocommerce product list to better suit our needs, and to avoid modifying the ATUM search (as it would not work with our custom code) we were intercepting the action ‘query-attachments’ from ATUM.
Apparently since the update >1.8.4 the search action has become ‘atum_fetch_stock_central_list’ so our code was running also on ATUM search, breaking its functionality.
So far so good, thanks anyway for your help :))
Oh, I see 🙂
You’re right. There was some refactoring on this part recently.
Anyway, good to know that you managed to fix the issue.
Best Regards,
Salva.