I'm trying to login to the main page of SuiteCRM, an open source software that provides a CRM model for large companies, and I'm having some problems logging in.
index.php?action=Login&module=Users&login_module=Home&login_action=index (url)
On the local server I am using Wampserver 3.2.6 (64 bits), PHP 7.4.26 and MariaDB 10.3.28 database. In the line that the error indicates, only the command session_start() appears and nothing else, so when I try to log in to the system, it remains on the same screen after putting the credentials, because there is some configuration inside the SuiteCRM folders that prevents the software or the local server itself to store sessions.
index.php?action=Login&module=Users&login_module=Home&login_action=index (url)
include\MVC\SugarApplication.php (file path)
public function startSession()
{
$sessionIdCookie = isset($_COOKIE['PHPSESSID']) ? $_COOKIE['PHPSESSID'] : null;
if (isset($_REQUEST['MSID'])) {
session_id($_REQUEST['MSID']);
session_start();
if (!isset($_SESSION['user_id'])) {
if (isset($_COOKIE['PHPSESSID'])) {
self::setCookie('PHPSESSID', '', time() - 42000, '/');
}
sugar_cleanup(false);
session_destroy();
exit('Not a valid entry method');
}
} else {
if (can_start_session()) {
session_start(); // <= here is the error line #609
}
}
//set the default module to either Home or specified default
$default_module = !empty($GLOBALS['sugar_config']['default_module']) ? $GLOBALS['sugar_config']['default_module'] : 'Home';
//set session expired message if login module and action are set to a non login default
//AND session id in cookie is set but super global session array is empty
if (isset($_REQUEST['login_module']) && isset($_REQUEST['login_action']) && !($_REQUEST['login_module'] == $default_module && $_REQUEST['login_action'] == 'index')) {
if (!is_null($sessionIdCookie) && empty($_SESSION)) {
self::setCookie('loginErrorMessage', 'LBL_SESSION_EXPIRED', time() + 30, '/');
}
}
LogicHook::initialize()->call_custom_logic('', 'after_session_start');
}
What is the best alternative to solve this problem?

