I am having a similar issue to https://drupal.org/node/2078259.

The problem is:
1) the environment is set to something different than is specified in the settings.php $conf['environment_override'] variable. (In my case, I don't have any environment set in the db but have $conf['environment_override'] = 'development' in my settings.php file)

2) on init the environment tries to change via environment_force hook_init, but fails to change because the force flag isn't set. Then everything comes to a crashing halt because the drupal_set_message is set to error.

I will submit a patch which simply adds the force flag.

-Alex

Comments

arknoll’s picture

arknoll’s picture

Assigned: arknoll » Unassigned
Status: Active » Needs review
mrfelton’s picture

I believe this is the correct approach. Without this patch, environment_force doesn't really do a whole lot.

  • arknoll committed 5b8d6a0 on 7.x-1.x
    Issue #2200863 by arknoll: Force environment switch when using...
arknoll’s picture

Status: Needs review » Fixed

Patch approved. Thanks mrfelton!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.