PRESTASHOP – Return value of PrestaShop\Module\Ps_metrics\Helper\PrestaShopHelper::getTokenFromAdminLink() must be of the type string, null returned

huangapple go评论56阅读模式
英文:

PRESTASHOP - Return value of PrestaShop\Module\Ps_metrics\Helper\PrestaShopHelper::getTokenFromAdminLink() must be of the type string, null returned

问题

我正在使用 PrestaShop,遇到了以下问题。

[类型错误:PrestaShop\Module\Ps_metrics\Helper\PrestaShopHelper::getTokenFromAdminLink() 的返回值必须是字符串类型,返回了 null]
(https://i.stack.imgur.com/9SPhj.png)

在登录到我的超级管理员帐户后,我遇到了这个错误。我可以登录到其他员工的帐户而没有问题,一切都正常运作。然而,当我登录到超级管理员帐户,即主帐户时,出现了这个问题。

PrestaShop 版本 -> 1.7.7.4

PHP 版本 -> 我之前是使用 7.4 版本,一切正常工作,但当出现这个错误后,我尝试重新安装到 7.2 版本,但没有帮助。

英文:

I'm using prestashop and I have the following problem.

[Type error: Return value of PrestaShop\Module\Ps_metrics\Helper\PrestaShopHelper::getTokenFromAdminLink() must be of the type string, null returned]
(https://i.stack.imgur.com/9SPhj.png)

After logging into my superadmin account i have this error. I can log into other employees' accounts without problems and everything works. However, when I log into the superadmin account, i.e. the main account, it shows me this problem.

PrestaShop version -> 1.7.7.4

PHP version -> I had 7.4 and everything worked, but when I got this error, I tried to reinstall to 7.2, but the change didn't help.

答案1

得分: 0

这是由ps_metrics模块触发的错误,它因类似的错误而闻名,因此请检查是否有可用的更新。

如果没有更新,尝试重置它(或者如果您不使用它,完全卸载)。

英文:

This is an error triggered by ps_metrics module, it's known for similar bugs, so check if there's an update available.

If not, try resetting it (or completely uninstall if you are not using it).

huangapple
  • 本文由 发表于 2023年2月26日 21:29:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/75572324.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定