Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293211

PHP notice when creating new Drupal user

$
0
0

The following notice pops up when I try to create a new user:

Notice: Undefined index: user_picture in Drupal\Core\Entity\EntityFormController->submitEntityLanguage() (line 438 of core/lib/Drupal/Core/Entity/EntityFormController.php).

When doing this, I'm logged in as user 1.

When I look into the code I see the following statement:

$previous_langcode = $form[$field_name]['#language'];

I guess the index "user_picture" isn't present in the array $form. Should we introduce an isset() to check if the index is present in the array?


Viewing all articles
Browse latest Browse all 293211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>