Details
-
Bug
-
Resolution: Invalid
-
High
-
2015.07
Description
After installing eZ Platform I've added a new siteaccess, in this caso demo_pt and the ezpublish.yml configuration are:
ezpublish: # Define all your repositories here # If you use multi-site with multiple databases, you should define multiple repositories repositories: # "main" repository, with default values for storage # Same as: # demo_repository: # storage: # engine: legacy # connection: default # search: # engine: %search_engine% # connection: default demo_repository: storage: ~ search: engine: %search_engine% connection: default siteaccess: # Available siteaccesses list: - demo_site - demo_pt # Siteaccess groups. Use them to group common settings. groups: demo_site_group: [demo_site, demo_pt] default_siteaccess: demo_site match: URIElement: 1 imagemagick: enabled: false # System settings, grouped by siteaccess and/or siteaccess group system: demo_site_group: repository: demo_repository var_dir: var/ezdemo_site languages: - eng-GB - por-PT session: name: eZSESSID demo_site: languages: - eng-GB demo_pt: languages: - por-PT default: content: view_cache: true ttl_cache: true # TTL cache (http) in seconds # Note that Http cache for a given content is always invalidated when publishing that content default_ttl: 300
If I try to access the frontpage it will return the following exception
An exception has been thrown during the rendering of a template ("Could not find 'Language' with identifier 'por-PT'") in eZDemoBundle::pagelayout.html.twig at line 39.
If I go into pagelayout.html.twig and comment the top menu
{#{ render( controller( "eZDemoBundle:Menu:topMenu", {'currentLocationId': currentLocation is defined ? currentLocation.id : null} ) ) }#}
the error disappears