Roundcube Community Forum

 

installer error

Started by Eddy2909, March 19, 2013, 07:51:29 AM

Previous topic - Next topic

Eddy2909

hey there!

i got by executing the installer following error:

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/sites/mail/installer/index.php:1) in /home/www/sites/mail/installer/index.php on line 59
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/sites/mail/installer/index.php:1) in /home/www/sites/mail/installer/index.php on line 59
Notice: Undefined index: _step in /home/www/sites/mail/installer/rcube_install.php on line 61
Notice: Use of undefined constant RCMAIL_VERSION - assumed 'RCMAIL_VERSION' in /home/www/sites/mail/config/main.inc.php on line 308
Warning: Cannot modify header information - headers already sent by (output started at /home/www/sites/mail/installer/index.php:1) in /home/www/sites/mail/installer/index.php on line 92


Could you help?


thanks!

German: http://www.roundcubeforum.net/index.php/topic,10903.0.html

SKaero

It looks like there there maybe white space at the top of the installer page. What version of RoundCube are you trying to install?

Eddy2909

#2
the newest one..  ;)  0.8.5

whitespaces because of header error?
just uploaded the installer folder - now it says:


WStrict Standards: Non-static method PEAR::setErrorHandling() should not be called statically in /home/www/sites/mail/installer/utils.php on line 70
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/sites/mail/installer/utils.php:70) in /home/www/sites/mail/installer/index.php on line 59
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/sites/mail/installer/utils.php:70) in /home/www/sites/mail/installer/index.php on line 59
Strict Standards: Non-static method rcube_install::get_instance() should not be called statically in /home/www/sites/mail/installer/index.php on line 61
Warning: Cannot modify header information - headers already sent by (output started at /home/www/sites/mail/installer/utils.php:70) in /home/www/sites/mail/installer/index.php on line 92


*confused*

SKaero

Well now "WStrict Standards: Non-static method PEAR::setErrorHandling() should not be called statically in /home/www/sites/mail/installer/utils.php on line 70" is causing the white space. Try turning off strict error reporting.

Eddy2909

changed installer/index.php:
ini_set('error_reporting', E_ALL&~E_NOTICE); to
ini_set('error_reporting', E_ERROR | E_WARNING | E_PARSE);
error_reporting(E_ERROR | E_WARNING | E_PARSE);


now its

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/sites/mail/installer/index.php:1) in /home/www/sites/mail/installer/index.php on line 62
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/sites/mail/installer/index.php:1) in /home/www/sites/mail/installer/index.php on line 62
Warning: Cannot modify header information - headers already sent by (output started at /home/www/sites/mail/installer/index.php:1) in /home/www/sites/mail/installer/index.php on line 95

Eddy2909

changed some basic things.. now its working for for version 0.8.5:
<?php
session_start
();
// go to 'check env' step if we have a local configuration
if ($RCI->configured && empty($_REQUEST['_step'])) {
  
header("Location: ./?_step=1");
  exit;
}
//http://php.net/manual/de/function.error-reporting.php
//ini_set('error_reporting', E_ALL&~E_NOTICE);
ini_set('error_reporting'E_ERROR E_WARNING E_PARSE);
error_reporting(E_ERROR E_WARNING E_PARSE);

ini_set('display_errors'1);

define('INSTALL_PATH'realpath(dirname(__FILE__) . '/../').'/');
define('RCMAIL_CONFIG_DIR'INSTALL_PATH 'config');
define('RCMAIL_CHARSET''UTF-8');

$include_path  INSTALL_PATH 'program/lib' PATH_SEPARATOR;
$include_path .= INSTALL_PATH 'program' PATH_SEPARATOR;
$include_path .= INSTALL_PATH 'program/include' PATH_SEPARATOR;
$include_path .= ini_get('include_path');

set_include_path($include_path);

require_once 
'utils.php';
require_once 
'main.inc';



$RCI rcube_install::get_instance();
$RCI->load_config();

if (isset(
$_GET['_getfile']) && in_array($_GET['_getfile'], array('main''db'))) {
  
$filename $_GET['_getfile'] . '.inc.php';
  if (!empty(
$_SESSION[$filename])) {
    
header('Content-type: text/plain');
    
header('Content-Disposition: attachment; filename="'.$filename.'"');
    echo 
$_SESSION[$filename];
    exit;
  }
  else {
    
header('HTTP/1.0 404 Not found');
    die(
"The requested configuration was not found. Please run the installer from the beginning.");
  }
}

if (
$RCI->configured && ($RCI->getprop('enable_installer') || $_SESSION['allowinstaller']) &&
    isset(
$_GET['_mergeconfig']) && in_array($_GET['_mergeconfig'], array('main''db'))) {
  
$filename $_GET['_mergeconfig'] . '.inc.php';

  
header('Content-type: text/plain');
  
header('Content-Disposition: attachment; filename="'.$filename.'"');

  
$RCI->merge_config();
  echo 
$RCI->create_config($_GET['_mergeconfig'], true);
  exit;
}

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
*******rest of the script here***********


session started could not be started and header changes could not be made after first output..

*closed*