Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello folks
I got the following error trying to export my theme sections.
Recoverable fatal error: Object of class stdClass could not be converted to string in omega_tools_build_info_file() (line 356 of /home/rbm/kla_tencor/sites/all/modules/omega_tools/omega_tools.module)..
The error is caused , because the i18n module store the followin configuration as object.
i18n_variable_language
stdClass Object
(
[language] => en
[name] => English
[native] => English
[direction] => 0
[enabled] => 1
[plurals] => 0
[formula] =>
[domain] =>
[prefix] =>
[weight] => 0
[javascript] =>
[provider] => locale-browser
)
Is necessary handle this kind of situation.
enzo
Comment | File | Size | Author |
---|---|---|---|
#1 | 1551372-error-exporting-theme-multi-language-sites.patch | 718 bytes | -enzo- |
Comments
Comment #1
-enzo- CreditAttribution: -enzo- commentedHello folks.
I did a small patch to handle object setting from omega theme.
This patch transform the object in an array like this:
Enjoy IT.
enzo
Comment #2
hkirsman CreditAttribution: hkirsman commentedThis makes export work!
But how do I add more than one language to .info? Is it even possible?
Comment #3
gaele CreditAttribution: gaele commentedYes, the patch fixes this.