Hello, I am having an issue. Page Not Found. However the I have checked the node exists in node_revision table http://www.muet.edu.pk/node/152
I also had the permissions rebuilt but it still says page not found. This is the first time I have this strange issue with drupal, Can anybody help?

Comments

Most likely it's a grants or

Most likely it's a grants or permissions error. Log in as user 1, and see if you are able to view the node. If you aren't, then you have a problem on your hands! If you are able to see it as user 1, you can install the Devel Node Access module (comes bundled with the devel module), enable the relevant block that this module provides, and use this to track down the problem.

Interested in hiring us? jaypan.com

I am already logged as user

I am already logged as user 1. I can see the node in content section and in database but when I click to view or edit it, it doesnt loads and give me page not found. I am going to enable devel and try to see if I can solve the problem

This is what Node_access

This is what Node_access Summary tells me

Legacy Nodes

You have 1 (this has hyperlink to http://www.muet.edu.pk/devel/node_access/view/NULL when I click on it "Page not found" comes in) nodes in your node table which are not represented in your node_access table. If you have an access control module installed, these nodes may be hidden from all users. This could be caused by publishing nodes before enabling the access control module. If this is the case, manually updating each node should add it to the node_access table and fix the problem.

Summary by Realm

The following realms grant limited access to some specific nodes.

Protected Nodes
realm private nodes
term_access 542

led grow light

[url=http://www.cidly.com].carol..[/url]

Above is spam.

Above is spam.

Interested in hiring us? jaypan.com

LED grow lights offer many

LED grow lights offer many advantages over traditional grow light systems And realize many unexpected cost-savings.

More spam. The last post I

More spam. The last post I marked as spam is still ther almost a month later. We really need a report button in this site.

Interested in hiring us? jaypan.com

Just found out that I cant

Just found out that I cant unpublish this node or delete it while still i am user 1
Thats Just great! Anybody?

Try going to Admin -> content

Try going to Admin -> content -> post settings and rebuild the access table (or whatever it's called there). Since the node is missing in the node access table, this should theoretically add it back into the table. Theoretically.

Interested in hiring us? jaypan.com

Yeah already did this many

Yeah already did this many times but NO LUCK :(

Try disabling then

Try disabling then re-enabling the module that is implementing the node access.

Interested in hiring us? jaypan.com

Nope! It doesnt work. I think

Nope! It doesnt work. I think I have a similar problem to this one http://drupal.org/node/747816
or it somehow needs to be fixed via database.
I can recreate that content, if only I can delete it in the first place.
I need to know what tables need to checked for node id 152, in other words what tables have the nodes (nid) information as I might leave out something and latter on it will create even more problems

The problem is that you are

The problem is that you are missing a row in the node access table. This needs to be regenerated. If you turn off the node access module, then the node access table will be cleared. Check if you can see the node at this point (you should be able to see it). Then you can delete the node, re-enable your node access, and then re-create the node.

The page you linked to was a different problem, as it didn't appear to have anything to do with the node access table (though to be fair, I only skimmed it).

Interested in hiring us? jaypan.com

But I dont have Nodeaccess

But I dont have Nodeaccess module installed. I have taxonomy access module installed.
And I can see the node listed on content page /admin/content/node and when I perform any action on it like unpublish it, it appears to be executed but the node listed on content page still remains the same. I also tried deleting it and drupal gave me a success on deleting but it still shows up on content page. If I edit or view the page it gives me the usual page not found

Is it possible that I might

Is it possible that I might have installed nodeaccess module during development and it left the some tables in database?
is Node_access table added by drupal core? or is it from nodeaccess module. I think its drupal's

By node access module, I mean

By node access module, I mean a module that provides not access, not a module named node access. Drupal has a node grants API system that controls node access (it's actually a second layer of access control, but we can ignore that). Core provides the {node_access} table, and any function that is making queries to get NIDs is supposed to run the query through the function db_rewrite_sql(). This function re-writes the SQL to check if the user is allowed to see the node by comparing it with the {node_access} table.

When you install a module that implements hook_node_access_records(), when a node is saved, Drupal adds rows to the {node_access} table for that node, based on the return value from hook_node_access_records(). This is the value that db_rewrite_sql() cross references.

So any module that implements hook_node_access_records() is a node access module. In your case, that is the taxonomy access module - and maybe others. But it's not good to use more than one node access module as they can conflict, so you need to be careful with that.

The problem, according to the error message you posted, is that one of your nodes doesn't have a value in the node access records table. So you need to edit and re-save it, which will then add the rows to the {node_access} table. But you are not able to do that because of the problem at hand. This is why you need to disable the module and try to make some changes in that state.

DO

Interested in hiring us? jaypan.com

Yes thank you for the

Yes thank you for the explanation, very helpful indeed.
btw actually I have 3 entries in node_access table for node 152 and they all have 1 in grant_view column

Oh... then that error you

Oh... then that error you posted was a different issue altogether. Did you try disabling the taxonomy access module and accessing the node?

Interested in hiring us? jaypan.com

Yes sir I did. But it didnt

Yes sir I did. But it didnt work, I still couldnt delete or view it. but it still listed on content's page

It sounds like you've got a

It sounds like you've got a bit of a problem!

The easiest thing may be just to delete it altogether rather than trying to fix. To do this, enable the PHP input filter module, create a node, and set the following PHP in the body:

<?php
node_delete
(152);
?>

Select the PHP input format, then click 'save'. This should delete the node (look in the {node} table to confirm). Then edit the node you just created and click delete. Alternatively, the devel module allows you to execute custom PHP code without creating a node, so you could use the same PHP as above there as well.

Sorry, I don't have any more answers than that!

Interested in hiring us? jaypan.com

I just did that but it still

I just did that but it still couldn't be deleted.
Well thanks for all your help.

I just found out the

I just found out the node_load method is not loading my desired node i.e. 152

<?php
$node
= node_load($nid, NULL, TRUE);
drupal_set_message(t('%n has been loaded.', array('%n' => $node->nid)));
?>

it gives me only "has been loaded." message
any other node such 55, 153 get loaded and gives proper nid that "55 has been loaded"

I think I should ask this in

I think I should ask this in development forum

nobody click here