WebSite X5Help Center

 
Paul Clarke
Paul Clarke
User

Search not working  en

Auteur : Paul Clarke
Visité 2443, Followers 1, Partagé 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

Posté le
7 RéPONSES
Serg Linds
Serg Linds
User

For working search function PHP must be enabled on webserver.

Lire plus
Posté le de 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!

Lire plus
Posté le de Claudio D.
Paul Clarke
Paul Clarke
User
Auteur

PHP is enabled on the server.

Claudio - What code?

I have a Facebook code snippet, a cookie complience script

Lire plus
Posté le de Paul Clarke
Paul Clarke
Paul Clarke
User
Auteur

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

Lire plus
Posté le de 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!

Lire plus
Posté le de Claudio D.
Paul Clarke
Paul Clarke
User
Auteur

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

Lire plus
Posté le de 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!

Lire plus
Posté le de Claudio D.