Есть такая проблема. в разделах например новости /news/ отваливается heder.php
что делаю не так?
Вот он подключается:
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
вот код header.php который расположен в папке bitrix:
<?require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog.php");?>
а вот heder.php который сидит в папке шаблона:
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
IncludeTemplateLangFile($_SERVER["DOCUMENT_ROOT"]."/bitrix/templates/".SITE_TEMPLATE_ID."/header.php");
CJSCore::Init(array("fx"));
$curPage = $APPLICATION->GetCurPage(true);
$theme = COption::GetOptionString("main", "wizard_eshop_bootstrap_theme_id", "yellow", SITE_ID);
?>
<!DOCTYPE html>
<html xml:lang="<?=LANGUAGE_ID?>" lang="<?=LANGUAGE_ID?>">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<!-- jQuery library (served from Google) -->
<!-- bxSlider Javascript file -->
<script src="/js/jquery.bxslider.min.js"></script>
<script src="/js/tab.js"></script>
<script src='https://code.jquery.com/jquery-2.2.4.min.js'></script>
<script src="bitrix/templates/eshop_bootstrap_yellow/js/index.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<link rel="stylesheet" href="bitrix/templates/eshop_bootstrap_yellow/tab.css" type="text/css" media="screen" />
<link rel="stylesheet" href="bitrix/templates/eshop_bootstrap_yellow/css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="bitrix/templates/eshop_bootstrap_yellow/accordionmenu.css" type="text/css" media="screen" />
<?$APPLICATION->ShowHead();?>
<?
$APPLICATION->SetAdditionalCSS(SITE_TEMPLATE_PATH."/colors.css", true);
$APPLICATION->SetAdditionalCSS("/bitrix/css/main/bootstrap.css");
$APPLICATION->SetAdditionalCSS("/bitrix/css/main/font-awesome.css");
?>
<title><?$APPLICATION->ShowTitle()?></title>
</head>
<body class="bx-background-image bx-theme-<?=$theme?>" <?=$APPLICATION->ShowProperty("backgroundImage")?>>
<div id="panel"><?$APPLICATION->ShowPanel();?></div>
<div class="bx-wrapper" id="bx_eshop_wrap">
<div id="menu_div">
<div id="navigation1">
<div id="menu">
<ul id="nav">
<li><a href="index.php">Главная</a></li>
<li><a href="dostavka-i-oplata.php">Доставка и оплата</a></li>
<li><a href="tseny.php">Цены</a></li>
<li><a href="/news/">Новости</a></li>
<li><a href="aktsii.php">Акции</a></li>
<li><a href="o-kompanii.php">О компании</a></li>
<li><a href="kontakty.php">Контакты</a></li>
</ul>
<!-- Корзина -->
<form class="searchform" action="#">
<?$APPLICATION->IncludeComponent(
"bitrix:sale.basket.basket.line",
"bootstrap_v4",
array(
"SHOW_PERSONAL_LINK" => "N",
"SHOW_NUM_PRODUCTS" => "N",
"SHOW_TOTAL_PRICE" => "Y",
"SHOW_PRODUCTS" => "N",
"POSITION_FIXED" => "N",
"SHOW_AUTHOR" => "Y",
"PATH_TO_BASKET" => SITE_DIR."personal/cart/",
"PATH_TO_PERSONAL" => SITE_DIR."personal/",
"PATH_TO_REGISTER" => SITE_DIR."login/",
"PATH_TO_PROFILE" => SITE_DIR."personal/",
"COMPONENT_TEMPLATE" => "bootstrap_v4",
"PATH_TO_ORDER" => SITE_DIR."personal/order/make/",
"SHOW_EMPTY_VALUES" => "Y",
"PATH_TO_AUTHORIZE" => "",
"SHOW_REGISTRATION" => "Y",
"HIDE_ON_BASKET_PAGES" => "Y"
),
false
);?>
</form>
<!-- / Search Form -->
</div><!-- #menu КОНЕЦ-->
</div><!-- #navigation КОНЕЦ-->
</div><!-- #menu_div КОНЕЦ-->
<div class="workarea">
<div class="container bx-content-seection">
<div class="col-md-12 hidden-xs" style="padding-top: 10px;">
<table width="100%" style="text-align: center;padding-top: 10px;font-weight: 600;font-family: Century Gothic;">
<tr>
</tr>
</table>
</div>
</div></div>
<header class="bx-header">
<div class="bx-header-section container">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
<div class="bx-logo">
<a class="bx-logo-block hidden-xs" href="<?=SITE_DIR?>">
<?$APPLICATION->IncludeComponent("bitrix:main.include", "", array("AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR."include/company_logo.php"), false);?>
</a>
<a class="bx-logo-block hidden-lg hidden-md hidden-sm text-center" href="<?=SITE_DIR?>">
<?$APPLICATION->IncludeComponent("bitrix:main.include", "", array("AREA_FILE_SHOW" => "file", "PATH" => SITE_DIR."include/company_logo_mobile.php"), false);?>
</a>
</div>
</div>
<div class="col-md-6" style="margin: 15px 0 0;">
<?$APPLICATION->IncludeComponent(
"bitrix:search.title",
"visual",
Array(
"CATEGORY_0" => array(),
"CATEGORY_0_TITLE" => "",
"CHECK_DATES" => "N",
"CONTAINER_ID" => "title-search",
"CONVERT_CURRENCY" => "N",
"INPUT_ID" => "title-search-input",
"NUM_CATEGORIES" => "1",
"ORDER" => "date",
"PAGE" => "#SITE_DIR#search/index.php",
"PREVIEW_TRUNCATE_LEN" => "",
"PRICE_CODE" => array(),
"PRICE_VAT_INCLUDE" => "Y",
"SHOW_INPUT" => "Y",
"SHOW_OTHERS" => "N",
"SHOW_PREVIEW" => "Y",
"TOP_COUNT" => "5",
"USE_LANGUAGE_GUESS" => "Y"
)
);?>
</div>
<div class="col-lg-3 col-md-3 col-sm-4 col-xs-12 hidden-xs">
<font size="6" style="font-weight: bold;"><a href="tel:74951427317" style="color: black;">+7(495)142-73-17</a></font>
<center> <font size="2" style="font-weight: bold;">Ежедневно с 09:00 до 21:00</font></center>
</div>
</div>
<div class="row">
<div class="col-md-12 hidden-xs">
<?$APPLICATION->IncludeComponent(
"bitrix:menu",
"catalog_horizontal",
array(
"ROOT_MENU_TYPE" => "top",
"MENU_CACHE_TYPE" => "A",
"MENU_CACHE_TIME" => "36000000",
"MENU_CACHE_USE_GROUPS" => "N",
"MENU_THEME" => "yellow",
"CACHE_SELECTED_ITEMS" => "N",
"MENU_CACHE_GET_VARS" => array(
),
"MAX_LEVEL" => "4",
"CHILD_MENU_TYPE" => "",
"USE_EXT" => "Y",
"DELAY" => "N",
"ALLOW_MULTI_SELECT" => "N",
"COMPONENT_TEMPLATE" => "catalog_horizontal"
),
false
);?>
</div>
</div>
<?if ($curPage != SITE_DIR."index.php"):?>
<div class="row">
<div class="col-lg-12">
<?$APPLICATION->IncludeComponent("bitrix:search.title", "visual", array(
"NUM_CATEGORIES" => "1",
"TOP_COUNT" => "5",
"CHECK_DATES" => "N",
"SHOW_OTHERS" => "N",
"PAGE" => SITE_DIR."catalog/",
"CATEGORY_0_TITLE" => GetMessage("SEARCH_GOODS"),
"CATEGORY_0" => array(
0 => "iblock_catalog",
),
"CATEGORY_0_iblock_catalog" => array(
0 => "all",
),
"CATEGORY_OTHERS_TITLE" => GetMessage("SEARCH_OTHER"),
"SHOW_INPUT" => "Y",
"INPUT_ID" => "title-search-input",
"CONTAINER_ID" => "search",
"PRICE_CODE" => array(
0 => "BASE",
),
"SHOW_PREVIEW" => "Y",
"PREVIEW_WIDTH" => "75",
"PREVIEW_HEIGHT" => "75",
"CONVERT_CURRENCY" => "Y"
),
false,
array(
"ACTIVE_COMPONENT" => "N"
)
);?>
</div>
</div>
<?endif?>
<?if ($curPage != SITE_DIR."index.php"):?>
<div class="row">
<div class="col-lg-3" id="navigation">
<table style="text-align: left; width: 302px;" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<ol class="korpus3">
<li tabindex="0"><i class="fa fa-chevron-down" aria-hidden="true" style="padding-right: 10px;"></i>
Каталог
<div style="text-align: center;">
<ol><a href="index.php">Главная</a></ol>
<ol><a href="#">Элементы питания</a></ol>
<ol><a href="#">Фонари</a></ol>
<ol><a href="#">Светильники</a></ol>
<ol><a href="#">Аксессуары</a></ol>
<ol><a href="#">Зонты</a></ol>
<ol><a href="#">Оборудование</a></ol>
<ol><a href="#">Упаковка</a></ol>
<ol><a href="#">Кабели</a></ol>
<ol><a href="#">АКБ</a></ol>
<ol><a href="#">НАушники</a></ol>
<ol><a href="#">Акустика</a></ol>
<ol><a href="#">Расходники</a></ol>
<ol><a href="#">Инструменты</a></ol>
<ol><a href="#">Спецодежда</a></ol>
<ol><a href="#">Защитные стекла</a></ol>
<ol><a href="#">Бытовые лампы</a></ol>
<ol><a href="#">Бумага</a></ol>
<ol><a href="#">Новинки и хиты</a></ol>
<ol><a href="#">Акционные товары</a></ol>
<ol><a href="#">Уценка</a></ol>
</div>
<li tabindex="0"><i class="fa fa-chevron-down" aria-hidden="true" style="padding-right: 10px;"></i>
Бренды
<div>
<ol><a href="#">Remax</a></ol>
<ol><a href="#">Duracell</a></ol>
<ol><a href="#">Varta</a></ol>
<ol><a href="#">GP</a></ol>
<ol><a href="#">Cameolon</a></ol>
<ol><a href="#">Energizer</a></ol>
</div>
</ol>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<h1 class="bx-title dbg_title" id="pagetitle"><?=$APPLICATION->ShowTitle(false);?></h1>
<?endif?>
</div>
</header>
<div class="workarea">
<div class="container bx-content-seection">
<div class="row">
<div class="col-md-12 hidden-xs">
<script type="text/javascript">
$(document).ready(function() {
// Store variables
var accordion_head = $('.accordion > li > a'),
accordion_body = $('.accordion li > .sub-menu');
// Open the first tab on load
accordion_head.first().addClass('active').next().slideDown('normal');
// Click function
accordion_head.on('click', function(event) {
// Disable header links
event.preventDefault();
// Show and hide the tabs on click
if ($(this).attr('class') != 'active'){
accordion_body.slideUp('normal');
$(this).next().stop(true,true).slideToggle('normal');
accordion_head.removeClass('active');
$(this).addClass('active');
}
});
});
</script>
<div class="bx-content <?=("col-md-12 col-sm-12")?>">
вот такая простая задача. помогите пожалуйста, голова уже кипит.
Спасибо заранее
https://clck.ru/F979P
Ссылка где находится проблема