Answer the question
In order to leave comments, you need to log in
How to find errors in bitrix if a white screen is displayed?
Good time of the day!
I have a site on Bitrix to which I had to make my own module.
Wrote.
I saw it in the bitrix admin panel.
Clicked install.
Installed and registered the necessary data in the database.
But when you enter this module in the admin panel, a white screen is displayed. I rummaged through the entire Internet, tried all the options for displaying errors, but it did not work out on the screen. In html, the same is not displayed and is not written to the site logs. Apache log gives 200 code when requested ( site.zz/bitrix/admin/settings.php?lang=ru&mid=my.module&mid_menu=1 ).
How to understand what is wrong?
Bitrix version 14.9.3.
Edition: standard
Answer the question
In order to leave comments, you need to log in
If the Bitrix is fresh and there is a .settings.php file in the /bitrix/ folder, then you can specify the file for the error log and the types of errors that will be recorded there.
My local settings are:
'exception_handling' =>
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' => true,
),
It helped when at the beginning of the options.php module file I wrote:
error_reporting(E_ALL);
ini_set('display_errors','On');
.settings.php file
'exception_handling' => array(
'value' => array(
'debug' => true,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question