5.7.3 Pages don't display once added as new locale Parent page in Multilingual Setup

Permalink 1 user found helpful
Building a site from scratch, using the Elemental theme, I use the default page structure just to test the multilingual functionality. I leave the home page be and create one home_sk subpage (Slovak mutation) and one home_en subpage (English).

under:
System settings > Multilingual > Multilingual Setup

I add home_sk with the appropriate settings as a content section. So far so good. I do the same for home_en, again, language, country etc. Once I do that and try to visit the home_en site I get a blank page. No errors or anything, just the white empty screen inside the browser window. Not even the c5 top bar, nothing. This happens only after I setup the home_en as the mutation counterpart of home_sk.

I am able to browse whatever is under home_sk. All home_en subpages behave the way home_en does.

Are there maybe folders I need to chmod777 for the multilingual stuff to work? Or is the dog buried somewhere else?

Any ideas?

Thanks dudes!!

Best,

Matus

yoga
View Replies: View Best Answer
yoga replied on at Permalink Reply
yoga
bump? :'(
mlocati replied on at Permalink Reply
mlocati
I've never seen this.
Could you try to show errors?
In System and settings > Environment > Debug Settings
Enable "Output error information to site users" and "Show the debug error output"
yoga replied on at Permalink Reply
yoga
Thanks a lot for the advice! Didn't know about the debugger, looks like a very useful thing.

the error:
Zend \ I18n \ Exception \ ExtensionNotLoadedException
Zend\I18n\Translator component requires the intl PHP extension

the code:
public function getLocale()
    {
        if ($this->locale === null) {
            if (!extension_loaded('intl')) {
                throw new Exception\ExtensionNotLoadedException(sprintf(
                    '%s component requires the intl PHP extension',
                    __NAMESPACE__


So the problem seems to be with the zend localization tool and the failing getLocale function. I'm gonna read and troubleshoot, but as I'm not a php programmer, any advice is appreciated. :)
best, m.
mlocati replied on at Permalink Reply
mlocati
Could you post here the full trace?
Maybe it's a problem that I've just fixed (will be included in the next concrete5 version if accepted by the core team).
yoga replied on at Permalink Reply
yoga
sure, here it is:

Zend\I18n\Exception\ExtensionNotLoadedException thrown with message "Zend\I18n\Translator component requires the intl PHP extension"

Stacktrace:
#18 Zend\I18n\Exception\ExtensionNotLoadedException in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/vendor/zendframework/zend-i18n/Zend/I18n/Translator/Translator.php:257
#17 Zend\I18n\Translator\Translator:getLocale in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/Localization/Localization.php:85
#16 Concrete\Core\Localization\Localization:getLocale in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/Localization/Localization.php:41
#15 Concrete\Core\Localization\Localization:activeLocale in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/Localization/Localization.php:49
#14 Concrete\Core\Localization\Localization:activeLanguage in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/themes/elemental/elements/header_top.php:3
#13 include in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/View/View.php:56
#12 Concrete\Core\View\View:inc in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/themes/elemental/elements/header.php:2
#11 include in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/View/View.php:56
#10 Concrete\Core\View\View:inc in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/themes/elemental/default.php:3
#9 include in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/View/View.php:56
#8 Concrete\Core\View\View:inc in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/themes/elemental/full.php:3
#7 include in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/View/View.php:153
#6 Concrete\Core\View\View:renderViewContents in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/View/AbstractView.php:123
#5 Concrete\Core\View\AbstractView:render in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/Routing/DispatcherRouteCallback.php:22
#4 Concrete\Core\Routing\DispatcherRouteCallback:sendResponse in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/Routing/DispatcherRouteCallback.php:193
#3 Concrete\Core\Routing\DispatcherRouteCallback:execute in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/src/Application/Application.php:343
#2 Concrete\Core\Application\Application:dispatch in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/bootstrap/start.php:256
#1 require in /data/h/a/harmony-mama.sk/web/concrete5.7.3/concrete/dispatcher.php:36
#0 require in /data/h/a/harmony-mama.sk/web/concrete5.7.3/index.php:2

thx for your help. best, m.
mlocati replied on at Permalink Best Answer Reply
mlocati
Yes, it's a problem that will be fixed if and when the core team accepts the changes that I made today (notablyhttps://github.com/concrete5/concrete5-5.7.0/pull/1743... ).

For the core team: this issue is strictly related tohttps://github.com/concrete5/concrete5-5.7.0/issues/1706... since the Zend Translator is initialized in Localization::addSiteInterfaceLanguage instead of Localization::setLocale.
yoga replied on at Permalink Reply
yoga
thanks a bunch, quite a few changes to the code :)
anapinkg replied on at Permalink Reply
Hi,

i just installed concrete5.7.5.9 and i get the same once i configure localization: a blank page.
Any idea?
mlocati replied on at Permalink Reply
mlocati
In order to determine the cause of your "blank page" you should provide more details, so that we can spot the problem cause.

You can let concrete5 show the problem cause by enabling the debug mode (see one of my message above).