[Error] Call to a member function getLeftMargin() on null (0) /home/c/cd33873/public_html/local/library/catalog/lib/element/catalogelementhelper.php:32 #0: Library\Catalog\Element\CatalogElementHelper::isMetalSection(string) /home/c/cd33873/public_html/local/library/catalog/lib/element/catalogelementhelper.php:17 #1: Library\Catalog\Element\CatalogElementHelper::getRouteTemplate(string) /home/c/cd33873/public_html/local/templates/metall_main/components/bitrix/catalog/custom-cat/element.php:33 #2: include(string) /home/c/cd33873/public_html/bitrix/modules/main/classes/general/component_template.php:790 #3: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string) /home/c/cd33873/public_html/bitrix/modules/main/classes/general/component_template.php:885 #4: CBitrixComponentTemplate->IncludeTemplate(array) /home/c/cd33873/public_html/bitrix/modules/main/classes/general/component.php:784 #5: CBitrixComponent->showComponentTemplate() /home/c/cd33873/public_html/bitrix/modules/main/classes/general/component.php:724 #6: CBitrixComponent->includeComponentTemplate(string) /home/c/cd33873/public_html/bitrix/components/bitrix/catalog/component.php:323 #7: include(string) /home/c/cd33873/public_html/bitrix/modules/main/classes/general/component.php:615 #8: CBitrixComponent->__includeComponent() /home/c/cd33873/public_html/bitrix/modules/main/classes/general/component.php:692 #9: CBitrixComponent->includeComponent(string, array, boolean, boolean) /home/c/cd33873/public_html/bitrix/modules/main/classes/general/main.php:1072 #10: CAllMain->IncludeComponent(string, string, array, boolean) /home/c/cd33873/public_html/catalog/index.php:415 #11: include_once(string) /home/c/cd33873/public_html/bitrix/modules/main/include/urlrewrite.php:184 #12: include_once(string) /home/c/cd33873/public_html/bitrix/urlrewrite.php:2 ----------