Node_loads can fail if the user doesn&#39;t exist in the users table. Node_load does a INNER JOIN users ON u.uid = n.uid. That will fail if the users.uid doesn&#39;t exist anymore (i.e. user is deleted by hand). Don&#39;t know if that is the case for you but something along those lines maybe.<div>
<br></div><div>The node access rebuild can be a little sensitive: <a href="http://drupal.org/node/478946">http://drupal.org/node/478946</a><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Message: 2<br>
Date: Wed, 3 Mar 2010 11:22:53 +0100<br>
From: Llu?s &lt;<a href="mailto:enboig@gmail.com">enboig@gmail.com</a>&gt;<br>
Subject: [development] ghost nodes<br>
To: Drupal Development &lt;<a href="mailto:development@drupal.org">development@drupal.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:45a29f451003030222j13023250ta2284b2a16a8eed2@mail.gmail.com">45a29f451003030222j13023250ta2284b2a16a8eed2@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
I am developing an access module and when rebuilding my node_access<br>
table some nodes don&#39;t get rebuild. I don&#39;t know the cause but when<br>
trying to analyse them with devel access node module I have discovered<br>
that some of them are valid and some other show me the &quot;page not<br>
found&quot; message.<br>
So all of this have raised me 2 questions:<br>
- ghost nodes: why nodes which are in {node} and {node_revisions} show<br>
me a &quot;page not found&quot; message; is there any other table? how can I<br>
track this?<br>
- Why some nodes which get correct $grants when displaying them; don&#39;t<br>
get them saved when rebuilding permission table?<br>
<br>
Any hint is welcome. I ask both things together because I think they<br>
may be related as I am working with custom nodes hardcoded by myself.<br>
<br>
--<br>
*Les normes hi s?n perqu? hi pensis abans de saltar-te-les<br>
*La vida ?s com una taronja, qu? esperes a exprimir-la?<br>
*Si creus que l&#39;educaci? ?s cara, prova la ignor?ncia.<br>
*La vida ?s com una moneda, la pots gastar en el que vulguis per?<br>
nom?s una vegada.<br>
*Abans d&#39;imprimir aquest missatge, pensa en el medi ambient.<br>

<br></blockquote></div>
</div>