Session save path error in SugarCRM installation.

sugarcrmI recently moved my other website from 1and1 Linux shared hosting to 1and1 VPSII Linux hosting package (plesk). While trying to install SugarCRM on VPSII the system check of SugarCRM installer doesn’t let me through; gives an error message at the beginning of the installation process. “The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist”.

After hours of digging the internet for the problem, checking and rechecking everything: the solution to the error is quite simple. There is a IF LOOP syntax error in the install/installSystemCheck.php file! All you need to do is add curly braces at line number 186 after:

if (strpos ($session_save_path, “;”) !== FALSE){
and close the braces at line number 210: }}

Follow the steps below to edit the installSystemCheck.php file:
Step1: FTP access you SugarCRM folder using a FTP client (I use FileZilla).

Step2: Browse to the install folder within the SugarCRM folder.

Step3: Download installSystemCheck.php file to you local hard drive.

Step4: Open installSystemCheck.php using a text editor (I use EditPadPro).

Step5: Scroll to line number 186 and add curly braces after: if (strpos ($session_save_path, “;”) !== FALSE){

Step6: Scroll further to line number 210 and close the curly braces. See the complete code below. Braces to be added are in red.

if (strpos ($session_save_path, “;”) !== FALSE){
$session_save_path = substr ($session_save_path, strpos ($session_save_path, “;”)+1);
if(is_dir($session_save_path)){
if(is_writable($session_save_path)){
installLog(”Session Save Path is “.$session_save_path);
}else{
$save_pathStatus = “{$mod_strings['ERR_CHECKSYS_SESSION_SAVE_PATH_NOT_WRITABLE']}“;
installLog(”ERROR:: {$mod_strings['ERR_CHECKSYS_SESSION_SAVE_PATH_NOT_WRITABLE']}”);
$error_found = true;
$error_txt .= ‘

‘.$mod_strings['LBL_CHECKSYS_SESSION_SAVE_PATH'].’
‘.$save_pathStatus.’
‘;
}
}else{
$save_pathStatus = “{$mod_strings['ERR_CHECKSYS_SESSION_SAVE_PATH_NOT_SET']}“;
installLog(”ERROR:: {$mod_strings['ERR_CHECKSYS_SESSION_SAVE_PATH_NOT_SET']}”);
$error_found = true;
$error_txt .= ‘

‘.$mod_strings['LBL_CHECKSYS_SESSION_SAVE_PATH'].’
‘.$save_pathStatus.’
‘;
}}

Step7: Save the file and upload back to the remote SugarCRM install folder, replacing the original file.

Step8: Run the SugarCRM installer again, should run fine now! Note: Make sure the session path is making sense. E.g. the path exists etc.




231 August 2009 468x60.gif