Ticket #10676 (closed Bug: invalid)

Opened 4 years ago

Last modified 4 years ago

Migration KeyError 'language'

Reported by: juh Owned by:
Priority: major Milestone: 4.0
Component: Upgrade/Migration Version:
Keywords: Cc:

Description

I managed to migrate a Plone 3.3.5 site to 4.0b4 without errors. But when I call the site I get this error.

Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Shared.DC.Scripts.Bindings, line 324, in __call__
  Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 240, in _exec
  Module Products.CMFCore.FSPageTemplate, line 180, in pt_render
  Module Products.PageTemplates.PageTemplate, line 80, in pt_render
  Module zope.pagetemplate.pagetemplate, line 115, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 888, in do_useMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 583, in do_setLocal_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL: main_template
   - Line 5, Column 0
   - Expression: <PathExpr standard:u'language'>
   - Names:
      {'container': <PloneSite at /www.generationenprojekt.de>,
       'context': <ATTopic at /www.generationenprojekt.de/neue-beitraege>,
       'default': <object object at 0x7fb666a52b10>,
       'here': <ATTopic at /www.generationenprojekt.de/neue-beitraege>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x91e1d40>,
       'request': <HTTPRequest, URL=http://hasecke.com:8080/www.generationenprojekt.de/neue-beitraege/folder_summary_view>,
       'root': <Application at >,
       'template': <FSPageTemplate at /www.generationenprojekt.de/folder_summary_view used for /www.generationenprojekt.de/neue-beitraege>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'zope'>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 149, in _eval
  Module zope.tales.expressions, line 118, in _eval
KeyError: 'language'

Change History

comment:1 Changed 4 years ago by davisagli

  • Status changed from new to closed
  • Resolution set to invalid

Your site must be using a theme with a customized main_template that has not been updated to work in Plone 4 yet. 'language' and various other variables that were available globally in Plone 3 must now be explicitly defined (there is a page in the Plone upgrade documentation with details). Probably your best bet is to start fresh with the main_template from Plone 4, and reapply the changes you need for your custom theme.

Note: See TracTickets for help on using tickets.