Can not set up SugarCRM on localhost

I am trying to set up SugarCRM 7.9 on local system. But I am getting following error :

Fatal error: Class 'Doctrine\DBAL\TransactionIsolationLevel' not found in C:\xampp\htdocs\pss\vendor\doctrine\dbal\lib\Doctrine\DBAL\DriverManager.php on line 181

Fatal error: Uncaught Error: Cannot declare self-referencing constant 'Doctrine\DBAL\TransactionIsolationLevel::READ_UNCOMMITTED' in C:\xampp\htdocs\pss\vendor\doctrine\dbal\lib\Doctrine\DBAL\DriverManager.php:181 Stack trace: #0 C:\xampp\htdocs\pss\include\database\DBManagerFactory.php(158): Doctrine\DBAL\DriverManager::getConnection(Array) #1 C:\xampp\htdocs\pss\include\database\DBManager.php(459): DBManagerFactory::createConnection(Object(MysqliManager)) #2 C:\xampp\htdocs\pss\include\database\MysqlManager.php(304): DBManager->getConnection() #3 C:\xampp\htdocs\pss\modules\DynamicFields\DynamicField.php(109): MysqlManager->tableExists('fields_meta_dat...') #4 C:\xampp\htdocs\pss\include\SugarObjects\VardefManager.php(728): DynamicField->buildCache('Administration', false) #5 C:\xampp\htdocs\pss\include\SugarObjects\VardefManager.php(1074): VardefManager::refreshVardefs('Administration', 'Administration', NULL, true, Array) #6 C:\xampp\htdocs\pss\data\SugarBean.php(527): VardefManager::loadVardef('Administration', 'Admi in C:\xampp\htdocs\pss\vendor\doctrine\dbal\lib\Doctrine\DBAL\DriverManager.php on line 181

I am not getting what is wrong? Please help.

Thanks,

Shantanu

  • Make sure your stack fits the prerequisites.

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • Finally got rid of those errors. But still not able to login to the instance. 

    php_error logs says:

    [18-Feb-2019 11:45:33 UTC] PHP Warning: session_start(): Cannot find save handler 'memcached' - session startup failed in C:\wamp\www\pss\include\SugarOAuth2\SugarOAuth2Storage.php on line 452

    [18-Feb-2019 11:45:33 UTC] PHP Stack trace:

    [18-Feb-2019 11:45:33 UTC] PHP 1. {main}() C:\wamp\www\pss\api\rest.php:0

    [18-Feb-2019 11:45:33 UTC] PHP 2. RestService->execute() C:\wamp\www\pss\api\rest.php:23

    [18-Feb-2019 11:45:33 UTC] PHP 3. OAuth2Api->token() C:\wamp\www\pss\include\api\RestService.php:252

    [18-Feb-2019 11:45:33 UTC] PHP 4. SugarOAuth2Server->grantAccessToken() C:\wamp\www\pss\clients\base\api\OAuth2Api.php:96

    [18-Feb-2019 11:45:33 UTC] PHP 5. SugarOAuth2Server->grantAccessToken() C:\wamp\www\pss\include\SugarOAuth2\SugarOAuth2Server.php:114

    [18-Feb-2019 11:45:33 UTC] PHP 6. SugarOAuth2Server->createAccessToken() C:\wamp\www\pss\vendor\oauth2-php\lib\OAuth2.php:739

    [18-Feb-2019 11:45:33 UTC] PHP 7. SugarOAuth2Server->createAccessToken() C:\wamp\www\pss\include\SugarOAuth2\SugarOAuth2Server.php:68

    [18-Feb-2019 11:45:33 UTC] PHP 8. SugarOAuth2Storage->setAccessToken() C:\wamp\www\pss\vendor\oauth2-php\lib\OAuth2.php:1005

    [18-Feb-2019 11:45:33 UTC] PHP 9. session_start() C:\wamp\www\pss\include\SugarOAuth2\SugarOAuth2Storage.php:452

    Can you tell what's possibly going wrong here?
    I am using wamp server on windows.
    Running php 7.1.26. Tried with 7.0 as well still getting the same error log.

    Thanks,

    Shantanu Agnihotri

  • Replace PHP's attribute "session.save_handler" from "memcached" to "files".

    Restart apache and try again.

    Cheers

    André Lopes
    Lampada Global
    Skype: andre.lampada