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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mvonfrie’s picture

Issue summary: View changes

  • Sutharsan committed 4261fa8 on 7.x-2.x
    Issue #2368781 by Sutharsan | mvonfrie: Fixed Notice: Trying to get...
Sutharsan’s picture

Status: Active » Fixed
FileSize
1.37 KB

Thanks for reporting. This was missing in the last commit.

mvonfrie’s picture

drush make:

Unable to patch l10n_update with l10n_update-language-list-2368781-2.patch.
Sutharsan’s picture

See above "Sutharsan committed 4261fa8 on 7.x-2.x ..."

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

sgurlt’s picture

Status: Closed (fixed) » Needs work

I am still having this issue, even on latest dev.

"Notice: Trying to get property of non-object in l10n_update_status_form()"

Sutharsan’s picture

Status: Needs work » Postponed (maintainer needs more info)

@sg88, I can not reproduce. I need more info.

Sutharsan’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No activity, closing the issue. Feel free to re-open if you have additional information.