A
A
Aleksander9112017-09-29 14:11:35
1C-Bitrix
Aleksander911, 2017-09-29 14:11:35

Why Bitrix component template scripts are not connected?

Good day everyone!
I connect the standard catalog component template, copy it to my site template, open the catalog of any of the product categories and the firebug falls asleep with a bunch of errors. The main mistakes are

Загрузка <script> с источником «http://САЙТ/bitrix/components/bitrix/catalog.section/templates/.default/script.js?15063342517949» не удалась.
Загрузка <script> с источником «http://САЙТ/bitrix/components/bitrix/catalog.item/templates/.default/script.js?150633425062019» не удалась.
Загрузка <script> с источником «http://САЙТ/bitrix/components/bitrix/catalog.product.subscribe/templates/.default/script.js?150633419925082» не удалась.

Well, the rest of the errors are clearly the case of is not defined variables. Website on a local server.
In what there can be a problem do not prompt?
PS: I tried to copy these files to the catalog component template, but it also writes the same errors from there ... sadness
The solution may be useful to someone:
It turned out that in Open Server, when used in the Apache + nginx bundle, all requests containing .default are blocked by the rule in nginx config for virtualhost: The
location ~ /\. {deny all;}
issue was resolved by deleting this line.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2017-09-29
@babarun

Do the files exist on the specified path?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question