Skip to content

Migration 7.4 to 8.3 white screen in Dashboard

Deleting a 3rd party module with a widget in dashboard.

Uncaught Error: Call to a member function isActive() on bool in /var/www/xxxxxxxxx/modules/Users/models/Privileges.php:70

/** * Function to check whether the user has access to a given module by tabid * @param <Number> $tabId * @return <Boolean> true/false */ public function hasModulePermission($tabId) { $profileTabsPermissions = $this->get('profile_tabs_permission'); $moduleModel = Vtiger_Module_Model::getInstance($tabId); // Check if $moduleModel is not null if( $moduleModel == FALSE ) return false; return (($this->isAdminUser() || $profileTabsPermissions[$tabId] === 0) && $moduleModel->isActive()); }