Description of the need
Found this PHP error in watchdog on a site, resulting from a cron run:
EntityStorageException: The username and email are both addresses that do not match. in EntityDatabaseStorageController->save() (line 789 of /.../core/modules/entity/entity.controller.inc).
Yes, OK, but which entity of the several thousand users are we talking about here? And what's the mismatch?
Proposed solution
It would be nice to add to the error message the actual username and email to make it easier to track down what's wrong. (In this case, one was capitalized, the other wasn't.)
The message is generated at line 368 of user.entity.inc
, currently:
throw new EntityMalformedException'The username and email are both addresses that do not match.');
I propose we change this to
throw new EntityMalformedException(format_string('The username @name and email @mail are both addresses that do not match.', array('@name' => $entity->name, '@mail' => $entity->mail)));
This isn't technically a bug, but it seems simple enough that it could go into a bugfix release.
Recent comments
Hi @Gnome and welcome to Backdrop When I create custom layout templates I put them in /layouts/custom/my_layout Note: you can split modules and layouts between contrib and custom...
My layout template (layout--blog.tpl.php) doesn't work
This post explains how to do this in Drupal 7. In Backdrop, File Entity is already part of core. You will need to download and install module Views Field View. https://drupal.stackexchange...
I Need to Display an Image in a View that was Uploaded to a Webform
After alot of trials, i have done the obvious and translated the whole block for different languages with each property condition as follows: ->propertyCondition('langcode', 'en...
How to get the current page language?