L
L
LB7772014-11-25 20:45:04
1C-Bitrix
LB777, 2014-11-25 20:45:04

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

4 answer(s)
M
Maxim Morozov, 2014-11-26
@murzix

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,
  ),

L
LB777, 2014-11-26
@LB777

It helped when at the beginning of the options.php module file I wrote:

error_reporting(E_ALL);
ini_set('display_errors','On');

A
asdz, 2014-11-25
@asdz

look at php_error_log , probably a syntax error

R
Rad1calDreamer, 2014-11-26
@Rad1calDreamer

.settings.php file

'exception_handling' => array(
    'value' => array(
      'debug'                      => true,

+ Apache logs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question