You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really want to use this Django CMS Versioning plugin. But the few times I tried, this error always occurred. I'm trying to ask here, hopefully there's a solution to this bug. Here are the details of the error and the setup I have:
An error appear on Django CMS front-end:
Error: Could not load node
On Terminal (Debug Mode On):
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/utils/decorators.py", line 188, in _view_wrapper
result = _process_exception(request, e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/utils/decorators.py", line 186, in _view_wrapper
response = view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper
response = view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/contrib/admin/sites.py", line 240, in inner
return view(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/cms/admin/pageadmin.py", line 1401, in get_tree
return HttpResponse(''.join(rows))
^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/cms/admin/pageadmin.py", line 1475, in get_tree_rows
yield render_page_row(page)
^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/cms/admin/pageadmin.py", line 1458, in render_page_row
return template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 171, in render
return self._render(context)
^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 1000, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 1000, in
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
return self.render(context)
^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/defaulttags.py", line 422, in render
return strip_spaces_between_tags(self.nodelist.render(context).strip())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 1000, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 1000, in
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
return self.render(context)
^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/classytags/core.py", line 142, in render
return str(self.render_tag(context, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/classytags/helpers.py", line 37, in render_tag
value = self.get_value_for_context(context, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/classytags/helpers.py", line 52, in get_value_for_context
return self.get_value(context, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/cms/templatetags/cms_admin.py", line 186, in get_value
template, publish_menu_items = page_content_admin_class.get_indicator_menu(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/djangocms_versioning/cms_config.py", line 371, in get_indicator_menu
status = page_content.content_indicator()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/djangocms_versioning/indicators.py", line 113, in content_indicator
elif versions[0].state == UNPUBLISHED:
~~~~~~~~^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/db/models/query.py", line 452, in getitem
return qs.result_cache[0]
~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
[19/Sep/2024 02:09:36] "GET /id/kedongdong/cms/pagecontent/get-tree/?language=id&nodeId=&site=1&=1726711775930 HTTP/1.1" 500 204848
The text was updated successfully, but these errors were encountered:
When djangocms-versioning is installed, it keeps track of the status of pages and other objects by adding a version object t to them. This is done automatically, but for your existing objects you will need to create versions objects.
Hello Everyone,
I really want to use this Django CMS Versioning plugin. But the few times I tried, this error always occurred. I'm trying to ask here, hopefully there's a solution to this bug. Here are the details of the error and the setup I have:
Python version: Python3.11
Virtual Env = active
Pip Freeze:
Django==5.0.8
django-classy-tags==4.1.0
django-cms==4.1.2
django-entangled==0.5.4
django-filer==3.1.4
django-formtools==2.5.1
django-fsm==2.8.2
django-parler==2.3
django-polymorphic==3.1.0
django-sekizai==4.1.0
django-treebeard==4.7.1
djangocms-admin-style==3.3.1
djangocms-attributes-field==3.0.0
djangocms-frontend==1.3.3
djangocms-history==2.2.3
djangocms-icon==2.1.0
djangocms-picture==4.1.1
djangocms-text-ckeditor==5.1.5
djangocms-versioning==2.0.2
An error appear on Django CMS front-end:
Error: Could not load node
On Terminal (Debug Mode On):
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/utils/decorators.py", line 188, in _view_wrapper
result = _process_exception(request, e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/utils/decorators.py", line 186, in _view_wrapper
response = view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/views/decorators/cache.py", line 80, in _view_wrapper
response = view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/contrib/admin/sites.py", line 240, in inner
return view(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/cms/admin/pageadmin.py", line 1401, in get_tree
return HttpResponse(''.join(rows))
^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/cms/admin/pageadmin.py", line 1475, in get_tree_rows
yield render_page_row(page)
^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/cms/admin/pageadmin.py", line 1458, in render_page_row
return template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 171, in render
return self._render(context)
^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 163, in _render
return self.nodelist.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 1000, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 1000, in
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
return self.render(context)
^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/defaulttags.py", line 422, in render
return strip_spaces_between_tags(self.nodelist.render(context).strip())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 1000, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 1000, in
return SafeString("".join([node.render_annotated(context) for node in self]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/template/base.py", line 961, in render_annotated
return self.render(context)
^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/classytags/core.py", line 142, in render
return str(self.render_tag(context, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/classytags/helpers.py", line 37, in render_tag
value = self.get_value_for_context(context, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/classytags/helpers.py", line 52, in get_value_for_context
return self.get_value(context, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/cms/templatetags/cms_admin.py", line 186, in get_value
template, publish_menu_items = page_content_admin_class.get_indicator_menu(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/djangocms_versioning/cms_config.py", line 371, in get_indicator_menu
status = page_content.content_indicator()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/djangocms_versioning/indicators.py", line 113, in content_indicator
elif versions[0].state == UNPUBLISHED:
~~~~~~~~^^^
File "/home/hape/SCRIPTS/Script-Python/DJANGO/webapp-gsa/venv/lib/python3.11/site-packages/django/db/models/query.py", line 452, in getitem
return qs.result_cache[0]
~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
[19/Sep/2024 02:09:36] "GET /id/kedongdong/cms/pagecontent/get-tree/?language=id&nodeId=&site=1&=1726711775930 HTTP/1.1" 500 204848
The text was updated successfully, but these errors were encountered: