webchick reported this at http://drupal.org/node/1784796#comment-6481774

Notice: Use of undefined constant langcode - assumed 'langcode' in _update_message_text() (line 604 of core/modules/update/update.module).
Notice: Undefined variable: language in update_mail() (line 518 of core/modules/update/update.module).

Looking at the code, indeed, update_mail() still tries to use $message['language'] which is of course not passed anymore.

CommentFileSizeAuthor
#1 language-object-update.patch701 bytesgábor hojtsy

Comments

gábor hojtsy’s picture

Status: Active » Needs review
Issue tags: +Needs tests
StatusFileSize
new701 bytes

I was looking at the api.drupal.org version of the code, which seems to be outdated. There does not seem to be any code in Drupal anymore referencing $message['language'], so that is not the problem :) However as the error message says the variable $language is not present, which was lost in the conversion.

I'm not sure it is trivial to have tests for this.... Do we have any tests for the mail system that inspects mails sent (which would have triggered this error)?

gábor hojtsy’s picture

Title: update_mail() not converted to langcode » Missing $language in update_mail()

Retitling for the more specific problem.

podarok’s picture

Status: Needs review » Reviewed & tested by the community

#1 works for me

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x. Thanks!

gábor hojtsy’s picture

Issue tags: -sprint

Thanks!

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