WebSite X5Help Center

 
Paul Clarke
Paul Clarke
User

Search not working  en

Автор: Paul Clarke
Просмотрено 2462, Подписчики 1, Размещенный 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

Размещено
7 Ответы
Serg Linds
Serg Linds
User

For working search function PHP must be enabled on webserver.

Читать больше
Размещено От 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!

Читать больше
Размещено От Claudio D.
Paul Clarke
Paul Clarke
User
Автор

PHP is enabled on the server.

Claudio - What code?

I have a Facebook code snippet, a cookie complience script

Читать больше
Размещено От Paul Clarke
Paul Clarke
Paul Clarke
User
Автор

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

Читать больше
Размещено От 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!

Читать больше
Размещено От Claudio D.
Paul Clarke
Paul Clarke
User
Автор

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

Читать больше
Размещено От 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!

Читать больше
Размещено От Claudio D.