4571 Posts in 1384 Topics by 1376 members
Installing SilverStripe
SilverStripe Forums » Installing SilverStripe » SIlverStripe 2.3.7 and 2.4 RC local snow leopard MAMP [Warning] Cannot modify header information Problem
Getting SilverStripe up and running on your computer and on your web server.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1231 Views |
-
SIlverStripe 2.3.7 and 2.4 RC local snow leopard MAMP [Warning] Cannot modify header information Problem

23 April 2010 at 7:36pm Last edited: 23 April 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
Source98 }
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 -
Re: SIlverStripe 2.3.7 and 2.4 RC local snow leopard MAMP [Warning] Cannot modify header information Problem

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.
-
Re: SIlverStripe 2.3.7 and 2.4 RC local snow leopard MAMP [Warning] Cannot modify header information Problem

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
| 1231 Views | ||
|
Page:
1
|
Go to Top |


