md-systems / crm_core

Drupal 8 port of the CRM Core module
https://www.drupal.org/project/crm_core
11 stars 10 forks source link

Error in crm-core/activity-types #28

Closed roberto-araya closed 8 years ago

roberto-araya commented 8 years ago

When I go to crm-core/activity-types I get WSOD and drupal log show 3 errors:

Notice: Undefined variable: langcode in Drupal\crm_core_activity\ActivityTypeAccessControlHandler->checkAccess() (line 23 of /var/www/html/crmcore8/modules/contrib/crm_core/modules/crm_core_activity/src/ActivityTypeAccessControlHandler.php)

Recoverable fatal error: Argument 3 passed to Drupal\Core\Entity\EntityAccessControlHandler::checkAccess() must implement interface Drupal\Core\Session\AccountInterface, null given, called in /var/www/html/crmcore/modules/contrib/crm_core/modules/crm_core_activity/src/ActivityTypeAccessControlHandler.php on line 23 and defined in Drupal\Core\Entity\EntityAccessControlHandler->checkAccess() (line 134 of /var/www/html/crmcore/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php).

Recoverable fatal error: Argument 1 passed to Drupal\Core\Access\AccessResult::allowedIfHasPermission() must implement interface Drupal\Core\Session\AccountInterface, null given, called in /var/www/html/crmcore8/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php on line 139 and defined in Drupal\Core\Access\AccessResult::allowedIfHasPermission() (line 107 of /var/www/html/crmcore8/core/lib/Drupal/Core/Access/AccessResult.php).