By BilldaCat on
I had to update my sequences table manually because with my new installation (coming from vbDrupal), the counters were all set to 1, which obviously was a problem since I had a lot of existing nodes.
I set these to numbers past any existing node numbers, but now new content is not visible to users. I've tracked it down and found that entries aren't going into the node_access table. What do I need to do to fix this?
Comments
Rebuild permissions in Post settings
Have you tried rebuilding permissions in Administer » Content management » Post settings ?
http://example.com/?q=admin/content/node-settings
The Rebuild permissions button won't appear if your node_access table only has one row in it -- or if you haven't enabled an access control module. I suppose you could try rebuilding the table manually with node_access_rebuild() but I'd do it on a backup first.
How would I use that
How would I use that function?
You can run this by using
You can run this by using the Execute PHP block that the Devel module provides. Be sure to back up your database, and don't include the PHP tags when using the Execute PHP block.
You could also put that in a node (like a page) with PHP as your input format and click "Preview" instead of "Submit". Be careful with this approach, though. If you click "Submit" then you'll need to be able to delete the page when you're done with it without accidentally loading the node over and over.