MarkE Posted December 19, 2023 Share Posted December 19, 2023 I'm probably being dim, but can anyone explain why $pages->get('/processwire/access/permissions/') returns a null page? See Tracy console below: Link to comment Share on other sites More sharing options...
bernhard Posted December 19, 2023 Share Posted December 19, 2023 I can't reproduce this behaviour. Both return the page properly. 2 Link to comment Share on other sites More sharing options...
MarkE Posted December 20, 2023 Author Share Posted December 20, 2023 On 12/19/2023 at 8:00 PM, bernhard said: I can't reproduce this behaviour Expand Thanks @bernhard. So I tried it in a different installation and it worked fine, so I'm left puzzling about what might be odd in the first case ? Link to comment Share on other sites More sharing options...
bernhard Posted December 20, 2023 Share Posted December 20, 2023 Maybe the permissions page has moved somehow? That would explain why name=permissions finds something and providing the path does not. Link to comment Share on other sites More sharing options...
MarkE Posted December 20, 2023 Author Share Posted December 20, 2023 On 12/20/2023 at 12:34 PM, bernhard said: Maybe the permissions page has moved somehow? Expand Nope. As you see, the parent is correct. I also copied the path directly from the settings tab of the page. Link to comment Share on other sites More sharing options...
bernhard Posted December 20, 2023 Share Posted December 20, 2023 Ah, true. Now I remember I checked that yesterday but didn't think of that any more ? Then I'm out of ideas ? Link to comment Share on other sites More sharing options...
MarkE Posted December 20, 2023 Author Share Posted December 20, 2023 On 12/20/2023 at 12:38 PM, bernhard said: Then I'm out of ideas Expand Me too. But this, which is even odder, may give some clues: Maybe a database corruption - I'll try Adminer. Link to comment Share on other sites More sharing options...
MarkE Posted December 20, 2023 Author Share Posted December 20, 2023 Solved @bernhard! Table pages_paths was missing all ids < 1017. Rebuilt as follows: $pagePaths = $modules->get("PagePaths"); $int = $pagePaths->rebuild(); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now