MySQL server has gone away (2006)
SELECT SQL_CALC_FOUND_ROWS products.product_id, IF(shared_descr.product_id IS NOT NULL, shared_descr.product, descr1.product) as product, popularity.total as popularity, cscart_supplier_links.supplier_id, products.product_type, products.parent_product_id, 1 as instock_marker, IF(IF(products.tracking = 'O', (SELECT MAX(amount) FROM cscart_product_options_inventory s_inventory WHERE s_inventory.product_id = products.product_id) > 0, products.amount > 0), 1, IF(products.tracking = 'D', 1, 0)) as instock_sorting FROM cscart_products as products LEFT JOIN cscart_product_descriptions as descr1 ON descr1.product_id = products.product_id AND descr1.lang_code = 'ru' LEFT JOIN cscart_product_prices as prices ON prices.product_id = products.product_id AND prices.lower_limit = 1 INNER JOIN cscart_products_categories as products_categories ON products_categories.product_id = products.product_id INNER JOIN cscart_categories ON cscart_categories.category_id = products_categories.category_id AND (cscart_categories.usergroup_ids = '' OR FIND_IN_SET(0, cscart_categories.usergroup_ids) OR FIND_IN_SET(1, cscart_categories.usergroup_ids)) AND cscart_categories.status IN ('A', 'H') LEFT JOIN cscart_product_popularity as popularity ON popularity.product_id = products.product_id LEFT JOIN cscart_ult_product_descriptions shared_descr ON shared_descr.product_id = products.product_id AND shared_descr.company_id = 1 AND shared_descr.lang_code = 'ru' LEFT JOIN cscart_supplier_links ON cscart_supplier_links.object_id = products.product_id AND cscart_supplier_links.object_type = 'P' WHERE 1 AND cscart_categories.company_id = 1 AND popularity.total >= 1 AND (products.usergroup_ids = '' OR FIND_IN_SET(0, products.usergroup_ids) OR FIND_IN_SET(1, products.usergroup_ids)) AND products.status IN ('A') AND prices.usergroup_id IN (0, 0, 1) AND products.parent_product_id = 0 GROUP BY products.product_id ORDER BY instock_sorting DESC, popularity.total desc, products.product_id ASC LIMIT 0, 10
app/Tygh/Database/Connection.php, line: 1153
File: | app/Tygh/Database/Connection.php |
Line: | 516 |
Function: | throwError |
File: | app/Tygh/Database/Connection.php |
Line: | 226 |
Function: | query |
File: | app/functions/fn.database.php |
Line: | 31 |
Function: | getArray |
File: | app/functions/fn.catalog.php |
Line: | 7602 |
Function: | db_get_array |
File: | app/functions/fn.catalog.php |
Line: | 7685 |
Function: | {closure} |
File: | app/Tygh/BlockManager/Block.php |
Line: | 930 |
Function: | fn_get_products |
File: | app/Tygh/BlockManager/RenderManager.php |
Line: | 795 |
Function: | getItems |
File: | app/Tygh/BlockManager/RenderManager.php |
Line: | 657 |
Function: | getValue |
File: | app/Tygh/BlockManager/RenderManager.php |
Line: | 484 |
Function: | renderBlockContent |
File: | app/Tygh/BlockManager/RenderManager.php |
Line: | 406 |
Function: | renderBlock |
File: | app/Tygh/BlockManager/RenderManager.php |
Line: | 364 |
Function: | renderBlocks |
File: | app/Tygh/BlockManager/RenderManager.php |
Line: | 229 |
Function: | renderGrid |
File: | app/Tygh/BlockManager/RenderManager.php |
Line: | 360 |
Function: | renderGrids |
File: | app/Tygh/BlockManager/RenderManager.php |
Line: | 229 |
Function: | renderGrid |
File: | app/Tygh/BlockManager/RenderManager.php |
Line: | 199 |
Function: | renderGrids |
File: | app/Tygh/BlockManager/RenderManager.php |
Line: | 163 |
Function: | _renderContainer |
File: | app/functions/smarty_plugins/function.render_location.php |
Line: | 52 |
Function: | render |
File: | var/cache/templates/grt__unitheme2/330483e8a1ceacf145398243f4c3a746c594f394.tygh.index.tpl.php |
Line: | 183 |
Function: | smarty_function_render_location |
File: | app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php |
Line: | 188 |
Function: | content_62c6ab82cea555_88154414 |
File: | app/Tygh/SmartyEngine/Core.php |
Line: | 77 |
Function: | fetch |
File: | app/functions/fn.control.php |
Line: | 595 |
Function: | fetch |
File: | index.php |
Line: | 25 |
Function: | fn_dispatch |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 918 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 644 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 462 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 918 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 644 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 462 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 918 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 644 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 462 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 918 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 644 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 462 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 918 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 644 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 462 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 918 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 644 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 462 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 918 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 644 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 462 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 918 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 644 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 462 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 918 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 644 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 462 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 918 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 644 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 462 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::query(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 79
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 79 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 475 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
Tygh\Backend\Database\Mysqli::errorCode(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 131
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 131 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 930 |
Function: | errorCode |
File: | app/Tygh/Database/Connection.php |
Line: | 1110 |
Function: | errorCode |
File: | app/Tygh/Database/Connection.php |
Line: | 506 |
Function: | hasError |
File: | app/Tygh/Registry.php |
Line: | 654 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 468 |
Function: | saveCacheHandlers |
mysqli::real_escape_string(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 150
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 150 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 910 |
Function: | escape |
File: | app/Tygh/Database/Connection.php |
Line: | 886 |
Function: | prepareValue |
File: | app/Tygh/Database/Connection.php |
Line: | 601 |
Function: | filterData |
File: | app/Tygh/Database/Connection.php |
Line: | 538 |
Function: | process |
File: | app/Tygh/Registry.php |
Line: | 722 |
Function: | quote |
File: | app/Tygh/Registry.php |
Line: | 474 |
Function: | getCacheHandlers |
mysqli::query(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 79
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 79 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 475 |
Function: | query |
File: | app/Tygh/Database/Connection.php |
Line: | 343 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 732 |
Function: | getMultiHash |
File: | app/Tygh/Registry.php |
Line: | 474 |
Function: | getCacheHandlers |
Tygh\Backend\Database\Mysqli::errorCode(): Couldn't fetch mysqli
app/Tygh/Backend/Database/Mysqli.php, line: 131
File: | app/Tygh/Backend/Database/Mysqli.php |
Line: | 131 |
Function: | {closure} |
File: | app/Tygh/Database/Connection.php |
Line: | 930 |
Function: | errorCode |
File: | app/Tygh/Database/Connection.php |
Line: | 1110 |
Function: | errorCode |
File: | app/Tygh/Database/Connection.php |
Line: | 506 |
Function: | hasError |
File: | app/Tygh/Database/Connection.php |
Line: | 343 |
Function: | query |
File: | app/Tygh/Registry.php |
Line: | 732 |
Function: | getMultiHash |
File: | app/Tygh/Registry.php |
Line: | 474 |
Function: | getCacheHandlers |