Changing site default locale in multilingual settings breaks global area's

Permalink 30 16 Browser Info Environment
When changing the default language in the multilingual settings. All global area's disappear and can't be edited.


Status: New
Haxe93 replied on at Permalink Reply
Can confirm, I have the same problem when changing my default locale. Changing back to the original locale will make the global areas editable again.
b3rimbau replied on at Permalink Reply
b3rimbau
olacom replied on at Permalink Reply
olacom
Also can confirm this bug. I had an error displayed if it can help, the error said :
"cParentID cannot be null", on an insert into Pages.

If I switched back to the original default language, refresh the page and then change the default language again to the one I want, then the error does not show up anymore.

Thanks !
webpresso replied on at Permalink Reply
webpresso
We see the same issue on 8.1.0

Reproduction:
- Install concrete5 with sample content. We choose german.
- After installation there is no possibility to change the root language.

Adding a language:
- so we add a language. Choosing «german»/«deutsch» and Country «Switzerland» - this adds a new language tree.
- As we want to change the root language we are changing the default language to the new added language.
- Now every global area has gone. We can't add any.

- Reverting back to the installation language brings globals area back.

These are two issues:
1) So there is no possibility to choose the root language other than the selection on installation.
2) Changing the standard language breaks all global areas.
moeetion replied on at Permalink Reply
If found one way to solve the problem manually.

In the DB table "Stacks" all global Stack have the siteThreeID 1.
In the table "SiteTrees" each language have a "siteTreeID", starting with 1.
When I change the Default Language to my first additional created language I've to change the "siteThreeID" from all global Stacks in de table "Stacks" to 2. Or to 3 when I've choose my second additional created language.

Then it works.
Xabatar replied on at Permalink Reply
Xabatar
Same here.

Also the other language created pages has no permission set to view them, so if you are log out, these pages require login to be seen. Have to set the permission manually.
ESKEMA replied on at Permalink Reply
ESKEMA
I can confirm this.
Was hoping to start this project with 8.1 but will have to go back to 5.7. Can't have errors like this popping up.
Is there a solution to this? Or a way to set it up on installation that will work without issues?
vonanko replied on at Permalink Reply
Confirm that!
kvt replied on at Permalink Reply
kvt
Confirm
igodesign replied on at Permalink Reply
As already discussed, when setting the default language of the site to english all global areas are removed. I've just updated to 5.7.7.13 from 5.7.5.7 and the issue still seems to be an issue. If you could let me know of any fixes as soon as possible it would be great seen as this is becoming a matter of urgency.
typoman76 replied on at Permalink Reply
typoman76
The issue is planned for 8.2 as I have seen on github. But nothing moves for the multilanguage fixes at the moment.
https://github.com/concrete5/concrete5/milestone/20...

You can rebuild the global ares, that worked for me. But is far away from cool…
kvt replied on at Permalink Reply
kvt
> You can rebuild the global ares, that worked for me. But is far away from cool…

How rebuild the global areas?
jiropii replied on at Permalink Reply
jiropii
'Rebuilding' isn't even possible for me, the global areas don't accept new blocks.

Also: When I create a new language tree, this second language tree shows an empty Home page without content, even though I've copied the pages from the primary language tree + scanning of locale.
Why is that?
TheRealSean replied on at Permalink Reply
TheRealSean
Confirmed getting this in 5.7.5 just upgraded to 5.7.5.13 and the issue still remains
Mainio replied on at Permalink Reply
Mainio
Can confirm this.
Mainio replied on at Permalink Reply
Mainio
It seems that the multilingual stacks not visible can be fixed by following these steps:
1) Go through the list of stacks
2) create the default stack if it doesn't exist (Stack::getOrCreateGlobalArea)
3) Fetch the corresponding page for that stack ($page = Page::getByID($stack->getCollectionID()))
4) Move the multilingual stack's page below that stack ($origStackPage->move($page))

concrete5 Environment Information

# concrete5 Version
Core Version - 8.0.3
Version Installed - 8.0.3
Database Version - 20161216000000

# concrete5 Packages
None

# concrete5 Overrides
blocks/autonav/templates/bootstrap.php, blocks/autonav/templates, blocks/autonav, blocks/image_slider/templates/header_slider/controller.php, blocks/image_slider/templates/header_slider/view.css, blocks/image_slider/templates/header_slider/view.php, blocks/image_slider/templates/header_slider, blocks/image_slider/templates, blocks/image_slider, blocks/page_list/templates/events/controller.php, blocks/page_list/templates/events/view.css, blocks/page_list/templates/events/view.php, blocks/page_list/templates/events, blocks/page_list/templates/news/view.css, blocks/page_list/templates/news/view.php, blocks/page_list/templates/news, blocks/page_list/templates, blocks/page_list, blocks/page_title/templates/show_publication_date.php, blocks/page_title/templates, blocks/page_title, blocks/share_this_page/view.php, blocks/share_this_page, blocks/youtube/css/youtubeblock.css, blocks/youtube/css, blocks/youtube, elements/custom_style.php, jobs/clear_empty_workflow_progress.php, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/es_ES/LC_MESSAGES/messages.mo, languages/es_ES/LC_MESSAGES, languages/es_ES, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/site/en_US.po, languages/site/nl_NL.mo, languages/site/nl_NL.po, languages/site, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, themes/ztheme/css/bootstrap.css, themes/ztheme/css/framework.css, themes/ztheme/css, themes/ztheme/default.php, themes/ztheme/description.txt, themes/ztheme/elements/footer.php, themes/ztheme/elements/header.php, themes/ztheme/elements/socialmediameta.php, themes/ztheme/elements, themes/ztheme/js/bootstrap.min.js, themes/ztheme/js/main.js, themes/ztheme/js, themes/ztheme/less/components/autonav.less, themes/ztheme/less/components/footer.less, themes/ztheme/less/components/forms-zl.less, themes/ztheme/less/components/image-slider.less, themes/ztheme/less/components/page-header.less, themes/ztheme/less/components/page-list.less, themes/ztheme/less/components/pagination.less, themes/ztheme/less/components, themes/ztheme/less/editmode.less, themes/ztheme/less/framework.less, themes/ztheme/less/main.less, themes/ztheme/less/readme.MD, themes/ztheme/less/tools/bootstrap-variables.less, themes/ztheme/less/tools/bootstrap.less, themes/ztheme/less/tools/custom-variables.less, themes/ztheme/less/tools/mixins.less, themes/ztheme/less/tools/reset.less, themes/ztheme/less/tools, themes/ztheme/less/typography.less, themes/ztheme/less, themes/ztheme/page.php, themes/ztheme/page_forbidden.php, themes/ztheme/page_not_found.php, themes/ztheme/page_theme.php, themes/ztheme/thumbnail.png, themes/ztheme/view.php, themes/ztheme, tools/files/view.php, tools/files, blocks/autonav/templates/bootstrap.php, blocks/autonav/templates, blocks/autonav, blocks/image_slider/templates/header_slider/controller.php, blocks/image_slider/templates/header_slider/view.css, blocks/image_slider/templates/header_slider/view.php, blocks/image_slider/templates/header_slider, blocks/image_slider/templates, blocks/image_slider, blocks/page_list/templates/events/controller.php, blocks/page_list/templates/events/view.css, blocks/page_list/templates/events/view.php, blocks/page_list/templates/events, blocks/page_list/templates/news/view.css, blocks/page_list/templates/news/view.php, blocks/page_list/templates/news, blocks/page_list/templates, blocks/page_list, blocks/page_title/templates/show_publication_date.php, blocks/page_title/templates, blocks/page_title, blocks/share_this_page/view.php, blocks/share_this_page, blocks/youtube/css/youtubeblock.css, blocks/youtube/css, blocks/youtube, elements/custom_style.php, jobs/clear_empty_workflow_progress.php, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/es_ES/LC_MESSAGES/messages.mo, languages/es_ES/LC_MESSAGES, languages/es_ES, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/site/en_US.po, languages/site/nl_NL.mo, languages/site/nl_NL.po, languages/site, languages/sl_SI/LC_MESSAGES/messages.mo, languages/sl_SI/LC_MESSAGES, languages/sl_SI, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, themes/ztheme/css/bootstrap.css, themes/ztheme/css/framework.css, themes/ztheme/css, themes/ztheme/default.php, themes/ztheme/description.txt, themes/ztheme/elements/footer.php, themes/ztheme/elements/header.php, themes/ztheme/elements/socialmediameta.php, themes/ztheme/elements, themes/ztheme/js/bootstrap.min.js, themes/ztheme/js/main.js, themes/ztheme/js, themes/ztheme/less/components/autonav.less, themes/ztheme/less/components/footer.less, themes/ztheme/less/components/forms-zl.less, themes/ztheme/less/components/image-slider.less, themes/ztheme/less/components/page-header.less, themes/ztheme/less/components/page-list.less, themes/ztheme/less/components/pagination.less, themes/ztheme/less/components, themes/ztheme/less/editmode.less, themes/ztheme/less/framework.less, themes/ztheme/less/main.less, themes/ztheme/less/readme.MD, themes/ztheme/less/tools/bootstrap-variables.less, themes/ztheme/less/tools/bootstrap.less, themes/ztheme/less/tools/custom-variables.less, themes/ztheme/less/tools/mixins.less, themes/ztheme/less/tools/reset.less, themes/ztheme/less/tools, themes/ztheme/less/typography.less, themes/ztheme/less, themes/ztheme/page.php, themes/ztheme/page_forbidden.php, themes/ztheme/page_not_found.php, themes/ztheme/page_theme.php, themes/ztheme/thumbnail.png, themes/ztheme/view.php, themes/ztheme, tools/files/view.php, tools/files

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.10 (Unix) OpenSSL/1.0.1j PHP/5.6.3 mod_perl/2.0.8-dev Perl/v5.16.3

# Server API
apache2handler

# PHP Version
5.6.3

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, json, ldap, libxml, mbstring, mcrypt, mhash, mssql, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sybase_ct, sysvsem, sysvshm, tokenizer, wddx, xdebug, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 0
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 256M
sql.safe_mode - Off
upload_max_filesize - 256M
ldap.max_links - Unlimited
mssql.max_links - Unlimited
mssql.max_persistent - Unlimited
mssql.max_procs - Unlimited
mssql.textlimit - Server default
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
sybct.max_links - Unlimited
sybct.max_persistent - Unlimited
xdebug.max_nesting_level - 100
xdebug.var_display_max_children - 128
xdebug.var_display_max_data - 512
xdebug.var_display_max_depth - 3

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36