ManagementForm data is missing or has been tampered with???

1,372 views
Skip to first unread message

Nelson Varela

unread,
Apr 23, 2013, 5:19:22 AM4/23/13
to django-...@googlegroups.com
Suddenly, after 7 weeks, I get this error

ValidationError: [u'ManagementForm data is missing or has been tampered with']


It worked fine for serveral weeks. I did not change a thing. This happends when I'm trying to save a page.

Stacktrace (most recent call last): File "django/core/handlers/base.py", line 115, in get_response response = callback(request, *callback_args, **callback_kwargs) File "django/contrib/admin/options.py", line 372, in wrapper return self.admin_site.admin_view(view)(*args, **kwargs) File "django/utils/decorators.py", line 91, in _wrapped_view response = view_func(request, *args, **kwargs) File "django/views/decorators/cache.py", line 89, in _wrapped_view_func response = view_func(request, *args, **kwargs) File "django/contrib/admin/sites.py", line 202, in inner return view(request, *args, **kwargs) File "feincms/module/page/modeladmins.py", line 167, in change_view return super(PageAdmin, self).change_view(request, object_id, **kwargs) File "feincms/admin/item_editor.py", line 229, in change_view return super(ItemEditor, self).change_view(request, object_id, **kwargs) File "django/utils/decorators.py", line 25, in _wrapper return bound_func(*args, **kwargs) File "django/utils/decorators.py", line 91, in _wrapped_view response = view_func(request, *args, **kwargs) File "django/utils/decorators.py", line 21, in bound_func return func(self, *args2, **kwargs2) File "django/db/transaction.py", line 223, in inner return func(*args, **kwargs) File "django/contrib/admin/options.py", line 1100, in change_view queryset=inline.queryset(request)) File "django/forms/models.py", line 720, in __init__ queryset=qs, **kwargs) File "django/forms/models.py", line 441, in __init__ super(BaseModelFormSet, self).__init__(**defaults) File "django/forms/formsets.py", line 56, in __init__ self._construct_forms() File "django/forms/formsets.py", line 123, in _construct_forms for i in xrange(min(self.total_form_count(), self.absolute_max)): File "django/forms/formsets.py", line 97, in total_form_count return self.management_form.cleaned_data[TOTAL_FORM_COUNT] File "django/forms/formsets.py", line 85, in management_form raise ValidationError('ManagementForm data is missing or has been tampered with')

Does anyone has a clue?

I'm using django 1.5 and FeinCMS 1.7.0

Simon Meers

unread,
Apr 23, 2013, 5:33:42 AM4/23/13
to django-feincms
If you're able to reproduce the error, inspect the POST data being sent. You'll probably find that one of your formsets is failing to fully render due to an exception being silently swallowed somewhere, possibly due to a recent change in data/relationships.


--
You received this message because you are subscribed to the Google Groups "Django FeinCMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-feincm...@googlegroups.com.
To post to this group, send an email to django-...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msg/django-feincms/-/K-RifKX6tgUJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Nelson Varela

unread,
Apr 23, 2013, 5:58:09 AM4/23/13
to django-...@googlegroups.com
This is strange. the POST data is (i'm using Sentry):

'<unavailable>'


Also strange, this happens only on production server. I don't get this error on my local machine (using debug is false + nginx)

Simon Meers

unread,
Apr 23, 2013, 6:00:27 AM4/23/13
to django-feincms
maybe inspect it from the client side then, using browser developer tools


To view this discussion on the web, visit https://groups.google.com/d/msg/django-feincms/-/UU1MriPSDFgJ.
Reply all
Reply to author
Forward
0 new messages