Got the error
Fatal error: Unsupported operand types in ...\drupal\sites\all\Modules\image_gallery_access\image_gallery_access.module on line 399
have a look in the code and found :
function _image_gallery_access_get_roles($user) {
// if the user has a uid, they get 1 as a role; otherwise 0.
$roles = array(intval((bool) $user->uid) + 1);
// add in their roles
$roles += array_keys($user->roles);
return implode(', ', $roles);
}
patched with
function _image_gallery_access_get_roles($user) {
// if the user has a uid, they get 1 as a role; otherwise 0.
$roles = array(intval((bool) $user->uid) + 1);
// add in their roles
$roles = array_merge($roles,array_keys($user->roles));
return implode(', ', $roles);
}
seem to work well now
Comments
Comment #1
salvisCommitted to the -dev version, thanks!
See #302774: Unsupported operand error when running Cron from cmd line with last PHP release.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.