Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

SIlverStripe 2.3.7 and 2.4 RC local snow leopard MAMP [Warning] Cannot modify header information Problem


Go to End


3 Posts   1967 Views

Avatar
tonito

Community Member, 24 Posts

23 April 2010 at 7:36pm

Edited: 23/04/2010 7:39pm

I get similar error messages when attempting a fresh install of SS 2.3.7 and 2.4 in Snow Leopard (Cannot modify header information). Managed many installs (with Leopard) before. De-zipped packages with "The Uninstaller". Ran permissions.

This error is when installing 2.4. Previous SS installs work fine locally.

* Director::set_environment_type(dev/test/development)
Line 56 of ConfigureFromEnv.php
* require_once(/Users/xxx/Sites/silverstripetest/sapphire/conf/ConfigureFromEnv.php)
Line 9 of _config.php
* require_once(/Users/xxx/Sites/silverstripetest/mysite/_config.php)
Line 5846 of manifest-main
* require_once(/private/var/folders/Y8/Y81DLnCIHvKzt-TFDyycZE+++TI/-Tmp-/silverstripe-cache-Users-a-Sites-silverstripetest/manifest-main)
Line 70 of ManifestBuilder.php
* ManifestBuilder::include_manifest()
Line 150 of Core.php
* require_once(/Users/xxx/Sites/silverstripetest/sapphire/core/Core.php)
Line 61 of main.php

[Warning] Cannot modify header information - headers already sent by (output started at /Users/xxx/Sites/silverstripetest/sapphire/dev/Debug.php:515)
GET /silverstripetest/

Line 107 in /Users/xxx/Sites/silverstripetest/sapphire/main.php
Source

98 }
99
100 // Connect to database
101 require_once("core/model/DB.php");
102
103 // Redirect to the installer if no database is selected
104 if(!isset($databaseConfig) || !isset($databaseConfig['database']) || !$databaseConfig['database']) {
105 $s = (isset($_SERVER['SSL']) || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off')) ? 's' : '';
106 $installURL = "http$s://" . $_SERVER['HTTP_HOST'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . '/install.php';
107 header("Location: $installURL");
108 die();
109 }
110
111 if (isset($_GET['debug_profile'])) Profiler::mark('DB::connect');
112 DB::connect($databaseConfig);
113 if (isset($_GET['debug_profile'])) Profiler::unmark('DB::connect');

Trace

* header(Location: http://localhost/silverstripetest/install.php)
Line 107 of main.php

Avatar
tonito

Community Member, 24 Posts

24 April 2010 at 4:37pm

Follow up: I could install SIlverStripe 2.3.7 on my PPC powerbook running MAMP 1.8.2 without a hitch.

I could also install SIlverStripe 2.4 RC1 (not 2.3.7) on Snow Leopard on my Intel Mac going launching the install.php (I would get errors just going to the SIlverStripe 2.4 RC1 directory) and MAMP 1.9.

It could all be a problem with MAMP 1.9, Snow Leopard. Will post if I find out more.

Avatar
mobius

Community Member, 54 Posts

29 April 2010 at 12:06pm

It could be that you have a php file with spaces after the closing ?>

It's recommended to removed the closing ?> altogether