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.

Installing SilverStripe /

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

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

ConfigureFromEnv.php echoing HTML list before proper outputs: possibly errors, but of what sort?

Go to End

2 Posts   1265 Views


Community Member, 26 Posts

11 March 2010 at 8:39am

Edited: 11/03/2010 8:41am

I'm not sure what's going on here. I'm trying to _ss_environment.php files for a first project and the following is being echoed before any other content is generated, thus throwing up XML parsing errors and muddying /admin/ and dev/build.

Here's the list that's returned:

<br />
Line 56 of ConfigureFromEnv.php</li>
<br />
Line 8 of _config.php</li>
<br />
Line 6635 of manifest-main</li>

<br />
Line 70 of ManifestBuilder.php</li>
<br />
Line 150 of Core.php</li>
<br />
Line 61 of main.php</li>

This sure LOOKS like an error report, but where is it coming from? And what's with manifest-main requiring a file from my Windows cache? Shouldn't this sort of data be stored somewhere in Apache?


Community Member, 26 Posts

11 March 2010 at 8:51am

Edited: 11/03/2010 8:52am

And the problem was in _ss_environment.php
Make sure that define('SS_ENVIRONMENT_TYPE', 'dev/test/live'); is only passed the one of the three strings, like so:
define('SS_ENVIRONMENT_TYPE', 'dev');
define('SS_ENVIRONMENT_TYPE', 'test');
define('SS_ENVIRONMENT_TYPE', 'live');