Sorry, there was an error. Try to reload the page or contact the phone number indicated in the contacts
Array
(
    [message] => MySQL server has gone away
    [code] => 2006
    [file] => select * from (select
     pgs.id_price_group as dbg_id_price_group,
     mp.id_price_group as dbg_mp_id_price_group,
     p.id_provider as dbg_id_provider,
     mp.id_provider as dbg_mp_id_provider,
     up.id_currency as dbg_id_currency,
     c.id as dbg_id_cat,
     mp.id_cat as dbg_mp_id_cat,
	 mp.id as margin_id,
     if(mp.id_currency=up.id_currency and mp.id_price_group=ifnull(pgs.id_price_group,0) and mp.id_provider=p.id_provider and mp.id_cat=c.id,80,
     if(mp.id_currency=up.id_currency and mp.id_price_group=ifnull(pgs.id_price_group,0) and mp.id_provider=p.id_provider and mp.id_cat=0,50,
     if(mp.id_currency=up.id_currency and mp.id_price_group=0 and mp.id_provider=p.id_provider and mp.id_cat=c.id,60,
     if(mp.id_currency=up.id_currency and mp.id_price_group=ifnull(pgs.id_price_group,0) and mp.id_provider=0 and mp.id_cat=c.id,70,
     if(mp.id_currency=up.id_currency and mp.id_price_group=ifnull(pgs.id_price_group,0) and mp.id_provider=0 and mp.id_cat=0,40,
     if(mp.id_currency=up.id_currency and mp.id_price_group=0 and mp.id_provider=0 and mp.id_cat=0,10,
     if(mp.id_currency=up.id_currency and mp.id_price_group=0 and mp.id_provider=p.id_provider and mp.id_cat=0,20,
     if(mp.id_currency=up.id_currency and mp.id_price_group=0 and mp.id_provider=0 and mp.id_cat=c.id,30,
    
     if(mp.id_currency=0 and mp.id_price_group=ifnull(pgs.id_price_group,0) and mp.id_provider=p.id_provider and mp.id_cat=c.id,8,
     if(mp.id_currency=0 and mp.id_price_group=ifnull(pgs.id_price_group,0) and mp.id_provider=p.id_provider and mp.id_cat=0,5,
     if(mp.id_currency=0 and mp.id_price_group=0 and mp.id_provider=p.id_provider and mp.id_cat=c.id,6,
     if(mp.id_currency=0 and mp.id_price_group=ifnull(pgs.id_price_group,0) and mp.id_provider=0 and mp.id_cat=c.id,7,
     if(mp.id_currency=0 and mp.id_price_group=ifnull(pgs.id_price_group,0) and mp.id_provider=0 and mp.id_cat=0,4,
     if(mp.id_currency=0 and mp.id_price_group=0 and mp.id_provider=0 and mp.id_cat=c.id,3,
     if(mp.id_currency=0 and mp.id_price_group=0 and mp.id_provider=p.id_provider and mp.id_cat=0,2,
     if(mp.id_currency=0 and mp.id_price_group=0 and mp.id_provider=0 and mp.id_cat=0,1,			0)))))))) )))))))) as priority
	 ,mp.margin, mp.price_add,
          p.id
         ,p.item_code
         ,p.id_provider
         ,p.code_in
         ,p.pref
         ,p.cat
         ,p.post_date
         ,p.stock
         ,cp.description_ru
         ,ifnull(pgs.id_price_group,0)
         ,p.number_min
         ,p.is_restored
         ,cu.value as kurs_currency
         ,round(p.price/cu.value,2) as price_original_one_currency
         , p.price as price_original
         , c.title as make 
         , c.name as cat_name
         , c.id_sup as id_brand
         , c.title as brand
         , c.id as brand_id
         , if(c.image!='' and c.is_use_own_logo=1,c.image,if(c.image_tecdoc<>'',concat( '/imgbank/tcd/' , c.image_tecdoc),c.image)) as image_logo
         , if (cp.name_ru is NULL || cp.name_ru='',NULL, cp.name_ru) as name
         , if (cp.name_ru is NULL || cp.name_ru='',NULL, cp.name_ru) as name_translate
         , if (cp.name_ru is NULL || cp.name_ru='',NULL, cp.name_ru)  as name_translate_ru, if (cp.name_ua is NULL || cp.name_ua='',NULL, cp.name_ua)  as name_translate_ua
         , ifnull(cp.id, '') as id_cat_part
         , cp.hide_tof_image
         , p.code as code_
         , p.item_code as item_code_
         , concat(ifnull(cp.information_ru, ''), ' ', ifnull(cp.description_ru,'')) as information
         , ifnull(concat('ZZZ_',p.id),'') as zzz_code
         , if(p.code in (0),0,1) as crsord
         , up.name as provider
         , up.name as provider_name
         , up.code_name as provider_code_name
         , lprr.name as provider_region_name
         , prr.code as provider_region_code
         , up.code_delivery
         , up.is_our_store, up.is_used_spare_parts
         
                ,if(up.is_tehnomir,if(up.term>0, up.term, p.term)+up.term_add,if(pt.id is not null,pt.term,if(up.is_our_store,p.term,up.term+up.term_add))) as term_day 
                ,if(up.is_tehnomir,if(up.term>0, up.term, p.term)+up.term_add,if(pt.id is not null,pt.term,if(up.is_our_store,p.term,up.term+up.term_add))) as term 
            
         , pt.t3 as send_provider_time
         , pt.t2 as close_provider_time
         , up.id_currency
         , cu.code as code_currency
         , ifnull(prgl.name,'') as price_group_name
         , ifnull(prg.code_name,'') as price_group_code_name
         , CONVERT(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(p.stock,'>',''),',','.'),'Н','1'),'-',''),'M','1'), '<',''),'+',''),'++',''),'+++',''),'есть','1'),'X',''),'XX',''),'XXX',''), SIGNED) as stock_filtered
         , pgs.id_price_group
         , if(pr.related_price > 0, pr.related_price, p.related_price) as related_price
         , p.id_1c
         , up.is_tehnomir
         , ccr.code_replacement_last as cross_replace
         , lpdt.name as provider_delivery_type_name
         , pdt.image as provider_delivery_type_image
         , lpdt.description as provider_delivery_type_description
         , up.is_return
         , up.return_description 
         , if(cp.is_top=1,0,c.rating) as rating
         , cp.is_out_of_production
         , if(c.id_mfa > 0,1,0) is_oe_brand
         , round(if(if(pr.related_price > 0, pr.related_price, p.related_price) > 0 and p.price > 0, if(pr.related_price > 0, pr.related_price, p.related_price), if((p.price/cu.value*(1+if(mp.margin<>0,mp.margin,pg.group_margin)/100+0)+(if(p.price>0,ifnull(mp.price_add,0),0)))>(p.price/cu.value)*1,(p.price/cu.value*(1+if(mp.margin<>0,mp.margin,pg.group_margin)/100+0)+(if(p.price>0,ifnull(mp.price_add,0),0))), (p.price/cu.value)*1)),2) as price_without_discount, round(if(if(pr.related_price > 0, pr.related_price, p.related_price) > 0 and p.price > 0, if(pr.related_price > 0, pr.related_price, p.related_price), if((p.price/cu.value*(1+if(mp.margin<>0,mp.margin,pg.group_margin)/100+0)+(if(p.price>0,ifnull(mp.price_add,0),0)))*(100-0)/100>(p.price/cu.value)*1,(p.price/cu.value*(1+if(mp.margin<>0,mp.margin,pg.group_margin)/100+0)+(if(p.price>0,ifnull(mp.price_add,0),0)))*(100-0)/100, (p.price/cu.value)*1)),2) as price, round(if(if(pr.related_price > 0, pr.related_price, p.related_price) > 0 and p.price > 0, if(pr.related_price > 0, pr.related_price, p.related_price), if((p.price/cu.value*(1+if(mp.margin<>0,mp.margin,pg.group_margin)/100+0)+(if(p.price>0,ifnull(mp.price_add,0),0)))*(100-0)/100>(p.price/cu.value)*1,(p.price/cu.value*(1+if(mp.margin<>0,mp.margin,pg.group_margin)/100+0)+(if(p.price>0,ifnull(mp.price_add,0),0)))*(100-0)/100, (p.price/cu.value)*1)),2) as price_order  , p.code as code, concat(p.item_code,'::',up.id_user) as code_provider , if(p.pref='ADP',0,1) as pref_order  , if(p.code='AF1625',0,1) as code_order  from price as p
	
	 inner join cat as c on p.pref=c.pref
	 inner join user_provider as up on p.id_provider=up.id_user
	 inner join provider_group as pg on up.id_provider_group=pg.id
	 inner join provider_region as prr on up.id_provider_region=prr.id
     inner join provider_delivery_type pdt on up.id_delivery_type=pdt.id
	 inner join user as u on up.id_user=u.id
     inner join currency as cu FORCE INDEX (PRIMARY) on up.id_currency=cu.id 
     left join provider_term as pt on pt.id_provider=p.id_provider and pt.day=WEEKDAY( CURRENT_TIMESTAMP ) and pt.t1 < DATE_FORMAT( CURRENT_TIMESTAMP ,  '%H:%i:%s' ) and pt.t2 > DATE_FORMAT( CURRENT_TIMESTAMP ,  '%H:%i:%s' )
	 left join price_group_assign as pgs on pgs.item_code=p.item_code
	 left join price_group prg on prg.id=pgs.id_price_group
	 left join cat_part as cp on cp.item_code=p.item_code
	 left join locale_global prgl on (prg.id=prgl.id_reference and prgl.table_name='price_group' and prgl.locale='ru')
	 left join locale_global lprr on (prr.id=lprr.id_reference and lprr.table_name='provider_region' and lprr.locale='ru')
     left join locale_global lpdt on (pdt.id=lpdt.id_reference and lpdt.table_name='provider_delivery_type' and lpdt.locale='ru')
	 
	 left join price_related as pr on p.item_code = pr.item_code
	 left join cat_cross_replacement as ccr on p.item_code = ccr.item_code
	 left join margin_price as mp on p.id_margin_price=mp.id  where 
	    c.visible=1 and 
	    u.visible=1 and
	    prr.visible=1
	  and up.is_tehnomir='0'  and (p.code in ('AF1625') or p.item_code in ('ADP_AF1625','AKK_07158','BXI_5102CV','ABB_994402','AEV_4215631','ADB_875028188','BNV_NCS1030','ABG_SP3959','AEW_51432','AMD_14875839','AAO_36280131','AKS_CS7721','ADE_R10555','AAB_87278','ATT_SC059MT','AKK_07128','ABB_994399','AAB_86584','ABU_QCS7354','AUZ_ACS1030','AEJ_ZC6111A','AHH_ZCA6111A')) having 1 ) as t group by t.id order by  pref_order, code_order,t.price, price_order , t.code, t.item_code  
    [line] => 0
    [trace] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/autoparts.expert/vendor/adodb/adodb-php/adodb.inc.php
                    [line] => 1624
                    [function] => ADODB_Error_Handler
                )

            [1] => Array
                (
                    [file] => /var/www/autoparts.expert/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php
                    [line] => 1195
                    [function] => _Execute
                    [class] => ADOConnection
                    [type] => ->
                )

            [2] => Array
                (
                    [file] => /var/www/autoparts.expert/vendor/adodb/adodb-php/adodb.inc.php
                    [line] => 2294
                    [function] => execute
                    [class] => ADODB_mysqli
                    [type] => ->
                )

            [3] => Array
                (
                    [file] => /var/www/autoparts.expert/vendor/adodb/adodb-php/adodb.inc.php
                    [line] => 2087
                    [function] => GetArray
                    [class] => ADOConnection
                    [type] => ->
                )

            [4] => Array
                (
                    [file] => /var/www/autoparts.expert/class/core/Db.php
                    [line] => 114
                    [function] => GetAll
                    [class] => ADOConnection
                    [type] => ->
                )

            [5] => Array
                (
                    [file] => /var/www/autoparts.expert/class/module/Catalog/ViewInfoPart.php
                    [line] => 838
                    [function] => GetAll
                    [class] => Core\Db
                    [type] => ::
                )

            [6] => Array
                (
                    [file] => /var/www/autoparts.expert/class/module/Catalog/ViewInfoPart.php
                    [line] => 274
                    [function] => GetPriceForInfoPart
                    [class] => Module\Catalog\ViewInfoPart
                    [type] => ->
                )

            [7] => Array
                (
                    [file] => /var/www/autoparts.expert/spec/catalog.php
                    [line] => 17
                    [function] => ViewInfoPart
                    [class] => Module\Catalog\ViewInfoPart
                    [type] => ->
                )

            [8] => Array
                (
                    [file] => /var/www/autoparts.expert/action_includer.php
                    [line] => 43
                    [args] => Array
                        (
                            [0] => /var/www/autoparts.expert/spec/catalog.php
                        )

                    [function] => include_once
                )

            [9] => Array
                (
                    [file] => /var/www/autoparts.expert/index.php
                    [line] => 61
                    [args] => Array
                        (
                            [0] => /var/www/autoparts.expert/action_includer.php
                        )

                    [function] => require
                )

        )

    [user_agent] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
    [refer] => 
    [request_uri] => /ru/products/optimal-af1625/
    [request_data] => Array
        (
            [locale] => ru
            [action] => catalog_part_info_view
            [cat_name] => optimal
            [code] => af1625
            [brand] => 
            [provider] => 
            [region] => 
            [all_params] => 
            [sort] => 
            [way] => 
            [additional_filter] => Array
                (
                    [new] => 0
                    [usedparts] => 0
                )

        )

    [session_data] => Array
        (
            [current_page] => locale=ru&action=catalog_part_info_view&cat_name=optimal&code=af1625&brand=&provider=®ion=&all_params=&sort=&way=&additional_filter%5Bnew%5D=0&additional_filter%5Busedparts%5D=0
            [REQUEST_URI] => /ru/products/optimal-af1625/
            [referer_page] => locale=ua&action=catalog_price_view&name=sofima&code=s1600r&brand=borgandbeck_fram_goodrem_sofima&provider=®ion=&all_params=&sort=&way=&additional_filter%5Bnew%5D=0&additional_filter%5Busedparts%5D=0
        )

)

Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, false given in /var/www/autoparts.expert/index.php:92 Stack trace: #0 /var/www/autoparts.expert/index.php(92): fwrite() #1 {main} thrown in /var/www/autoparts.expert/index.php on line 92