diff --git a/.env.example b/.env.example index ac755def1..898aa7694 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,5 @@ # Common params APP_ENV=local -APP_DEBUG=false APP_CRON_ENABLED=true # Database credentials diff --git a/library/defines.php b/library/defines.php index ab80390ca..d29f6afd0 100644 --- a/library/defines.php +++ b/library/defines.php @@ -80,6 +80,7 @@ define('LOG_MAX_SIZE', 1048576); // bytes // Error reporting ini_set('error_reporting', E_ALL); ini_set('display_errors', 0); +ini_set('display_startup_errors', 0); ini_set('log_errors', 1); ini_set('error_log', LOG_DIR . '/php_errors.log'); // path to log file enabled only if log_errors == 1 (native) define('WHOOPS_LOG_FILE', LOG_DIR . '/php_whoops.log'); // log file enabled only if log_errors == 1 (whoops) diff --git a/library/includes/init_bb.php b/library/includes/init_bb.php index f5ebd5887..83e0daa81 100644 --- a/library/includes/init_bb.php +++ b/library/includes/init_bb.php @@ -102,6 +102,7 @@ function bb_setcookie($name, $val, int $lifetime = COOKIE_PERSIST, bool $httponl if (DBG_USER) { ini_set('error_reporting', E_ALL); ini_set('display_errors', 1); + ini_set('display_startup_errors', 1); } else { unset($_COOKIE['explain']); }