B
B
bpGusar2017-10-06 12:54:45
PHP
bpGusar, 2017-10-06 12:54:45

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

2 answer(s)
B
bpGusar, 2017-10-10
@bpGusar

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.

A
Andrey Nikolaev, 2017-10-09
@gromdron

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 question

Ask a Question

731 491 924 answers to any question