0
votes

I have a search box in my drupal site.
The problem is that it's only visible to authenticated users and not to anonymous users.
In the settings, no roles are selected in order to display it to all users.
I have even checked by ticking all the roles' check boxes but still no luck.
Could someone help me fixing this problem?

Thanks

2

2 Answers

1
votes

Check if you have given permissions for anonymous users to use search in the Permissions page.

0
votes

I just experimented on my Drupal site, and an anonymous user can see the search block just fine when I add the default "Search Block" to my website and give permission to "Use search" to "anonymous user" and "authenticated user".

If you're doing the same thing, perhaps some of your custom code is messing up the search block.