I the status report I get dozens of this warning:
Notice: Trying to get property of non-object in l10n_update_requirements() (line 206 of /home/www/profiles/profile_name/modules/contrib/l10n_update/l10n_update.install).
This warning is produced because l10n_update_requirements() expects $languages[$langcode]
to be a language object but l10n_update_translatable_language_list() returns language names as string. Thus it can be easily fixed by changing line 206 from
$untranslated[$langcode] = $languages[$langcode]->name;
to
$untranslated[$langcode] = $languages[$langcode];
Update: The same problem exists at many different locations, e. g. in l10n_update_status_form() (line 81 of l10n_update.admin.inc) or generally all places using output from l10n_update_translatable_language_list().
At the moment I have no time to create the patch.
Comment | File | Size | Author |
---|---|---|---|
#3 | l10n_update-language-list-2368781-2.patch | 1.37 KB | Sutharsan |
Comments
Comment #1
mvonfrie CreditAttribution: mvonfrie commentedComment #3
Sutharsan CreditAttribution: Sutharsan commentedThanks for reporting. This was missing in the last commit.
Comment #4
mvonfrie CreditAttribution: mvonfrie commenteddrush make:
Comment #5
Sutharsan CreditAttribution: Sutharsan commentedSee above "Sutharsan committed 4261fa8 on 7.x-2.x ..."
Comment #7
sgurlt CreditAttribution: sgurlt commentedI am still having this issue, even on latest dev.
"Notice: Trying to get property of non-object in l10n_update_status_form()"
Comment #8
Sutharsan CreditAttribution: Sutharsan commented@sg88, I can not reproduce. I need more info.
Comment #9
Sutharsan CreditAttribution: Sutharsan commentedNo activity, closing the issue. Feel free to re-open if you have additional information.