sms Posted January 18, 2021 Share Posted January 18, 2021 Hello to the forum, since recently I get this notice when I create a new page with definded parent templates and children templates: Notice: Trying to get property 'noChildren' of non-object in D:\xampp\htdocs\processwire-dev-3.0.170\wire\modules\PagePermissions.module on line 821 Line 821 of PagePermissions.module says: if($page->template->noChildren) { ... Any idea of what I could do or causes this notice? Thank you very much in advance. Link to comment Share on other sites More sharing options...
Kholja Posted March 30, 2021 Share Posted March 30, 2021 This notice can happen if you use a page reference field in your template which has a wrong defined (i.e. deleted) parent page dependency. In my case I had a blog-post template which contained a page reference field to category pages. Additionally I had a parent page defined containing the categories. The error occured when I deleted this parent page. 1 Link to comment Share on other sites More sharing options...
sms Posted April 15, 2021 Author Share Posted April 15, 2021 Sorry for my late reply, so much to do. I just had to write to you cause your idea helped me thinking in the right direction. Thanks again! ? 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