Note that there are some explanatory texts on larger screens.

plurals
  1. POMultiValueDictKeyError Django CMS - Key 'language' not found in QueryDict
    primarykey
    data
    text
    <p>My Django CMS site is suddenly unable to publish pages or add plugins due to the 'language' not present in the post. I've never seen this issue before and I'm not sure how to fix it. The traceback is below.</p> <p>Django version 1.4.5</p> <p>Django CMS version 2.4.2</p> <pre><code>"Key 'language' not found in &lt;QueryDict: {u'placeholder': [u'1434'], u'plugin_type': [u'TextPlugin']}&gt;" Request Method: POST Request URL: http://domain.com/admin/cms/page/495/add-plugin/ Django Version: 1.4.5 Exception Type: MultiValueDictKeyError Exception Value: "Key 'language' not found in &lt;QueryDict: {u'placeholder': [u'1434'], u'plugin_type': [u'TextPlugin']}&gt;" Exception Location: /var/www/.virtualenvs/domain.com/lib/python2.6/site-packages/django/utils/datastructures.py in __getitem__, line 258 Python Executable: /var/www/.virtualenvs/domain.com/bin/python Python Version: 2.6.6 Python Path: ['/var/www/domain.com/app', '/var/www/.virtualenvs/domain.com/bin', '/var/www/.virtualenvs/domain.com/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/var/www/.virtualenvs/domain.com/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg', '/var/www/.virtualenvs/domain.com/src/django-admin-bootstrapped', '/var/www/.virtualenvs/domain.com/src/johnny-panel', '/var/www/.virtualenvs/domain.com/lib64/python26.zip', '/var/www/.virtualenvs/domain.com/lib64/python2.6', '/var/www/.virtualenvs/domain.com/lib64/python2.6/plat-linux2', '/var/www/.virtualenvs/domain.com/lib64/python2.6/lib-tk', '/var/www/.virtualenvs/domain.com/lib64/python2.6/lib-old', '/var/www/.virtualenvs/domain.com/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6', '/usr/lib/python2.6', '/var/www/.virtualenvs/domain.com/lib/python2.6/site-packages'] /var/www/.virtualenvs/domain.com/lib/python2.6/site-packages/cms/admin/pageadmin.py in add_plugin language = request.POST['language'] or get_language_from_request(request) Local Vars Variable Value parent None self &lt;cms.admin.pageadmin.PageAdmin object at 0x3b58710&gt; request "&lt;WSGIRequest\npath:/admin/cms/page/495/add-plugin/, GET:&lt;QueryDict: {}&gt;, POST:&lt;QueryDict: {u'placeholder': [u'1434'], u'plugin_type': [u'TextPlugin']}&gt;, META:{'CONTENT_LENGTH': '39', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'CSRF_COOKIE': 'YmXTWNblNRZix37nd5xINn6Eq0VciynN', 'HTTP_ACCEPT': 'text/html, */*', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': 'djangocms_nodes_open=page_502; CMS_toolbar-collapsed=false;, 'HTTP_HOST': 'domain.com', 'HTTP_ORIGIN': 'http://domain.com', 'HTTP_REFERER': 'http://domain.com/admin/cms/page/495/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.32 Safari/537.36', 'HTTP_X_CSRFTOKEN': 'YmXTWNblNRZix37nd5xINn6Eq0VciynN', 'HTTP_X_FORWARDED_FOR': '64.21.121.50', 'HTTP_X_REAL_IP': '64.21.121.50', 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest', 'PATH_INFO': u'/admin/cms/page/495/add-plugin/', 'QUERY_STRING': '', 'RAW_URI': '/admin/cms/page/495/add-plugin/', 'REMOTE_ADDR': '64.21.121.50', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'POST', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'domain.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/0.17.2', 'gunicorn.socket': &lt;socket._socketobject object at 0x210b980&gt;, 'wsgi.errors': &lt;gunicorn.glogging.LazyWriter object at 0x1b068d0&gt;, 'wsgi.file_wrapper': &lt;class gunicorn.http.wsgi.FileWrapper at 0x1bd3ef0&gt;, 'wsgi.input': &lt;gunicorn.http.body.Body object at 0x21346d0&gt;, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}&gt;" parent_id None placeholder_id u'1434' placeholder &lt;Placeholder: main-content&gt; page &lt;cms.models.pagemodel.Page object at 0x4192210&gt; plugin_type u'TextPlugin' /var/www/.virtualenvs/domain.com/lib/python2.6/site-packages/django/utils/datastructures.py in __getitem__ raise MultiValueDictKeyError("Key %r not found in %r" % (key, self)) Local Vars Variable Value self &lt;QueryDict: {u'placeholder': [u'1434'], u'plugin_type': [u'TextPlugin']}&gt; key 'language' </code></pre> <p><strong>UPDATE:</strong></p> <p>Language settings straight from the python shell:</p> <pre><code>settings.LANGUAGES [('en', 'English')] settings.LANGUAGE_CODE 'en' settings.LANGUAGE_COOKIE_NAME 'django_language' settings.DEFAULT_LANGUAGE 0 settings.USE_I18N False settings.USE_L10N False </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload