This error would suggest that there's an inconsistency at the database level - the record for your article index page claims to have child pages, but no such child pages exist in the database. There's no way of knowing for sure how this occurred - it may have been caused by an earlier error at the point of creating a page, or something being deleted from the database manually. Either way - running the command "./manage.py fixtree" should hopefully fix it.
On 25 Feb 2015, at 19:03, Shawn McElroy <
sh...@skift.io> wrote:
>
> I am asking this here, because I feel like I am probably just doing something incorrect, rather than seeing a real bug. Basically I am getting this error.
>
> AttributeError at /admin/pages/new/wagtail_articles/articleindex/3/
> 'NoneType' object has no attribute '_inc_path'
> Request Method: POST
> Request URL:
http://127.0.0.1:8111/admin/pages/new/wagtail_articles/articleindex/3/
> Django Version: 1.7.4
> Exception Type: AttributeError
> Exception Value: 'NoneType' object has no attribute '_inc_path'
> Exception Location: /home/vagrant/.virtualenvs/skiftio/lib/python3.4/site-packages/treebeard/mp_tree.py in process, line 361
> Python Executable: /home/vagrant/.virtualenvs/skiftio/bin/python
> Python Version: 3.4.2
> Python Path:
> ['/home/vagrant/skiftio',
> '/home/vagrant/modules/wagtail_articles',
> '/usr/local/lib/python34.zip',
> '/usr/local/lib/python3.4',
> '/usr/local/lib/python3.4/plat-linux',
> '/usr/local/lib/python3.4/lib-dynload',
> '/home/vagrant/.virtualenvs/skiftio/lib/python3.4/site-packages']
> Server time: Wed, 25 Feb 2015 08:56:04 +0000
>
>
>
> I have what seems to be a fairly basic setup. I have made my own module I am including via installed apps, which is just a new content type I am calling 'Articles'. I have it installed via pip using 'python setup.py develop'. I get this error, when trying to create an ArticleIndex page which would be a child of the home page, then trying to save. In the model for the Article, I have ArticleIndex, and ArticlePage which are for the parent and child pages respectively. You can see what I have in the models file for the module here:
https://github.com/SkiftCreative/wagtail_articles/blob/master/wagtail_articles/models.py
>
>
> Here is my directory structure:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>