Answer the question
In order to leave comments, you need to log in
How to enable PHP error output in Bitrix VM?
1. I create an error.php file in the root of the site with the following content:
<?php
echo show_me_error;
?>
$DBDebug = true;
...
array (
'value' =>
array (
'debug' => true,
'handled_errors_types' => E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE & ~E_DEPRECATED,
'exception_errors_types' => E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_USER_WARNING & ~E_USER_NOTICE & ~E_COMPILE_WARNING,
'ignore_silence' => true,
'assertion_throws_exception' => false,
'assertion_error_type' => 256,
'log' => array (
'settings' => array (
'file' => 'bitrix/modules/error.log',
'log_size' => 1000000,
),
),
),
'readonly' => false,
),
...
php_value display_errors 1
php_value error_reporting 7
Answer the question
In order to leave comments, you need to log in
<?php
ini_set('display_errors', 1);
error_reporting(-1);
echo show_me_error;
php_value error_reporting 7
7
it is E_ERROR | E_WARNING | E_PARSE
with this setting, notices are not displayed, php_value error_reporting -1
Enable error reporting in the admin panel in the settings of the main module
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question