Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


cms_page level field grows to 4294967295 and kills site. #1633

jessenash opened this Issue · 5 comments

4 participants


This is a bit of a noodle scratcher. Something indirect happens to the cms_page table in the database, loading up the 'level' field to it's highest possible integer, then crashes. I can't seem to find the cause, but I'm able to clear the error by replacing that funny value with something normal like 0, 1 or 2. Here's part of the dump. Any feedback would be appreciated.

Django Version:

Exception Type:

Exception Value:
cannot fit 'long' into an index-sized integer

Exception Location:
/home/ubuntu/.virtualenvs/h4h/lib/python2.6/site-packages/cms/forms/ in update_site_and_page_choices, line 50

Python Executable:

Python Version:


We'll need at the very least a complete traceback.

I assume your page tree isn't 4294967295 levels deep, right?


Ha, nope the tree level is never deeper than 3 or 4 for the entire site. I'll post a complete traceback the next time it comes up.


could this be some kind of overflow where something is subtracted from an unsigned 32-bit int? What database engine do you use?


hmm we're using mysql 3.23. Is it possible a user action can cause that field to subtract negative of 0? Is there a database contraint of some kind I can set to prevent that? Weird error.

@digi604 digi604 added this to the 3.X milestone

mptt removal should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.