Сейчас расскажу какие настройки можно подкрутить в Битриксе для начала его отладки.
1) Отключаем в .htaccess auto_prepend_file /bitrix/modules/security/tools/start.php
2) Включаем логи в Битрикс /bitrix/.settings.php
'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,
),
3) Или в php.ini
display_errors display_startup_errors error_log
4) Отладка выгрузки 1С
init.php
AddEventHandler("main", "OnEndBufferContent", "ChangeMyContent");
function ChangeMyContent($content)
{
if (strpos($_SERVER['REQUEST_URI'],'/bitrix/admin/1c_exchange.php')!==false) {
$codabra = date("Y-m-d H:i:s")."\n";
$codabra.= $content."\n";
$codabra.= $_SERVER['REQUEST_URI']."\n";
$codabra.= "------------------------------\n";
file_put_contents($_SERVER["DOCUMENT_ROOT"].'/mysuperlog.log', $codabra, FILE_APPEND);
}
}