Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Mobile search icon (cache) and blank search page issue
- This topic has 7 replies, 2 voices, and was last updated 2 years, 12 months ago by
Ernest Marcinko.
-
AuthorPosts
-
May 31, 2023 at 9:56 am #42859
Presentise
ParticipantDear WPDreams,
We are having two minor issues, that we can’t seem to solve.
1. The mobile search icon sometimes shows and sometimes doesn’t. We figured it is because of the caching plugin (Lightspeed). Is there anything we can exclude so this works correctly?
2. If we click the search icon without anything filled in the search bar, we get a weird search result page with products that are no longer in the website. We have no idea where this comes from, could you point us in the right direction where we can fix this?
Regards,
Colin van den broek
May 31, 2023 at 11:55 am #42869Ernest Marcinko
KeymasterHi Colin,
1. I believe there is this option in Litespeed cache. That will recognize user agents and make separate caches for different browser types. That should resolve the issue.
2. By default the plugin redirects to the results page, that redirections seems to be all right. I see the same exact results for an empty query (by entering a space character) to the search bar.
These definitely exist as the plugin requests them via a WP_Query, but I suspect those might be draft or trashed or private items maybe? Check if the post statuses are correctly set on the search settings or on the index table panel if you are using that.If you are using the index table and these items were trashed programmatically and the
save_postorwp_insert_post hookswere not triggered, then the index table can’t update/remove the items. In that case try re-creating the index, that will solve the issue.June 1, 2023 at 10:55 am #42887Presentise
ParticipantHi Ernest,
1. is fixed! Thanks for this.
2. We tried all the options, but hasnt been resolved yet.
We also rebuild the index but the “empty” products are still in there.June 1, 2023 at 1:45 pm #42889Ernest Marcinko
Keymaster2. Can you please add temporary back-end and (s)FTP access so I can take a look at this directly from the back-end and code perspective?
June 6, 2023 at 3:39 pm #42974Presentise
ParticipantYou cannot access this content.
June 7, 2023 at 9:37 am #42994Ernest Marcinko
KeymasterThank you Colin!
I tested, but everything seems to be okay at the moment. I have entered an empty phrase, got to the results upage, clicked on every item and all of them directed to existing product pages. Has the issue been cleared?
June 8, 2023 at 7:21 am #43024Presentise
ParticipantHi Ernest,
Thanks for checking it out.
It seems to have partly been resolved, but we don’t know where these products are coming from.
Ideally, we would like to see a “no products have been found”, any idea why these products are showing up with an empty search phrase?
Best,
Colin
June 8, 2023 at 9:22 am #43029Ernest Marcinko
KeymasterSure!
If you see one, let me know what search phrase triggers it and I will find out where it’s coming from.
As for the empty search – it is intended to run a serch for an empty phrase, but you can set the plugin to not trigger at all unless there is a single character entered here.
-
AuthorPosts
- You must be logged in to reply to this topic.