S
S
SteepNET2021-02-13 13:43:57
1C-Bitrix
SteepNET, 2021-02-13 13:43:57

Bitrix does not display products (bitrix:catalog) /catalog/?

Good afternoon! I can’t understand why it doesn’t display products through the bitrix:catalog complex component located in /catalog/
The product itself is there, it is opened and displayed on the main page using bitrix:catalog.top and bitrix:catalog.section , everything is fine there.

And in /catalog/ displays only sections, the goods themselves do not display .. I

reviewed everything, please tell me where I did not finish it?
Everything is on BitrixENV, there are no errors during diagnostics..

/home/bitrix/www/urlrewrite.php

<?php
$arUrlRewrite=array (
0 =>
array (
'CONDITION' => '#^/online/([\\.\\-0-9a-zA-Z]+)(/?)([^/]*)#',
'RULE' => 'alias=$1',
'ID' => '',
'PATH' => '/desktop_app/router.php',
'SORT' => 100,
),
1 =>
array (
'CONDITION' => '#^/bitrix/services/ymarket/#',
'RULE' => '',
'ID' => '',
'PATH' => '/bitrix/services/ymarket/index.php',
'SORT' => 100,
),
2 =>
array (
'CONDITION' => '#^/online/(/?)([^/]*)#',
'RULE' => '',
'ID' => '',
'PATH' => '/desktop_app/router.php',
'SORT' => 100,
),
3 =>
array (
'CONDITION' => '#^/stssync/calendar/#',
'RULE' => '',
'ID' => 'bitrix:stssync.server',
'PATH' => '/bitrix/services/stssync/calendar/index.php',
'SORT' => 100,
),
4 =>
array (
'CONDITION' => '#^/personal/order/#',
'RULE' => '',
'ID' => 'bitrix:sale.personal.order',
'PATH' => '/personal/order/index.php',
'SORT' => 100,
),
5 =>
array (
'CONDITION' => '#^/proizvoditeli/#',
'RULE' => '',
'ID' => 'krayt:brend',
'PATH' => '/proizvoditeli/index.php',
'SORT' => 100,
),
6 =>
array (
'CONDITION' => '#^/personal/#',
'RULE' => '',
'ID' => 'bitrix:sale.personal.section',
'PATH' => '/personal/index.php',
'SORT' => 100,
),
7 =>
array (
'CONDITION' => '#^/podborki/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/podborki/index.php',
'SORT' => 100,
),
8 =>
array (
'CONDITION' => '#^/articles/#',
'RULE' => '',
'ID' => 'bitrix:news',
'PATH' => '/articles/index.php',
'SORT' => 100,
),
15 =>
array (
'CONDITION' => '#^/catalog/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/catalog/index.php',
'SORT' => 100,
),
10 =>
array (
'CONDITION' => '#^/brend/#',
'RULE' => '',
'ID' => 'krayt:brend',
'PATH' => '/brend/index.php',
'SORT' => 100,
),
11 =>
array (
'CONDITION' => '#^/store/#',
'RULE' => '',
'ID' => 'bitrix:catalog.store',
'PATH' => '/store/index.php',
'SORT' => 100,
),
12 =>
array (
'CONDITION' => '#^/news/#',
'RULE' => '',
'ID' => 'bitrix:news',
'PATH' => '/news/index.php',
'SORT' => 100,
),
);


CNC enabled
bitrix:catalog

"SEF_URL_TEMPLATES" => array(
"sections" => "",
"section" => "#SECTION_CODE_PATH#/",
"element" => "#SECTION_CODE_PATH#/#ELEMENT_CODE#",
"compare" => "compare/",
"smart_filter" => "#SECTION_CODE#/filter/#SMART_FILTER_PATH#/apply/",


infoblock
spoiler

URL страницы информационного блока: #SITE_DIR#/catalog/
URL страницы раздела: #SITE_DIR#/catalog/#SECTION_CODE_PATH#/
URL страницы детального просмотра: #SITE_DIR#/catalog/#SECTION_CODE_PATH#/#ELEMENT_CODE#


result_modifier.php in catalog template

<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
$arResult['NO_CATALOG'] = array("PROPERTY_NO_CATALOG" => false);


I tried to create a product from the public part in the section where the product is, writes that I created it, and it is created in this section, but it does not display!

Enabled debug in .settings.php
.settings.php
'exception_handling' =>
array (
'value' =>
array (
'debug' => true,
'handled_errors_types' => 4437,
'exception_errors_types' => 4437,
'ignore_silence' => false,
'assertion_throws_exception' => true,
'assertion_error_type' => 256,
'log' =>
array (
'settings' =>
array (
'file' => '/var/log/php/exceptions.log',
'log_size' => 1000000,
),
),
),
'readonly' => false,
),


In the logs there are errors of this kind when you go to this directory

logs
2021-02-13 17:56:35 - Host: 1-yar.fvds.ru:443 - UNCAUGHT_EXCEPTION - [ParseError]
syntax error, unexpected '"CATEGORY_0_TITLE"' (T_CONSTANT_ENCAPSED_STRING), expecting ')' (0)
/home/bitrix/www/include/footer/bitrix_search_title_mobile.php:19
#0: include
/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:789
#1: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string)
/home/bitrix/www/bitrix/modules/main/classes/general/component_template.php:884
#2: CBitrixComponentTemplate->IncludeTemplate(array)
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:764
#3: CBitrixComponent->showComponentTemplate()
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:712
#4: CBitrixComponent->includeComponentTemplate()
/home/bitrix/www/bitrix/components/bitrix/main.include/component.php:280
#5: include(string)
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:605
#6: CBitrixComponent->__includeComponent()
/home/bitrix/www/bitrix/modules/main/classes/general/component.php:680
#7: CBitrixComponent->includeComponent(string, array, NULL, boolean)
/home/bitrix/www/bitrix/modules/main/classes/general/main.php:1063
#8: CAllMain->IncludeComponent(string, string, array)
/home/bitrix/www/local/templates/santehnika/footer.php:148
#9: include_once(string)
/home/bitrix/www/bitrix/modules/main/include/epilog_before.php:93
#10: require(string)
/home/bitrix/www/bitrix/modules/main/include/epilog.php:2
#11: require_once(string)
/home/bitrix/www/bitrix/footer.php:4
#12: require(string)
/home/bitrix/www/catalog/index.php:589
#13: include_once(string)
/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#14: include_once(string)
/home/bitrix/www/bitrix/urlrewrite.php:2
----------

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SteepNET, 2021-02-13
@SteepNET

No ideas? Maybe you can debug it somehow?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question