希望您一切都好,我需要您的帮助来解决这个问题,该问题自几天以来一直持续存在。说实话我不太了解。很多帮助您。
Warning: Declaration of Hook::exec($hook_name, $hook_args = Array, $id_module = NULL, $array_return = false, $check_exceptions = true, $use_push = false, $id_shop = NULL) should be compatible with HookCore::exec($hook_name, $hook_args = Array, $id_module = NULL, $array_return = false, $check_exceptions = true, $use_push = false, $id_shop = NULL, $chain = false)
Symfony\Component\Debug\Exception\ContextErrorException:
Warning: Declaration of Hook::exec($hook_name, $hook_args = Array, $id_module = NULL, $array_return = false, $check_exceptions = true, $use_push = false, $id_shop = NULL) should be compatible with HookCore::exec($hook_name, $hook_args = Array, $id_module = NULL, $array_return = false, $check_exceptions = true, $use_push = false, $id_shop = NULL, $chain = false)
at override/classes/Hook.php:84
at Symfony\Component\Debug\ErrorHandler->handleError(2, 'Declaration of Hook::exec($hook_name, $hook_args = Array, $id_module = NULL, $array_return = false, $check_exceptions = true, $use_push = false, $id_shop = NULL) should be compatible with HookCore::exec($hook_name, $hook_args = Array, $id_module = NULL, $array_return = false, $check_exceptions = true, $use_push = false, $id_shop = NULL, $chain = false)', '/home/u161749200/domains/eas.ci/public_html/override/classes/Hook.php', 84, array('className' => 'Hook', 'classDir' => '/home/u161749200/domains/eas.ci/public_html/'))
(classes/PrestaShopAutoload.php:152)
at require_once()
(classes/PrestaShopAutoload.php:152)
at PrestaShopAutoload->load('Hook')
at call_user_func(array(object(PrestaShopAutoload), 'load'), 'Hook')
(vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php:153)
at Symfony\Component\Debug\DebugClassLoader->loadClass('Hook')
at spl_autoload_call('Hook')
(classes/Dispatcher.php:483)
at DispatcherCore->loadRoutes()
(classes/Dispatcher.php:229)
at DispatcherCore->__construct()
(classes/Dispatcher.php:194)
at DispatcherCore::getInstance()
(codazon/index.php:99)
答案 0 :(得分:0)
错误消息指出,函数声明应该兼容。 HookCore::exec
的末尾包含$chain = false
,Hook::exec
末尾。
似乎他们在某个时候更改了功能签名,但也许并非所有插件都已更新以匹配。确保所有插件都是最新的。如果仍不能解决问题,则可以一次禁用它们,以查看是否可以找到引起问题的原因,并与提供者联系(如果您无法解决的话)。