Node_loads can fail if the user doesn'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't exist anymore (i.e. user is deleted by hand). Don'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 <<a href="mailto:enboig@gmail.com">enboig@gmail.com</a>><br>
Subject: [development] ghost nodes<br>
To: Drupal Development <<a href="mailto:development@drupal.org">development@drupal.org</a>><br>
Message-ID:<br>
<<a href="mailto:45a29f451003030222j13023250ta2284b2a16a8eed2@mail.gmail.com">45a29f451003030222j13023250ta2284b2a16a8eed2@mail.gmail.com</a>><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't get rebuild. I don'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 "page not<br>
found" 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 "page not found" message; is there any other table? how can I<br>
track this?<br>
- Why some nodes which get correct $grants when displaying them; don'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'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'imprimir aquest missatge, pensa en el medi ambient.<br>
<br></blockquote></div>
</div>