question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible bug after updating to 2.5: IndexError: list index out of range

See original GitHub issue

I have recently updated one of my app to django 2.2 and wagtail 2.5. Everything works fine when browsing but if I try to edit a page, I get:

IndexError: list index out of range

The site is broken until I restart the development server. After running ./manage.py runserver I can browse again, but if I try to edit I get back to the same error.

If I fall back to django 2.1.8 / wagtail 2.4 everything works fine. My python version is 3.6.8

Could this be an issue introduced by wagtail 2.5? What am I missing? Unfortunately I cannot test wagtail 2.5 with Django 2.1.8 to rule out any problems with the newest django version.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
corwin39commented, May 22, 2019

I have installed new alpha version debug-toolbar from https://github.com/jazzband/django-debug-toolbar/releases/tag/2.0a1 and everithing works fine again

1reaction
peter-bradycommented, May 29, 2019

Adding django-debug-toolbar==2.0a1 to requirements.txt fixed this issue for me too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does "IndexError: list index out of range" when trying to ...
The error message line for an IndexError doesn't give you great information. You can see that you have a sequence reference that is...
Read more >
List Index Out of Range – Python Error Message Solved
You'll get the Indexerror: list index out of range error when iterating through a list and trying to access an item that doesn't...
Read more >
Python IndexError: List Index Out of Range [Easy Fix] - Finxter
If you're like me, you try things first in your code and fix the bugs as they come. One frequent bug in Python...
Read more >
Error: List Index out of range - When updating 11.3 Stable
The updater hangs on 67% for a long time then comes up with the error above. Current Version: FreeNAS-11.3-U5 Suggestions welcome.
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
Bug :2 - "How do I attach an ebuild. ... Bug:4404 - "IndexError: list index out of range on --pretend emerges" status:RESOLVED resolution:FIXED...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found