Answer the question
In order to leave comments, you need to log in
Can anyone give me some ideas why there are such breaks in the code?
view-source: sblregion.ru Let me
explain a little.
The site works on Bitrix, breaks appear only after the menu is enabled, the menu is removed and everything is fine.
But no problems were found in the code of the menu itself and the wrapping elements, what then can create such gaps?
Does anyone have any options?
Answer the question
In order to leave comments, you need to log in
SOLVED: Went
to edit menu items "as file" and found about 700 lines of spaces b***! What kalich did I xs, I was looking for a problem for 4 days.
Okay, why such big breaks in the code?
1) There may be an error in the template file itself . You need to check all patterns for characters in the loop.
You can try replacing your menu template with a standard Bitrix template. Did it help? Template error. Not? Error elsewhere.
2) Perhaps the error lies in the result_modifier.php template .
Is the file missing or is there an error? Error elsewhere.
3) Perhaps someone moved the menu to local or changed the file in the core (/bitrix/components/bitrix/menu).
The kernel has not changed and there is no component in local? Error elsewhere.
4) Perhaps the extended menu is used and there is an error in it.
If the extended menu is not used or there is no error in it, then the error is elsewhere
5) There may be an error when forming the menu .
For example, menu items are formed by php code or some kind of include/require happens inside. Is
the error still not found?
Congratulations - you got to a very good debug and maybe you should contact technical support?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question