<p>You’re setting the <code>devMode</code> setting to the string <code>'false'</code>, which seems to be evaluated to true. You need to set it to a boolean.</p>

<pre><code>'*' =&gt; array(
    'devMode' =&gt; false,
),
'.dev' =&gt; array(
    'devMode' =&gt; true,
),
</code></pre>

CC BY-SA 3.0
2017-11-22T10:41:48.203Z
Ah ha. Good spot carl. Will remove quotes and re-upload. School boy error!!
Lettie
CC BY-SA 3.0
2017-11-22T10:40:08.380Z
2017-11-22T10:40:08.380Z
carlcs
<p>The ordersequence of the environements does matter.</p>

<pre><code>return array(
  '*' =&gt; array(
    //yadayadayada
  ),
  // this has priority over the lower entry
  '.com' =&gt; array(
    'devMode' =&gt; true,
  ),
  // this has even lower priority
  '.dev' =&gt; array(
    'devMode' =&gt; false,
   ),
);
</code></pre>

CC BY-SA 3.0
2017-11-22T10:30:39.983Z
Or was it vice versa? Now I'm not sure.
KSPR
CC BY-SA 3.0
2017-11-22T10:38:33.950Z
No, you are right with priority. But settings in the array with the key `'*'` are overridden by the (matching) ones in the other keys.
carlcs
CC BY-SA 3.0
2017-11-22T10:40:07.287Z
Both are set to false though!
Lettie
CC BY-SA 3.0
2017-11-22T10:30:17.033Z
2017-11-22T10:42:52.533Z
2017-11-22T10:42:52.533Z
KSPR
<p>I have an issue with a site I have just put live. devMode is still enabled even though the config site sets it as false for .com.</p>

<p>Code snippet:</p>

<pre><code>'*' =&gt; array(
        'devMode' =&gt; 'false',
        'siteName' =&gt; 'sitename',
        'omitScriptNameInUrls' =&gt; true,
        'maxUploadFileSize' =&gt; 33554432,
        'defaultSearchTermOptions' =&gt; array(
            'subLeft' =&gt; true,
            'subRight' =&gt; true,
        ),
        ),
    '.com' =&gt; array(
        'devMode' =&gt; 'false',
        'env' =&gt; 'live',
</code></pre>

<p>I did have a .dev option as well but removed this to see if it would make any difference but it hasn't.</p>

<p>Next I cleared all caches and still no joy devMode is still active. How can I clear this for the the live site has it logged it in the DB somewhere and it's not removing it?</p>

<devmode>
Issue Devmode is still enable in multi-environment config file
# Issue Devmode is still enable in multi-environment config file

(Asked by: username_0 on 2017-11-22)

I have an issue with a site I have just put live. devMode is still enabled even though the config site sets it as false for .com.
Code snippet:
'*' => array(
        'devMode' => 'false',
        'siteName' => 'sitename',
        'omitScriptNameInUrls' => true,
        'maxUploadFileSize' => 33554432,
        'defaultSearchTermOptions' => array(
            'subLeft' => true,
            'subRight' => true,
        ),
        ),
    '.com' => array(
        'devMode' => 'false',
        'env' => 'live',

I did have a .dev option as well but removed this to see if it would make any difference but it hasn't.
Next I cleared all caches and still no joy devMode is still active. How can I clear this for the the live site has it logged it in the DB somewhere and it's not removing it?

**Tags:** devmode


---

## 2 answers

### Answer by username_1 on 2017-11-22. Score: 2 | Accepted answer

You’re setting the devMode setting to the string 'false', which seems to be evaluated to true. You need to set it to a boolean.
'*' => array(
    'devMode' => false,
),
'.dev' => array(
    'devMode' => true,
),

> **Comments:**
> **username_0**: Ah ha. Good spot carl. Will remove quotes and re-upload. School boy error!!  

---

### Answer by username_2 on 2017-11-22. Score: 1

The ordersequence of the environements does matter.
return array(
  '*' => array(
    //yadayadayada
  ),
  // this has priority over the lower entry
  '.com' => array(
    'devMode' => true,
  ),
  // this has even lower priority
  '.dev' => array(
    'devMode' => false,
   ),
);

> **Comments:**
> **username_2**: Or was it vice versa? Now I'm not sure.  
> **username_1**: No, you are right with priority. But settings in the array with the key `'*'` are overridden by the (matching) ones in the other keys.  
> **username_0**: Both are set to false though!  

---

