Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor crashes on pages under construction. #337

Closed
rjsparks opened this issue Oct 9, 2023 · 1 comment · Fixed by #401 or #448
Closed

Editor crashes on pages under construction. #337

rjsparks opened this issue Oct 9, 2023 · 1 comment · Fixed by #401 or #448
Labels
contractor Ask contractor to do it

Comments

@rjsparks
Copy link
Member

rjsparks commented Oct 9, 2023

fwiw, the URL started with /live/

Internal Server Error: (some URL being worked on)

AttributeError at (that URL)
'StandardIndexPage' object has no attribute 'reverse_subpage'

Request Method: GET
Request URL: http://www.ietf.org/(that URL)

...

  File "/usr/local/lib/python3.10/site-packages/django/template/library.py", line 192, in render
    output = self.func(*resolved_args, **resolved_kwargs)
  File "/usr/local/lib/python3.10/site-packages/wagtail/contrib/routable_page/templatetags/wagtailroutablepage_tags.py", line 25, in routablepageurl
    routed_url = page.reverse_subpage(url_name, args=args, kwargs=kwargs)

Exception Type: AttributeError at (that URL)
Exception Value: 'StandardIndexPage' object has no attribute 'reverse_subpage'

Crash rate was high while page was being worked on (19 crashes in 2 minutes)

cc: @ghwood

@ghwood ghwood added the contractor Ask contractor to do it label Jan 23, 2024
@mgax
Copy link
Contributor

mgax commented Apr 3, 2024

I was able to reproduce the error by creating a BlogPage under /live/ (which is an IndexPage). While editing the blog page, the live preview was crashing, because the blog page's template is trying to render links to sibling blog posts using the {% routablepageurl %} template tag:

<a class="stretched-link" href="{% routablepageurl current.get_parent.specific 'all_entries' %}">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contractor Ask contractor to do it
Projects
None yet
3 participants