Notice: Trying to get property 'alternative_names' of non-object in /var/www/www-root/data/www/triumf-parfum.by/api/Brands.php on line 141
Warning: Creating default object from empty value in /var/www/www-root/data/www/triumf-parfum.by/api/Brands.php on line 141
Notice: Undefined property: stdClass::$id in /var/www/www-root/data/www/triumf-parfum.by/view/ProductsView.php on line 31
Notice: Undefined property: stdClass::$id in /var/www/www-root/data/www/triumf-parfum.by/view/ProductsView.php on line 255
Fatal error: Uncaught Exception: Placeholder substitution error. Diagnostics: SELECT c.name, count(pc.product_id) as products_count, c.parent_id, c.id, c.url, p.brand_id FROM s_products_categories pc LEFT JOIN s_categories c ON c.id=pc.category_id INNER JOIN s_products p ON p.id=pc.product_id AND pc.position=(SELECT MIN(pc2.position) FROM s_products_categories pc2 WHERE pc.product_id=pc2.product_id) WHERE 1 AND p.visible=1 AND p.brand_id=UNKNOWN_PLACEHOLDER_0 AND (SELECT count(*)>0 FROM s_variants pv WHERE pv.product_id=p.id AND pv.price>0 AND (pv.stock IS NULL OR pv.stock>0) LIMIT 1) = 1 GROUP BY pc.category_id ORDER BY products_count DESC in /var/www/www-root/data/www/triumf-parfum.by/api/Database.php:134
Stack trace:
#0 /var/www/www-root/data/www/triumf-parfum.by/api/Brands.php(227): Api\Database->placehold('\n\t\t\t\tSELECT c.n...', NULL)
#1 /var/www/www-root/data/www/triumf-parfum.by/view/ProductsView.php(255): Api\Brands->getCategoriesByBrand(NULL)
#2 /var/www/www-root/data/www/triumf-parfum.by/view/IndexView.php(1 in /var/www/www-root/data/www/triumf-parfum.by/api/Database.php on line 134