[*] Installer: check if sessions path if writable
This commit is contained in:
@@ -47,6 +47,7 @@ class ConfigurationTestCore
|
|||||||
'upload' => false,
|
'upload' => false,
|
||||||
'gd' => false,
|
'gd' => false,
|
||||||
'mysql_support' => false,
|
'mysql_support' => false,
|
||||||
|
'sessions' => false,
|
||||||
'config_dir' => 'config',
|
'config_dir' => 'config',
|
||||||
'cache_dir' => 'cache',
|
'cache_dir' => 'cache',
|
||||||
'sitemap' => 'sitemap.xml',
|
'sitemap' => 'sitemap.xml',
|
||||||
@@ -305,6 +306,13 @@ class ConfigurationTestCore
|
|||||||
return function_exists('mcrypt_encrypt');
|
return function_exists('mcrypt_encrypt');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function test_sessions()
|
||||||
|
{
|
||||||
|
if (!$path = @ini_get('session.save_path'))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return ConfigurationTest::test_dir($path);
|
||||||
|
}
|
||||||
public static function test_dom()
|
public static function test_dom()
|
||||||
{
|
{
|
||||||
return extension_loaded('Dom');
|
return extension_loaded('Dom');
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ class InstallControllerHttpSystem extends InstallControllerHttp
|
|||||||
if (!isset($this->tests['optional']))
|
if (!isset($this->tests['optional']))
|
||||||
$this->tests['optional'] = $this->model_system->checkOptionalTests();
|
$this->tests['optional'] = $this->model_system->checkOptionalTests();
|
||||||
|
|
||||||
|
$session_path = @ini_get('session.save_path');
|
||||||
// Generate display array
|
// Generate display array
|
||||||
$this->tests_render = array(
|
$this->tests_render = array(
|
||||||
'required' => array(
|
'required' => array(
|
||||||
@@ -86,6 +87,7 @@ class InstallControllerHttpSystem extends InstallControllerHttp
|
|||||||
'system' => $this->l('Cannot create new files and folders'),
|
'system' => $this->l('Cannot create new files and folders'),
|
||||||
'gd' => $this->l('GD Library is not installed'),
|
'gd' => $this->l('GD Library is not installed'),
|
||||||
'mysql_support' => $this->l('MySQL support is not activated'),
|
'mysql_support' => $this->l('MySQL support is not activated'),
|
||||||
|
'sessions' => $this->l('Your PHP sessions path is not writable - check with your hosting provider:').' '.$session_path,
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
|||||||
Reference in New Issue
Block a user