Table 'etk78_progress1b.b2bgs_categories' doesn't exist (1146)
SELECT b2bgs_products.*, b2bgs_product_descriptions.*, MIN(IF(b2bgs_product_prices.percentage_discount = 0, b2bgs_product_prices.price, b2bgs_product_prices.price - (b2bgs_product_prices.price * b2bgs_product_prices.percentage_discount)/100)) as price, GROUP_CONCAT( CASE WHEN (b2bgs_products_categories.link_type = 'M') THEN CONCAT(b2bgs_products_categories.category_id, 'M') ELSE b2bgs_products_categories.category_id END ORDER BY b2bgs_categories.storefront_id IN (0, 1) DESC, (b2bgs_products_categories.link_type = 'M') DESC, b2bgs_products_categories.category_position ASC, b2bgs_products_categories.category_id ASC) as category_ids, popularity.total as popularity, IF(shared_prices.product_id IS NOT NULL,MIN(IF(shared_prices.percentage_discount = 0, shared_prices.price, shared_prices.price - (shared_prices.price * shared_prices.percentage_discount)/100)),MIN(IF(b2bgs_product_prices.percentage_discount = 0, b2bgs_product_prices.price, b2bgs_product_prices.price - (b2bgs_product_prices.price * b2bgs_product_prices.percentage_discount)/100))) as price, companies.company as company_name, b2bgs_product_sales.amount as sales_amount, b2bgs_seo_names.name as seo_name, b2bgs_seo_names.path as seo_path, b2bgs_discussion.type as discussion_type, b2bgs_product_review_prepared_data.average_rating average_rating, b2bgs_product_review_prepared_data.reviews_count product_reviews_count FROM b2bgs_products LEFT JOIN b2bgs_product_prices ON b2bgs_product_prices.product_id = b2bgs_products.product_id AND b2bgs_product_prices.lower_limit = 1 AND b2bgs_product_prices.usergroup_id IN (0, 0, 1) LEFT JOIN b2bgs_product_descriptions ON b2bgs_product_descriptions.product_id = b2bgs_products.product_id AND b2bgs_product_descriptions.lang_code = 'ru' LEFT JOIN b2bgs_ult_product_prices shared_prices ON shared_prices.product_id = b2bgs_products.product_id AND shared_prices.company_id = 1 AND shared_prices.lower_limit = 1 AND shared_prices.usergroup_id IN (0, 0, 1) LEFT JOIN b2bgs_companies as companies ON companies.company_id = b2bgs_products.company_id INNER JOIN b2bgs_products_categories ON b2bgs_products_categories.product_id = b2bgs_products.product_id INNER JOIN b2bgs_categories ON b2bgs_categories.category_id = b2bgs_products_categories.category_id AND b2bgs_categories.storefront_id IN (0, 1) AND (b2bgs_categories.usergroup_ids = '' OR FIND_IN_SET(0, b2bgs_categories.usergroup_ids) OR FIND_IN_SET(1, b2bgs_categories.usergroup_ids)) AND (b2bgs_products.usergroup_ids = '' OR FIND_IN_SET(0, b2bgs_products.usergroup_ids) OR FIND_IN_SET(1, b2bgs_products.usergroup_ids)) AND b2bgs_categories.status IN ('A', 'H') AND b2bgs_products.status IN ('A', 'H') LEFT JOIN b2bgs_product_popularity as popularity ON popularity.product_id = b2bgs_products.product_id LEFT JOIN b2bgs_product_sales ON b2bgs_product_sales.product_id = b2bgs_products.product_id AND b2bgs_product_sales.category_id = 472 LEFT JOIN b2bgs_seo_names ON b2bgs_seo_names.object_id = 13371 AND b2bgs_seo_names.type = 'p' AND b2bgs_seo_names.dispatch = '' AND b2bgs_seo_names.lang_code = 'ru' AND b2bgs_seo_names.company_id = 1 LEFT JOIN b2bgs_discussion ON b2bgs_discussion.object_id = b2bgs_products.product_id AND b2bgs_discussion.object_type = 'P' AND b2bgs_discussion.company_id = 1 LEFT JOIN b2bgs_product_review_prepared_data ON b2bgs_product_review_prepared_data.product_id = b2bgs_products.product_id AND b2bgs_product_review_prepared_data.storefront_id = 0 WHERE b2bgs_products.product_id = 13371 AND (companies.status IN ('A') OR b2bgs_products.company_id = 0) GROUP BY b2bgs_products.product_id
app/Tygh/Database/Connection.php, line: 1540
| File: | app/Tygh/Database/Connection.php |
| Line: | 690 |
| Function: | throwError |
| File: | app/Tygh/Database/Connection.php |
| Line: | 388 |
| Function: | query |
| File: | app/functions/fn.database.php |
| Line: | 60 |
| Function: | getRow |
| File: | app/functions/fn.products.php |
| Line: | 246 |
| Function: | db_get_row |
| File: | app/controllers/frontend/products.php |
| Line: | 103 |
| Function: | fn_get_product_data |
| File: | app/functions/fn.control.php |
| Line: | 722 |
| Function: | include |
| File: | app/functions/fn.control.php |
| Line: | 458 |
| Function: | fn_run_controller |
| File: | index.php |
| Line: | 25 |
| Function: | fn_dispatch |
REPLACE INTO b2bgs_cache_handlers (`table_name`, `cache_key`) VALUES ('settings_objects', 'settings'), ('settings_vendor_values', 'settings'), ('settings_descriptions', 'settings'), ('settings_sections', 'settings'), ('settings_variants', 'settings'), ('storefronts', 'hybrid_auth_providers_list'), ('hybrid_auth_providers', 'hybrid_auth_providers_list')
in /home/e/etk78/progressiv-spb.com/public_html/app/Tygh/Database/Connection.php:1540 Stack trace: #0 /home/e/etk78/progressiv-spb.com/public_html/app/Tygh/Database/Connection.php(690): Tygh\Database\Connection->throwError('REPLACE INTO b2...', '1146', 'Table 'etk78_pr...') #1 /home/e/etk78/progressiv-spb.com/public_html/app/Tygh/Registry.php(681): Tygh\Database\Connection->query('REPLACE INTO b2...', 'cache_handlers', Array) #2 /home/e/etk78/progressiv-spb.com/public_html/app/Tygh/Registry.php(490): Tygh\Registry::saveCacheHandlers(Array) in /home/e/etk78/progressiv-spb.com/public_html/app/Tygh/Database/Connection.php on line 1540