Persistent 'Welcome to Drupal' for anonymous users

Last modified: December 18, 2007 - 02:26

When anonymous users see the 'Welcome to Drupal' message on the frontpage (?q=node) even though you have promoted nodes to the frontpage, you may experience an access problem. This is usually the result of uninstalling an access module* without disabling it properly.

First, you have to exclude other possible causes. Make sure:

  • anonymous users have 'access content' permission
  • a node has been promoted to the front page OR you have set the front page path on the settings page

If the above conditions have been met, you may use the following SQL queries to reset the node_access table. You can run these from the command line or in phpmyadmin by clicking on the SQL tab of your right hand pane and pasting the querries into the text area, then clicking go.

Warning: the following SQL queries will reset the entire node access table:

TRUNCATE node_access;

This query deletes all access rules. The next query grants the 'view' permission to all nodes.

INSERT INTO node_access (nid, gid, realm, grant_view, grant_update, grant_delete) VALUES (0, 0, 'all', 1, 0, 0);

* For example: taxonomy access, organic groups, nodeprivacy by role, simple access

 
 

Drupal is a registered trademark of Dries Buytaert.