Prestashop 1.7.5 和 PayPal 插件版本 5.4.0 错误:字段的值太短或太长

问题描述

我有一个 PrestaShop 1.7.5 并且最近已将 PayPal 升级到版本 5.4.0 似乎更新已经破坏了付款 PayPal 弹出窗口正在显示,然后我收到错误消息

错误代码:0;短消息:字段值不符合预期格式;

我找到了这个话题 https://www.prestashop.com/forums/topic/1038873-issues-with-paypal-v531/?do=findComment&comment=3292187

但是在将路由号码从 3 更改为 2 后,我收到来自 PayPal 的错误

错误代码:0;短消息:字段的值太短或太长。;

有人可以帮忙吗?

(1/1) ContextErrorException
Notice: Trying to get property 'id' of non-object
in custompopup.PHP line 386
at CustomPopup->functionHook(array('smarty' => object(SmartyDevTemplate),'cookie' => object(Cookie),'cart' => object(Cart),'altern' => 2))in custompopup.PHP line 83
at CustomPopup->__call('hookdisplayFooter',array(array('smarty' => object(SmartyDevTemplate),'altern' => 2)))in Hook.PHP line 966
at HookCore::coreCallHook(object(CustomPopup),'hookdisplayFooter',array('smarty' => object(SmartyDevTemplate),'altern' => 2))in Hook.PHP line 351
at HookCore::callHookOn(object(CustomPopup),'displayFooter','altern' => 2))in Hook.PHP line 903
at HookCore::exec('displayFooter','altern' => 2),null)in smarty.config.inc.PHP line 165
at smartyHook(array('h' => 'displayFooter'),object(SmartyDevTemplate))in SmartyLazyRegister.PHP line 83
at SmartyLazyRegister->__call('smartyHook',array(array('h' => 'displayFooter'),object(SmartyDevTemplate)))in 5debc5491c55490fb70872b4b8ac73e7c4b076d5_2.file.footer.tpl.PHP line 92
at Block_261192810604657b04b0269_01194600->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.PHP line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_261192810604657b04b0269_01194600),object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.PHP line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate),object(Block_261192810604657b04b0269_01194600))in smarty_internal_runtime_inheritance.PHP line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate),'Block_261192810604657b04b0269_01194600','hook_footer')in 5debc5491c55490fb70872b4b8ac73e7c4b076d5_2.file.footer.tpl.PHP line 39
at content_604657b04b3ee8_66053338(object(SmartyDevTemplate))in smarty_template_resource_base.PHP line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.PHP line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.PHP line 216
at Smarty_Internal_Template->render()in smarty_internal_template.PHP line 385
at Smarty_Internal_Template->_subTemplateRender('file:_partials/footer.tpl',null,'layouts/layout-full-width.tpl',3600,array(),false)in e8aae06b74c347ba1d8da54e2a9d5a9f73bac7c7_2.module.paypalviewstemplatesfront.PHP line 163
at Block_1467223895604657b03129d9_88778906->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.PHP line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1467223895604657b03129d9_88778906),object(Block_1467223895604657b03129d9_88778906))in smarty_internal_runtime_inheritance.PHP line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate),'Block_1467223895604657b03129d9_88778906','footer')in e8aae06b74c347ba1d8da54e2a9d5a9f73bac7c7_2.module.paypalviewstemplatesfront.PHP line 99
at content_604657b0314b23_85855752(object(SmartyDevTemplate))in smarty_template_resource_base.PHP line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.PHP line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.PHP line 216
at Smarty_Internal_Template->render(false,0)in smarty_internal_templatebase.PHP line 232
at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate),0)in smarty_internal_templatebase.PHP line 116
at Smarty_Internal_TemplateBase->fetch('module:paypal/views/templates/front/payment_error.tpl',false,true,false)in SmartyDev.PHP line 40
at SmartyDev->fetch('module:paypal/views/templates/front/payment_error.tpl','layouts/layout-full-width.tpl')in FrontController.PHP line 682
at FrontControllerCore->smartyOutputContent('module:paypal/views/templates/front/payment_error.tpl')in FrontController.PHP line 666
at FrontControllerCore->display()in Controller.PHP line 301
at ControllerCore->run()in dispatcher.PHP line 509
at dispatcherCore->dispatch()in index.PHP line 28

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)