Tygh\Exceptions\AException

Message

Table './admin_admin_cc/cscart_product_features_values' is marked as crashed and should be repaired (145)

SELECT v.product_id, v.feature_id, v.value, v.value_int, v.variant_id, f.feature_type, fd.description, fd.prefix, f.parent_id, f.position, gf.position as gposition, vd.variant, fd.suffix FROM cscart_product_features as f LEFT JOIN cscart_product_features_values as v ON v.feature_id = f.feature_id LEFT JOIN cscart_product_features_descriptions as fd ON fd.feature_id = v.feature_id AND fd.lang_code = 'ru' LEFT JOIN cscart_product_feature_variants fv ON fv.variant_id = v.variant_id LEFT JOIN cscart_product_feature_variant_descriptions as vd ON vd.variant_id = fv.variant_id AND vd.lang_code = 'ru' LEFT JOIN cscart_product_features as gf ON gf.feature_id = f.parent_id AND gf.feature_type = 'G' INNER JOIN cscart_ult_objects_sharing ON (cscart_ult_objects_sharing.share_object_id = f.feature_id AND cscart_ult_objects_sharing.share_company_id = 1 AND cscart_ult_objects_sharing.share_object_type = 'product_features') WHERE f.status IN ('A') AND v.product_id in (163960, 163961, 163962, 163963, 163964, 163965, 163966, 163967, 163968, 163946) AND f.display_on_catalog = 'Y' AND ( f.categories_path = '' OR FIND_IN_SET(2, f.categories_path) OR FIND_IN_SET(242, f.categories_path) OR FIND_IN_SET(3019, f.categories_path) OR FIND_IN_SET(3023, f.categories_path) ) AND IF(f.parent_id, (SELECT status FROM cscart_product_features as df WHERE df.feature_id = f.parent_id), 'A') IN ('A') AND ( v.variant_id != 0 OR (f.feature_type != 'C' AND v.value != '') OR (f.feature_type = 'C') OR v.value_int != '') AND v.lang_code = 'ru' ORDER BY fd.description, fv.position

Error at

app/Tygh/Database/Connection.php, line: 1139

Backtrace

File:app/Tygh/Database/Connection.php
Line:503
Function:throwError
File:app/Tygh/Database/Connection.php
Line:236
Function:query
File:app/functions/fn.database.php
Line:31
Function:getArray
File:app/addons/abt__youpitheme/functions/fn.abt__yt_products_features.php
Line:149
Function:db_get_array
File:app/addons/abt__youpitheme/functions/fn.abt__yt_products_features.php
Line:44
Function:fn_abt__yt_get_products_features_list
File:var/cache/templates/abt__youpitheme/7119a4576580308fcf891cf521ef3d45c18c1099.tygh.grid_list_with_banners.tpl.php
Line:338
Function:fn_abt__yt_add_products_features_list
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php
Line:188
Function:content_60ad3113cc7502_24768499
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
Line:304
Function:fetch
File:var/cache/templates/abt__youpitheme/37289aecbf0d43448c25ebb871359dab3b719083.tygh.products_multicolumns.tpl.php
Line:79
Function:getSubTemplate
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php
Line:188
Function:content_60ad3113975220_84548065
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php
Line:304
Function:fetch
File:var/cache/templates/abt__youpitheme/b1b779ef652a8b0f0725cd11bc0fbcdd5ae096ad.tygh.view.tpl.php
Line:142
Function:getSubTemplate
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php
Line:188
Function:content_61be235fa0f616_79494352
File:app/Tygh/SmartyEngine/Core.php
Line:76
Function:fetch
File:app/Tygh/BlockManager/RenderManager.php
Line:767
Function:fetch
File:app/Tygh/BlockManager/RenderManager.php
Line:626
Function:_renderMainContent
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: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/abt__youpitheme/248a57db977dd886d3fb386ac4204335a4217553.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_60aaa82c0a8260_30790803
File:app/Tygh/SmartyEngine/Core.php
Line:76
Function:fetch
File:app/functions/fn.control.php
Line:581
Function:fetch
File:index.php
Line:29
Function:fn_dispatch