-2

我希望你一切都好我需要你的帮助来解决这个从现在开始持续几天的问题。说实话我不是很懂。非常感谢您的帮助。

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)
4

1 回答 1

0

正如错误消息所述,函数声明应该是兼容的。HookCore::exec包括$chain = false在最后,Hook::exec没有。

似乎他们在某个时候更改了函数签名,但可能并非所有插件都已更新以匹配。确保所有插件都是最新的。如果这不能解决问题,可以一次禁用它们,看看您是否能找到导致问题的原因,如果您离不开它,请与提供者联系。

于 2019-04-24T01:17:19.633 回答