From 10682a7e334c5f5e0d805c974007fc5518023986 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 26 Feb 2011 23:11:48 +0000 Subject: Fixes #2799 added check for session.auto_start git-svn-id: http://code.elgg.org/elgg/trunk@8499 36083f99-b078-4883-b0ff-0f9b5a30f544 --- install/ElggInstaller.php | 7 +++++++ install/languages/en.php | 1 + 2 files changed, 8 insertions(+) (limited to 'install') diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php index aa5903a08..562cdff87 100644 --- a/install/ElggInstaller.php +++ b/install/ElggInstaller.php @@ -1024,6 +1024,13 @@ class ElggInstaller { 'message' => elgg_echo("install:check:php:register_globals") ); } + + if (ini_get('session.auto_start')) { + $phpReport[] = array( + 'severity' => 'failure', + 'message' => elgg_echo("install:check:php:session.auto_start") + ); + } } /** diff --git a/install/languages/en.php b/install/languages/en.php index ed42aa685..73a862cd0 100644 --- a/install/languages/en.php +++ b/install/languages/en.php @@ -42,6 +42,7 @@ If you are ready to proceed, click the Next button.", 'install:check:php:safe_mode' => 'Running PHP in safe mode is not recommened and may cause problems with Elgg.', 'install:check:php:arg_separator' => 'arg_separator.output must be & for Elgg to work and your server\'s value is %s', 'install:check:php:register_globals' => 'Register globals must be turned off.', + 'install:check:php:session.auto_start' => "session.auto_start must be off for Elgg to work. Either change the configuration of your server or add this directive to Elgg's .htaccess file.", 'install:check:enginedir' => 'Your web server does not have permission to create the settings.php file in the engine directory. You have two choices: -- cgit v1.2.3