{"action":"created","issue":{"url":"https://api.github.com/repos/wagtail/wagtail/issues/4252","repository_url":"https://api.github.com/repos/wagtail/wagtail","labels_url":"https://api.github.com/repos/wagtail/wagtail/issues/4252/labels{/name}","comments_url":"https://api.github.com/repos/wagtail/wagtail/issues/4252/comments","events_url":"https://api.github.com/repos/wagtail/wagtail/issues/4252/events","html_url":"https://github.com/wagtail/wagtail/issues/4252","id":295575506,"number":4252,"title":"Unable to move pages into the sublevels: 'NoneType' object has no attribute 'allowed_subpage_models'","user":{"login":"narunask","id":12384868,"avatar_url":"https://avatars0.githubusercontent.com/u/12384868?v=4","gravatar_id":"","url":"https://api.github.com/users/narunask","html_url":"https://github.com/narunask","followers_url":"https://api.github.com/users/narunask/followers","following_url":"https://api.github.com/users/narunask/following{/other_user}","gists_url":"https://api.github.com/users/narunask/gists{/gist_id}","starred_url":"https://api.github.com/users/narunask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narunask/subscriptions","organizations_url":"https://api.github.com/users/narunask/orgs","repos_url":"https://api.github.com/users/narunask/repos","events_url":"https://api.github.com/users/narunask/events{/privacy}","received_events_url":"https://api.github.com/users/narunask/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T16:22:11Z","updated_at":"2018-02-08T17:01:38Z","closed_at":null,"author_association":"NONE","body":"Found a bug? Please fill out the sections below. 👍\r\n\r\n### Issue Summary\r\n\r\nI'm unable to move pages into the sublevels of the other pages.\r\n\r\n### Steps to Reproduce\r\n\r\nPlease create the following tree of pages:\r\n\r\n```\r\nroot\r\n├── page1\r\n│   └── sub1\r\n└── page2\r\n```\r\n\r\nTry to move `sub1` into the `page2`. Enjoy the error page.\r\n\r\n### Technical details\r\n\r\n```\r\nwagtail==1.13.1\r\n```\r\n\r\n```\r\nEnvironment:\r\n\r\n\r\nRequest Method: GET\r\nRequest URL: http://0.0.0.0:8000/admin/pages/16/move/6/\r\n\r\nDjango Version: 1.11.9\r\nPython Version: 3.5.3\r\nInstalled Applications:\r\n['transit',\r\n 'home',\r\n 'search',\r\n 'wagtail.wagtailforms',\r\n 'wagtail.wagtailredirects',\r\n 'wagtail.wagtailembeds',\r\n 'wagtail.wagtailsites',\r\n 'wagtail.wagtailusers',\r\n 'wagtail.wagtailsnippets',\r\n 'wagtail.wagtaildocs',\r\n 'wagtail.wagtailimages',\r\n 'wagtail.wagtailsearch',\r\n 'wagtail.wagtailadmin',\r\n 'wagtail.wagtailcore',\r\n 'wagtail.contrib.modeladmin',\r\n 'wagtailmenus',\r\n 'modelcluster',\r\n 'taggit',\r\n 'django.contrib.admin',\r\n 'django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.messages',\r\n 'django.contrib.staticfiles',\r\n 'wagtail.contrib.wagtailstyleguide',\r\n 'debug_toolbar',\r\n 'django_extensions']\r\nInstalled Middleware:\r\n['django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.contrib.messages.middleware.MessageMiddleware',\r\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\r\n 'django.middleware.security.SecurityMiddleware',\r\n 'wagtail.wagtailcore.middleware.SiteMiddleware',\r\n 'wagtail.wagtailredirects.middleware.RedirectMiddleware',\r\n 'debug_toolbar.middleware.DebugToolbarMiddleware']\r\n\r\n\r\n\r\nTraceback:\r\n\r\nFile \"/home/narunas/GIT/project/www/pyenv/lib/python3.5/site-packages/django/core/handlers/exception.py\" in inner\r\n  41.             response = get_response(request)\r\n\r\nFile \"/home/narunas/GIT/project/www/pyenv/lib/python3.5/site-packages/django/core/handlers/base.py\" in _get_response\r\n  187.                 response = self.process_exception_by_middleware(e, request)\r\n\r\nFile \"/home/narunas/GIT/project/www/pyenv/lib/python3.5/site-packages/django/core/handlers/base.py\" in _get_response\r\n  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n\r\nFile \"/home/narunas/GIT/project/www/pyenv/lib/python3.5/site-packages/django/views/decorators/cache.py\" in _cache_controlled\r\n  43.             response = viewfunc(request, *args, **kw)\r\n\r\nFile \"/home/narunas/GIT/project/www/pyenv/lib/python3.5/site-packages/wagtail/wagtailadmin/urls/__init__.py\" in wrapper\r\n  96.             return view_func(request, *args, **kwargs)\r\n\r\nFile \"/home/narunas/GIT/project/www/pyenv/lib/python3.5/site-packages/wagtail/wagtailadmin/decorators.py\" in decorated_view\r\n  31.             return view_func(request, *args, **kwargs)\r\n\r\nFile \"/home/narunas/GIT/project/www/pyenv/lib/python3.5/site-packages/wagtail/wagtailadmin/views/pages.py\" in move_choose_destination\r\n  708.         target.can_choose = page_perms.can_move_to(target)\r\n\r\nFile \"/home/narunas/GIT/project/www/pyenv/lib/python3.5/site-packages/wagtail/wagtailcore/models.py\" in can_move_to\r\n  1804.         if not self.page.specific.can_move_to(destination):\r\n\r\nFile \"/home/narunas/GIT/project/www/pyenv/lib/python3.5/site-packages/wagtail/wagtailcore/models.py\" in can_move_to\r\n  998.         return self.can_exist_under(parent)\r\n\r\nFile \"/home/narunas/GIT/project/www/pyenv/lib/python3.5/site-packages/wagtail/wagtailcore/models.py\" in can_exist_under\r\n  983.         return cls in parent.specific_class.allowed_subpage_models()\r\n\r\nException Type: AttributeError at /admin/pages/16/move/6/\r\nException Value: 'NoneType' object has no attribute 'allowed_subpage_models'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/wagtail/wagtail/issues/comments/364178458","html_url":"https://github.com/wagtail/wagtail/issues/4252#issuecomment-364178458","issue_url":"https://api.github.com/repos/wagtail/wagtail/issues/4252","id":364178458,"user":{"login":"gasman","id":85097,"avatar_url":"https://avatars2.githubusercontent.com/u/85097?v=4","gravatar_id":"","url":"https://api.github.com/users/gasman","html_url":"https://github.com/gasman","followers_url":"https://api.github.com/users/gasman/followers","following_url":"https://api.github.com/users/gasman/following{/other_user}","gists_url":"https://api.github.com/users/gasman/gists{/gist_id}","starred_url":"https://api.github.com/users/gasman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasman/subscriptions","organizations_url":"https://api.github.com/users/gasman/orgs","repos_url":"https://api.github.com/users/gasman/repos","events_url":"https://api.github.com/users/gasman/events{/privacy}","received_events_url":"https://api.github.com/users/gasman/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T17:01:38Z","updated_at":"2018-02-08T17:01:38Z","author_association":"COLLABORATOR","body":"Thanks for the report, @narunask. Just to confirm: have you been able to reproduce this error by following the 'Steps to Reproduce' on a **completely new** site created with `wagtail start my_project`, or does it only occur on your existing project? (Often, we find that errors like this are caused by something the developer has previously done on their project, such as deleting a page model - in this case, we need to know the full sequence of events before we can investigate.)"}}
{"actor":{"display_login":"gasman"}}