By slnm on
I'm in a weird situation. I have a node. When I see it in the content management section of admin and I click on either its title or its edit link I get "Page not found."
I've tried deleting it this way:
$nid = 44441 ;
$node = node_load($nid);
$result = db_query("delete from {node} where nid = %d", $node->nid) ;
print "result=$result\n";
Result is 1 which should mean success, right? Well, the node is still there.
This snippet of code confirms the node is still there as does going back to the content admin page.
$result = db_query("SELECT nid FROM {node} WHERE type='%s'",$node_type);
while ($row = db_fetch_object($result)){
print $row->nid . "\n";
}
Any ideas on how to get rid of this "stuck" node?
Thanks.
Comments
And what happens if you just
And what happens if you just check the box next to the content, select "Delete" from the Update options, and then click Delete?
I tried that. Drupal says it
I tried that. Drupal says it deleted the record but it's still there when I go back to the content admin page.
Resolved
This worked:
I'm having the same issue -
I'm having the same issue - how/where did you run this command?
Thanks,
CarbonPig