Node not found but you can edit?

Events happening in the community are now at Drupal community events on www.drupal.org.
thepocketgeek's picture

I was creating some subdomains for a few nodes this morning and I had a problem with a couple of nodes that "vanished" on me. When I tried to view the node - using the URL alias I created for it - I got a 403 Page not found error. I ended up just deleting the old nodes and recreating them. The strange thing was that I had to change the title of the nodes. If I named it the same I would get the error again.

I tried clearing the site cache to see if that would correct the problem but I was still getting the error. Has anyone else run into a similar problem?

Comments

403 is Permission Denied. Do

garethsprice's picture

403 is Permission Denied. Do you mean 404? And by subdomains, were you using the Domain module or setting up completely separate Drupal sites?

The 404-but-the-node-definitely-exists error can occur if you delete users and there are still nodes owned by the non-existent user ID. The node will appear in the node table and any views that just do a SELECT, but fail when going through node_load.

Try "UPDATE node SET uid=1" which will revert ownership of all nodes to admin. (Note: Do not do this on sites with user-generated content!).

Orlando, FL Web Developer | http://www.garethsprice.com/

Actually I was creating sub

thepocketgeek's picture

Actually I was creating sub domains using cPanel. All I did was create the sub domain and give it a redirect with an absolute path to the node I wanted.
I am not sure if that had anything to do with it but I figured I might as well mention what I was doing when the page vanished.
Since I have no user generated content on that site I can try the UPDATE suggestion.
Is that something that I need to do on the server itself or something that can be done from withing Drupal? I am using Host Gator and I don't have complete control over the server that I am using.

Use phpMyAdmin in your

garethsprice's picture

Use phpMyAdmin in your Hostgator control panel. Be sure to take a backup :)

Orlando, FL Web Developer | http://www.garethsprice.com/

Thanks. Will do.

thepocketgeek's picture

Thanks. Will do.

Florida

Group organizers

Group categories

Florida Topics

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: