Opencart 版本 2.3.0.2 (trs-2.3.0.0)。模板不是我修改的。英文版是之前安装的,我刚激活。切换到英文后,网站报错:
Notice: Undefined offset: 3 in /home/srv113274/darin7.ru/catalog/controller/extension/module/ap_products_listing.php on line 31
Notice: Undefined offset: 3 in /home/srv113274/darin7.ru/catalog/controller/extension/module/ap_products_listing.php on line 290
Notice: Undefined offset: 3 in /home/srv113274/darin7.ru/catalog/controller/extension/module/ap_products_listing.php on line 290
Notice: Undefined offset: 3 in /home/srv113274/darin7.ru/catalog/controller/extension/module/ap_products_listing.php on line 290
Notice: Undefined offset: 3 in /home/srv113274/darin7.ru/catalog/controller/extension/module/ap_products_listing.php on line 290
Notice: Undefined offset: 3 in /home/srv113274/darin7.ru/catalog/controller/extension/module/ap_products_listing.php on line 290
这些行如下所示:
line 31: $data['title'] = $settings['title'][$this->config->get('config_language_id')];
line 290 это строка 'name' => $tab['name'][$this->config->get('config_language_id')], в массиве
$data['product_tabs'][] =
[
'name' => $tab['name'][$this->config->get('config_language_id')],
'href' => $href,
'products' => $product_data,
'banner' => $banner_data,
'pagination_data' => $product_total ? $this->getPagination($product_total, $page, $limit, $tab['product']['type']) : false,
'btn_more_status' => $bnt_more_status && $product_total && !($page == ceil($product_total / $limit)),
'pagination_status' => $pagination_status && $product_total
];
在网上翻了一番之后,我用拉丁文填写了英文版产品中的字段(他们已经填写了,但是用俄语填写),但这并没有帮助。该怎么办?