hello
I found this error in the permissions tab when one makes a migration from drupal 7 to Drupal 8 using drush.
Error: Unsupported operand types in Drupal\user\Form\UserPermissionsForm->buildForm() (line 164 of /job/www/drupal/core/modules/user/src/Form/UserPermissionsForm.php)
$perm_item += [
'description' => '',
'restrict access' => FALSE,
'warning' => !empty($perm_item['restrict access']) ? $this->t('Warning: Give to trusted roles only; this permission has security implications.') : '',
];
One possible solution that worked for me was to modify this by:
$perm_item = array_merge( $perm_item, [
'description' => '',
'restrict access' => FALSE,
'warning' => !empty($perm_item['restrict access']) ? $this->t('Warning: Give to trusted roles only; this permission has security implications.') : '',
]);
Comments
Comment #2
joertru commentedComment #3
joertru commentedComment #4
joertru commentedComment #7
rsr25694 commentedis it work for non dev drupal version?
Comment #8
quietone commented@joertru, thanks for the report. Can you provide some more information. How did you migrate from Drupal 7 to Drupal 8? Was this a custom migration with drush or did you do it from /upgrade? Do you know what permission was causing the problem? What contrib modules were installed.
Thanks.
Tagging for migration so it is found in my typical searches.
Comment #11
quietone commentedIs this issue still a problem?
To work on this complete steps to reproduce the issue (starting from "Install Drupal core") are needed.
Since we need more information to move forward with this issue, I am keeping the status at Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #13
benjifisherIt has been more than three months since @quietone asked for more information on this report. As far as I know, no one else has reported this problem. I am closing this issue.