Edited the header.php file, saved it, and such nonsense began on the site ( http://www.verbnyi.ru/contacts/ ). Styles and js-files stopped loading, canceled the changes in the header.php file, the problem still remained.

How to be?

  <?$APPLICATION->ShowPanel();?> <!--header--> <div class="i-header"> <header class="b-header"> <a class="b-header__logo" href="/" ></a> <? $hh=$_SERVER['REQUEST_URI']; if ($hh=='/bron/m2/bron.php'){ echo '<div class="icoxsl"><a id="bxid_986036" href="/upload/reestr-m5-2.xlsx" title="Реестр свободных квартир" ></a><br/>Реестр свободных квартир<br/><span>(15.04.2014)</span></div>'; } elseif ($hh=='/bron/bron.php'){ echo '<div class="icoxsl"><a id="bxid_735836" href="/upload/reestr-m5-3.xlsx" title="Реестр свободных квартир" ></a><br/>Реестр свободных квартир<br/><span>(15.04.2014)</span></div>'; } elseif ($hh=='/bron/m3/bron.php'){ echo '<div class="icoxsl"><a id="bxid_997561" href="/upload/reestr-m5-1.xlsx" title="Реестр свободных квартир" ></a><br/>Реестр свободных квартир<br/><span>(15.04.2014)</span></div>'; } ?> <?$APPLICATION->IncludeComponent( "bitrix:menu", "template1", Array( "ROOT_MENU_TYPE" => "top", "MAX_LEVEL" => "1", "USE_EXT" => "N", "MENU_CACHE_TYPE" => "A", "MENU_CACHE_TIME" => "3600", "MENU_CACHE_USE_GROUPS" => "N", "MENU_CACHE_GET_VARS" => "" ) );?> </header> </div> <div class="i-container"> <? $hh=explode('/',$_SERVER['REQUEST_URI']); if ($hh[1]=='about') { echo '<div style="min-height:600px;" class="b-main b-main_bg" role="main">'; } else { echo '<div style="min-height:800px;" class="b-main" role="main">'; } ?> <h1 class="b-main__title"><?$APPLICATION->ShowTitle(false);?></h1> <?$APPLICATION->IncludeComponent( "bitrix:main.include", "", Array( "AREA_FILE_SHOW" => "file", "PATH" => "/include/tel.php", "EDIT_TEMPLATE" => "" ) );?></div> 

Closed due to the fact that off-topic by user194374, user207618, cheops , Bald , aleksandr barakin 15 Aug '16 at 7:03 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - community spirit, community spirit, cheops, Bald, aleksandr barakin
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • one
    They are not even visible in the code, so they are not loaded. Throw the file code, we'll see. - mountpoint
  • @mountpoint updated the first post. - Lektor
  • And what's going on between the head tags? - mountpoint
  • @mountpoint have no idea, but what should? - Lektor
  • Judging by the code, it is not at all: joxi.ru/GrqVgpZfGxXPmz - mountpoint

1 answer 1

The issue is resolved: as @mountpoint said, the <head> </ head> part was missing. Apparently, after saving the file in the internal editor, he stupidly cut it. Inserted, it all worked.

  • Well, that's nice - mountpoint