2018/08/18 12:36:49 [error] 31499#31499: *1 FastCGI sent in stderr: "PHP message: XDebug could not open the remote debug file '/tmp/xdebug_remote.log'.
PHP message: PHP Notice: Undefined offset: 0 in /home/ruslan/Разработка/latina/form.php on line 47
PHP message: PHP Stack trace:
PHP message: PHP 1. {main}() /home/ruslan/Разработка/latina/form.php:0
PHP message: PHP 2. Validate->getValidate() /home/ruslan/Разработка/latina/form.php:11" while reading response header from upstream, client: 127.0.0.1, server: latina.site, request: "POST /form.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "latina.site", referrer: "http://latina.site/"
$dbRes = CIBlockSection::GetList(array(), $arFilter, false, array("ID"));
if(defined("BX_COMP_MANAGED_CACHE"))
{
global $CACHE_MANAGER;
$CACHE_MANAGER->StartTagCache("/iblock/catalog");
if ($arCurSection = $dbRes->Fetch())
$CACHE_MANAGER->RegisterTag("iblock_id_".$arParams["IBLOCK_ID"]);
...
$APPLICATION->IncludeComponent(
"bitrix:catalog.smart.filter",
"",
array(
"IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],
"IBLOCK_ID" => $arParams["IBLOCK_ID"],
"SECTION_ID" => $arCurSection['ID'],
....
if (!empty($arResult["VARIABLES"]["SECTION_ID"]) || !empty($arResult["VARIABLES"]["SECTION_ID"])) {
if ($arCurSection = $dbRes->Fetch())
$CACHE_MANAGER->RegisterTag("iblock_id_".$arParams["IBLOCK_ID"]);
} else {
$arCurSection["ID"] = "";
}
if (pg_send_query($dbconn, 'INSERT INTO lid (name, phone, type_id) VALUES ("Hello", "+4623114563", 1) ')){
var_dump("Insert");
} else {
var_dump("Not insert");
}
$res1 = pg_get_result($dbconn);
var_dump(pg_result_error($res1));
string(193) "ОШИБКА: столбец "Hello" не существует
LINE 1: INSERT INTO lid (name, phone, type_id) VALUES ("Hello", "+46...
^