Search not working
Autore: Paul Clarke
Visite 2463,
Followers 1,
Condiviso 0
Hi
Today I decided to add a search function to my website.
I have added the box to my page, but when I type something in the box and click search, no results are returned and I simply get the spinng loading icon.
I am using version: 12.0.3.19
website is at http://www.st-thomasmore.cheshire.sch.uk
Postato il
For working search function PHP must be enabled on webserver.
Hello Paul,
Try to verify the custom HTML code you entered in the project since it seems to be not correct and this could be the cause of the search issue. As example the code you added in the BODY tag doesn't belongs there.
Many thanks!
Autore
PHP is enabled on the server.
Claudio - What code?
I have a Facebook code snippet, a cookie complience script
Autore
I have moved the BODY TAG one out and it still has the same effect.
Hello Paul,
The website still contains errors in the html code as example:
</script
which should be </script>
There are further issues in the custom HTML code used in the project. You need to fix these and then you can proceed to test it again. You can also use the w3c validator to find then and fix these:
https://validator.w3.org
Start always with the first and proceed to fix it and then export it to test it again. If one code is wrong it can make appear also the below ones wrong while these are correct.
Many thanks!
Autore
I have validated the site now and it still failed. I then added a custom search from Google which works well.
Hello Paul,
I tested the internal search engine on your website and it works.
As example open:
http://www.st-thomasmore.cheshire.sch.uk/imsearch.php?search=vacancies
You will see it shows now the results.
It can take time to load since it uses the hosting server which, according to the type oh hosting and size of the website, can take longer to load.
Many thanks!