WebSite X5Help Center

 
Paul Clarke
Paul Clarke
User

Search not working  en

Author: Paul Clarke
Visited 2444, Followers 1, Shared 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

Posted on the
7 ANSWERS
Serg Linds
Serg Linds
User

For working search function PHP must be enabled on webserver.

Read more
Posted on the from Serg Linds
Incomedia
Claudio D.
Incomedia

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!

Read more
Posted on the from Claudio D.
Paul Clarke
Paul Clarke
User
Author

PHP is enabled on the server.

Claudio - What code?

I have a Facebook code snippet, a cookie complience script

Read more
Posted on the from Paul Clarke
Paul Clarke
Paul Clarke
User
Author

I have moved the BODY TAG one out and it still has the same effect.

Read more
Posted on the from Paul Clarke
Incomedia
Claudio D.
Incomedia

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!

Read more
Posted on the from Claudio D.
Paul Clarke
Paul Clarke
User
Author

I have validated the site now and it still failed. I then added a custom search from Google which works well.

Read more
Posted on the from Paul Clarke
Incomedia
Claudio D.
Incomedia

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!

Read more
Posted on the from Claudio D.