rapidpro / chpro-microsite

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Bug when adding Step Plugin #42

Closed mtrythall closed 6 years ago

mtrythall commented 6 years ago
Environment:

Request Method: POST
Request URL: http://localhost:8000/admin/cms/page/add-plugin/?delete-on-cancel&placeholder_id=28&plugin_type=StepPlugin&cms_path=%2Fget-started%2Fpreparation%2F&plugin_language=en&plugin=216

Django Version: 1.11.7
Python Version: 3.6.4
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sites',
 'djangocms_admin_style',
 'django.contrib.admin',
 'django.contrib.redirects',
 'cms',
 'menus',
 'treebeard',
 'sekizai',
 'filer',
 'easy_thumbnails',
 'djangocms_text_ckeditor',
 'djangocms_link',
 'cmsplugin_filer_image',
 'django_select2',
 'storages',
 'rh.apps.meta',
 'rh.apps.content',
 'rh.apps.icons',
 'rh.apps.case_studies',
 'rh.apps.steps']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
 'cms.middleware.utils.ApphookReloadMiddleware',
 'cms.middleware.user.CurrentUserMiddleware',
 'rh.middleware.BetterCurrentPageMiddleware',
 'cms.middleware.toolbar.ToolbarMiddleware']

Traceback:

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  57.         response = view_func(request, *args, **kwargs)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/contrib/admin/sites.py" in inner
  224.             return view(request, *args, **kwargs)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/views/decorators/clickjacking.py" in wrapped_view
  39.         resp = view_func(*args, **kwargs)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/cms/admin/placeholderadmin.py" in add_plugin
  367.         response = plugin_instance.add_view(request)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/views/decorators/clickjacking.py" in wrapped_view
  39.         resp = view_func(*args, **kwargs)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/djangocms_text_ckeditor/cms_plugins.py" in add_view
  260.                 request, form_url, extra_context

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/contrib/admin/options.py" in add_view
  1508.         return self.changeform_view(request, None, form_url, extra_context)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapper
  67.             return bound_func(*args, **kwargs)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/utils/decorators.py" in bound_func
  63.                 return func.__get__(self, type(self))(*args2, **kwargs2)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/contrib/admin/options.py" in changeform_view
  1408.             return self._changeform_view(request, object_id, form_url, extra_context)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/contrib/admin/options.py" in _changeform_view
  1447.             if all_valid(formsets) and form_validated:

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/forms/formsets.py" in all_valid
  461.         if not formset.is_valid():

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/forms/formsets.py" in is_valid
  321.         self.errors

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/forms/formsets.py" in errors
  295.             self.full_clean()

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/forms/formsets.py" in full_clean
  349.             self._errors.append(form.errors)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/forms/forms.py" in errors
  175.             self.full_clean()

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/forms/forms.py" in full_clean
  386.         self._post_clean()

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/forms/models.py" in _post_clean
  413.             self.instance.full_clean(exclude=exclude, validate_unique=False)

File "/Users/mtrythall/Projects/VirtualEnv/chpro-microsite-sIZBL0x0/lib/python3.6/site-packages/django/db/models/base.py" in full_clean
  1235.             self.clean()

File "/Users/mtrythall/Projects/LL/chpro-microsite/rh/apps/core/models.py" in clean
  68.         if self.get_link() and not self.link_text:

File "/Users/mtrythall/Projects/LL/chpro-microsite/rh/apps/core/models.py" in get_link
  53.             if ref_page.site_id != getattr(self.page, 'site_id', None):

Exception Type: AttributeError at /admin/cms/page/add-plugin/
Exception Value: 'StepLink' object has no attribute 'page'