2.2rc1 Adding plugins throws CSRF token failure #955

Closed
cro opened this Issue Aug 15, 2011 · 6 comments

Projects

None yet

3 participants

cro commented Aug 15, 2011

Installed a bare instance of 2.2rc1 to test it out. Usinq sqlite. Was able to syncdb and migrate fine, but when I created a test page and tried to add a plugin I got "CSRF Verification Failed."

Collaborator

I can't reproduce this locally - can you include: OS version (you never know...) and browser?

Collaborator
ojii commented Aug 16, 2011

as well as your MIDDLEWARE settings, Django version, what plugin you tried, whether it was using frontend edit or in /admin/.

cro commented Aug 16, 2011

Mac OS 10.7 (Lion), stock Python 2.7.1 in a virtualenv with --no-site-packages. Browsers tested were Safari 5.1 and Firefox 5.0.1. Saw the issue both in frontend edit and admin. Django version is 1.3. Any plugin I tried threw the error. Middleware settings are

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'cms.middleware.page.CurrentPageMiddleware',
    'cms.middleware.user.CurrentUserMiddleware',
    'cms.middleware.toolbar.ToolbarMiddleware',
    'cms.middleware.media.PlaceholderMediaMiddleware',
)
Collaborator
ojii commented Aug 16, 2011

what version of the CMS are you using? Looking at those middleware classes it looks hardly like 2.2rc1.

Collaborator

Just in case:

python manage.py shell

Then:

import cms
print cms.__version__
cro commented Aug 16, 2011

Well, I thought I was using 2.2rc1--Something odd happened when I setup the virtualenv and though Django 1.3 was installed in the ve site-packages, it was pulling an older 1.2 when the server was starting up. I'll close the issue, I was successful in creating a test instance this time.

@cro cro closed this Aug 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment