Crash Override
Постоялец
- Регистрация
- 26 Май 2013
- Сообщения
- 128
- Реакции
- 104
Ребят очень нужна помощь!
Prestashop: 1.7.2.4
Установил доп. модуль для отправки чеков об оплате, и в нем вылезает ошибка:
ContextErrorException in FiscalCheck.php line 32:Warning: Declaration of FiscalCheck::l($string) should be compatible with AdminControllerCore::l($string, $class = NULL, $addslashes = false, $htmlentities = true)
И вот содержимое Dispatcher.php line 356
Как я понял какой-то конфликт из-за несовместимости вкладок админки...
Может кто-нибудь подскажет как исправить данную ошибку?
Prestashop: 1.7.2.4
Установил доп. модуль для отправки чеков об оплате, и в нем вылезает ошибка:
ContextErrorException in FiscalCheck.php line 32:Warning: Declaration of FiscalCheck::l($string) should be compatible with AdminControllerCore::l($string, $class = NULL, $addslashes = false, $htmlentities = true)
- in FiscalCheck.php line 32
- at ErrorHandler->handleError('2', 'Declaration of FiscalCheck::l($string) should be compatible with AdminControllerCore::l($string, $class = NULL, $addslashes = false, $htmlentities = true)', '/public_html/modules/shopcontrol/FiscalCheck.php', '32', array('controller_class' => '', 'params_hook_action_dispatcher' => array('controller_type' => '2', 'controller_class' => '', 'is_module' => '1'), 'tab' => object(Tab), 'retrocompatibility_admin_tab' => '/public_html/modules/shopcontrol/FiscalCheck.php')) in FiscalCheck.php line 32
- at include_once('/public_html/modules/shopcontrol/FiscalCheck.php') in Dispatcher.php line 356
- at DispatcherCore->dispatch() in index.php line 95
Код:
class FiscalCheck extends ModuleAdminController
{
protected $_module = NULL;
protected $position_identifier = 'id_sctrl_fisc';
public function __construct()
{
$this->context = Context::getContext();
$this->table = 'sctrl_fisc';
$this->colorOnBackground = false;
$this->className = 'SC';
$this->_defaultOrderBy = 'position';
$this->_defaultOrderWay = 'DESC';
$this->lang = TRUE;
$this->_select = 'a.`id_sctrl_fisc` as `id_temp`';
$this->addRowAction('delete');
$this->bulk_actions = array(
'delete' => array('text' => $this->l('Delete selected'),'confirm' => $this->l('Delete selected items?')),
'id_temp' => array('text' => $this->l('Delete selected'),'confirm' => $this->l('Delete selected items?')),
);
// Shop::addTableAssociation($this->table, array('type' => 'shop'));
$this->fields_list = array(
/* 'id_sctrl_fisc' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),*/
'position' => array('title' => $this->l('#'), 'width' => 40,'filter_key' => 'position', 'align' => 'center', 'position' => 'position'),
'date_add' => array('title' => $this->l('Дата'), 'width' => '100', 'filter_key' => 'date_add'),
'zakaz' => array('title' => $this->l('Заказ'), 'width' => '200', 'filter_key' => 'zakaz'),
'summa' => array('title' => $this->l('Сумма'), 'width' => '50', 'filter_key' => 'summa'),
'exterNum' => array('title' => $this->l('№ заказа'), 'width' => '50', 'filter_key' => 'exterNum'),
'email' => array('title' => $this->l('E-mail'), 'width' => '50', 'filter_key' => 'email'),
'status' => array('title' => $this->l('Shop control Касса!'), 'width' => '50', 'filter_key' => 'status',
'icon' => array( // If set, an icon will be displayed with icon key matching the field value.
0 => 'disabled.gif', // Used in combination with type == bool (optional).
1 => 'enabled.gif',
'default' => 'disabled.gif'
)
),
/*'active' => array('title' => $this->l('Displayed'), 'width' => 25, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => FALSE),*/
'info' => array('title' => $this->l('Инфо'), 'width' => '100', 'filter_key' => 'info'),
'id_temp' => array(
'title' => $this->l('Действие'),
'align' =>'text-right',
'search' => false,
'callback' => 'viewMyButton'
),
/* 'title' => array('title' => $this->l('Title'), 'width' => '300', 'filter_key' => 'b!title'),*/
/*'active' => array('title' => $this->l('Displayed'), 'width' => 25, 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => FALSE)*/
);
parent::__construct();
}
И вот содержимое Dispatcher.php line 356
Код:
// @retrocompatibility with admin/tabs/ old system
if ($retrocompatibility_admin_tab) {
include_once($retrocompatibility_admin_tab);
include_once(_PS_ADMIN_DIR_.'/functions.php');
runAdminTab($this->controller, !empty($_REQUEST['ajaxMode']));
return;
}
Как я понял какой-то конфликт из-за несовместимости вкладок админки...
Может кто-нибудь подскажет как исправить данную ошибку?