Jump to:

4938 Posts in 16602 Topics by 1490 members

Installing SilverStripe

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

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

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

Page: 1
Go to End
Author Topic: 986 Views
  • Erin
    Avatar
    Community Member
    26 Posts

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

    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:

    <ul><li><b>Director::set_environment_type(dev/test/live)</b>
    <br />
    Line 56 of ConfigureFromEnv.php</li>
    <li><b>require_once(C:\path_to_silverstripe\sapphire\conf\ConfigureFromEnv.php)</b>
    <br />
    Line 8 of _config.php</li>
    <li><b>require_once(C:\path_to_silverstripe\mysite\_config.php)</b>
    <br />
    Line 6635 of manifest-main</li>
    <li><b>require_once(C:\Windows\Temp\silverstripe-cacheC--formatted_path_to_silverstripe\manifest-main)</b>

    <br />
    Line 70 of ManifestBuilder.php</li>
    <li><b>ManifestBuilder::include_manifest()</b>
    <br />
    Line 150 of Core.php</li>
    <li><b>require_once(C:\path_to_silverstripe\sapphire\core\Core.php)</b>
    <br />
    Line 61 of main.php</li>
    <ul>

    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?

  • Erin
    Avatar
    Community Member
    26 Posts

    Re: ConfigureFromEnv.php echoing HTML list before proper outputs: possibly errors, but of what sort? Link to this post

    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');

    facepalm

    986 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.