Refresh result product subdomain -> products links = 404 not found
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Refresh result product subdomain -> products links = 404 not found
- This topic has 5 replies, 2 voices, and was last updated 8 years ago by
Ernest Marcinko.
-
AuthorPosts
-
July 18, 2018 at 12:49 pm #18708
sarah
ParticipantHi Ernest,
I have a problem with the search ajax pro because in this page we are redirect in product wich was deleted.
So we found a 404 error page:https://beoone.com/rechercher-un-produit-cours-en-ligne/
How can I do refresh the ajax pro of all products subdomain so that it will not show result of product wich are already deleted?
Is that a way to refresh one time per day all results?
Regards, Sarah
July 18, 2018 at 1:21 pm #18711Ernest Marcinko
KeymasterHi,
From what I can see, that is a product variation. That is interesting, as it should not exist once the parent product is permanently deleted. And even if the parent is unpublished, the plugin checks if the variation parent is indeed published.
Can you please add temporary FTP & Back-end details? I would like to debug through the plugin code to see how that variation still remained in the product database as published. Thank you!
July 18, 2018 at 6:09 pm #18719sarah
ParticipantYou cannot access this content.
July 19, 2018 at 11:26 am #18729Ernest Marcinko
KeymasterHi!
Thank you for the details, I think I know what the problem is.
The product variation permalinks are indeed incorrect. I have debugged the code section, which gets these permalinks, and I found, that WooCommerce is not active on the main site there. The product variation permalinks need to be requested from WooCommerce, however the request is made via the site where the search is currently running on (main site). Unfortunately this is not possible to resolve from the plugins perspective.
I recommend one of these 2 possible solutions:
1. Either remove the product variation filter/post type from search
2. Or Network activate WooCommerce, to be able to resolve the permalinks on the main site as well.Personally, I recommend solution 1. if the variations are not so importand in the live results list.
July 19, 2018 at 12:59 pm #18734sarah
ParticipantYou cannot access this content.
July 19, 2018 at 2:40 pm #18737Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.