I've some trouble to use the plugin. On fresh install, when I create one page and try to update database, I have the following exception : Uncaught Exception: Twig_Error_Runtime
Twig_Error_Runtime in Template.php line 411:
An exception has been thrown during the rendering of a template ("Warning: Invalid argument supplied for foreach()") in "@bolt/_nav/_secondary-content.twig" at line 21.
Details
Translate Version: master
Install type: Extension Repository
Bolt Version: master (3.2.1)
PHP version: 7.0.12
Used webserver: Built-in
Reproduction
1) Install with : composer create-project bolt/composer-install:^3.1 translate --prefer-dist
2) Change langage in main conf file to FR (like the doc saids)
3) Add a page
4) Change the translate config to add french
`
locales:
fr_FR:
label: French
slug: fr
en_GB:
label: English
slug: en
de_AT:
label: Deutsch
slug: de
routing_override: true
menu_override: true
url_generator_override: true
translate_slugs: true
use_accept_language_header: true
`
5) Change the content type
pages: name: Pages singular_name: Page fields: locale: type: locale group: content frdata: type: hidden frslug: type: locale_data index: true dedata: type: hidden deslug: type: locale_data index: true endata: type: hidden enslug: type: locale_data index: true title: type: text class: large group: content isTranslatable: true slug: type: slug uses: title image: type: image teaser: type: html height: 150px isTranslatable: true body: type: html height: 300px isTranslatable: true template: type: templateselect filter: '*.twig' taxonomy: [ groups ] recordsperpage: 100
6) Try to re-build the database
Hi everybody,
I've some trouble to use the plugin. On fresh install, when I create one page and try to update database, I have the following exception : Uncaught Exception: Twig_Error_Runtime
Twig_Error_Runtime in Template.php line 411: An exception has been thrown during the rendering of a template ("Warning: Invalid argument supplied for foreach()") in "@bolt/_nav/_secondary-content.twig" at line 21.
Details
Reproduction
1) Install with : composer create-project bolt/composer-install:^3.1 translate --prefer-dist 2) Change langage in main conf file to FR (like the doc saids) 3) Add a page 4) Change the translate config to add french ` locales: fr_FR: label: French slug: fr en_GB: label: English slug: en de_AT: label: Deutsch slug: de
routing_override: true
menu_override: true
url_generator_override: true
translate_slugs: true
use_accept_language_header: true `
5) Change the content type
pages: name: Pages singular_name: Page fields: locale: type: locale group: content frdata: type: hidden frslug: type: locale_data index: true dedata: type: hidden deslug: type: locale_data index: true endata: type: hidden enslug: type: locale_data index: true title: type: text class: large group: content isTranslatable: true slug: type: slug uses: title image: type: image teaser: type: html height: 150px isTranslatable: true body: type: html height: 300px isTranslatable: true template: type: templateselect filter: '*.twig' taxonomy: [ groups ] recordsperpage: 100
6) Try to re-build the database