Forums › Forums › Search & Filter Pro › “?” Being stripped out of the results URL
Tagged: caching, cdn, missing ? in string, stripping query string, V3
- This topic has 18 replies, 2 voices, and was last updated 4 years, 2 months ago by Trevor.
-
Anonymous(Private) October 2, 2020 at 5:24 pm #261776
Hello,
I am running into an odd issue. I have a search form in place on a taxonomy template with a bunch of different filters. I have a production environment and a staging environment on Kinsta with this website. The form works perfectly on staging (No CDN in place but WP Rocket is enabled). On Production it’s not working as the intended difference in the environment is the Kinsta CDN is enabled.
When looking at the rendered source code of the form I see some differences as well between the two. On the production environment the form action is missing as well as this data-attribute: data-current-taxonomy-archive=”business_categories”>
I have checked the settings in both environments to ensure the forms are the same, and they are. Are there any known conflicts with running a CDN, WP Rocket and or Kinsta’s caching?
Thanks!
Trevor(Private) October 5, 2020 at 11:55 am #261839The question mark missing is most often a result of the Results URL being missing in the form setup, or a problem with Permalinks (just opening these and resaving can sometimes fix it).
CDN and/or caching should not be an issue, but they can cause problems (especially WP Rocket, as it is very complex to setup).
It can also be caused by our JavaScript not working correctly. WP Rocket can cause this, especially if you are caching or combining JavaScripts.
It is best to disable the CDN and WP Rocket, and any other optimization, then test.
Anonymous(Private) October 5, 2020 at 4:33 pm #261928Hey Trevor,
So here is what I have tried so far:
1.I updated Kinsta staging to the latest copy of Production to see if caching was the issue. And now staging doesn’t work.
2. I have disabled WP Rocket, Kinsta Cache & CDN.
3. Re-installed Search Filter Pro
4. Re-built the index of the search
5. Re-saved the permalinks
6. Deleted the cache folder on the server
7. Changed to default WP theme
8. Disabled any sort of tracking/3rd party scripts in staging (not that I think they would have interfered but just crossing all my T’s).
9. No console errors appearing.
10. Re-made the search formI think I am out of ideas on this one. Any other suggestions?
-
AuthorPosts