Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Getting error while trying Multi-Language support

Started by Muut Archive 11 years ago · 3 replies · 253 views
11 years ago

Putting a languages.yaml file in the root of theme folder causes error "Call to a member function mergeRecursive() on a non-object" in \src\Grav\Common\Themes.php.
Tried on Grav One-Page Site skeleton.

11 years ago

Hmm.. This sounds like something that slipped by in my testing after I changed up some of the translation stuff. Let me debug and i'll get back to you.

11 years ago

@maxl: @rhukster found the answer, but as he works so much in so many things he probably forgot to post it here too (it was posted in gitter), so here it goes:

About line 182 in Grav\Common\Config\Config.php
add system. in front of the ‘languages`:

PHP
 if ($this->get('system.languages', false)) {

Should fix it. It did for me.

11 years ago

I'm going to release 0.9.31 with this fix today. The issue was hidden because I had an extra file in my testing setup. Sorry about that. Just want to make sure there are no other major issues before releasing.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago