Developer Mode

RE: v4.3.1 … What happened to the Developer Mode check box to turn off / on or am I missing something or do we now have to edit config.local.php or ?



I think i've had too much coffee just cant find the option…let me know please…

Design, File Editor

Click on the gear top right

On Site Template editing

Please check the following answer:

[quote name='chrisbti' timestamp='1432512327' post='215599']

RE: v4.3.1 … What happened to the Developer Mode check box to turn off / on or am I missing something or do we now have to edit config.local.php or ?



I think i've had too much coffee just cant find the option…let me know please…

[/quote]



It is in config.php file , string 99:



// Number of seconds before installation script will be redirected to itself to avoid server timeouts
define('INSTALL_DB_EXECUTION', SECONDS_IN_HOUR); // 1 hour

//Uncomment to enable the developer tools: debugger, PHP and SQL loggers, etc.
//define('DEBUG_MODE', true);

//Uncomment to enable error reporting.
//define('DEVELOPMENT', true);

// Theme description file name
define('THEME_MANIFEST', 'manifest.json');
define('THEME_MANIFEST_INI', 'manifest.ini');

[quote name='kogi' timestamp='1432531321' post='215602']

Design, File Editor

Click on the gear top right

On Site Template editing

[/quote]



I get this error…



404



Page Not Found

[color=#333333]



The page you have requested cannot be found.

[/color]

[quote name=‘chrisbti’ timestamp=‘1432609663’ post=‘215743’]

I get this error…

[/quote]



That’s weird. but I gave the wrong answer anyway :(

[quote name='Cart-Power' timestamp='1432567470' post='215715']

It is in config.php file , string 99:



// Number of seconds before installation script will be redirected to itself to avoid server timeouts
define('INSTALL_DB_EXECUTION', SECONDS_IN_HOUR); // 1 hour

//Uncomment to enable the developer tools: debugger, PHP and SQL loggers, etc.
//define('DEBUG_MODE', true);

//Uncomment to enable error reporting.
//define('DEVELOPMENT', true);

// Theme description file name
define('THEME_MANIFEST', 'manifest.json');
define('THEME_MANIFEST_INI', 'manifest.ini');


[/quote]



Isn't there another simpler way like in ver. 4.2.4 ?

To me, this method is a poor way to do it.

Generally you want to only have DEVELOPMENT be enabled/true for certain users/IP's.

If it's going to be a part of the cart then it should be in the session auth structure.

Otherwise it should be done dependent on the IP from $_SERVER['REMOTE_ADDR']. I.e. a local_conf.php that contains:

```php

function my_dbg_ip() {
$ips = array('67.168.X.Y', 'someother_ip');
return in_array($_SERVER['REMOTE_ADDR'], $ips);
}

if( my_dbg_ip() ) {
if( !defined('DEVELOPMENT') ) {
define('DEVELOPMENT', true);
}
error_reporting(E_ALL);
ini_set('display_errors', true);
define('DEBUG_MODE', true);
}
?>

```

The point being that you don't want to display errors to your customers nor give them debug_mode.