Skip to main content

DrupalCon San Francisco 2010

Acquia: The S-Files: When node_load won't load, and the anonymous user has vanished

Tech Support Case Studies

Use these two SQL commands to repair your Drupal 6 site to restore the anonymous user database record:

INSERT INTO users (name, mail) VALUES ('', '');UPDATE users SET uid=0 WHERE name='';

The symptoms you'll see that tip you off that this is needed:

node_load() is not loading nodes that you can prove are in the node table.
node_delete() is not deleting ...

Planet Drupal's picture

About this CMS Enthusiast

Planet Drupal aggregates Drupal-related blog posts pertaining to the community at large (code, advocacy, marketing, infrastructure etc.). This feed originates at Drupal.org.