Contact Form 7 – Error on activation Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE)

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

Contact Form 7 - Error on activation Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE)

问题

我正在尝试在我拥有的WordPress网站上激活Contact Form 7,但出现了这个错误:

解析错误:语法错误,意外的'.',期望'&'或变量(T_VARIABLE)位于/web/htdocs/www.mywebsite.it/home/wp-content/plugins/contact-form-7/includes/l10n.php的第123行

这应该是这一行:

Contact Form 7 – Error on activation Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE)

我该如何修复它?

我使用的是4.9.9版本和PHP 5.5.38(旧站点)。

英文:

I'm trying to activate Contact Form 7 on a WordPress website I have, but I got this error:

Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /web/htdocs/www.mywebsite.it/home/wp-content/plugins/contact-form-7/includes/l10n.php on line 123

Which should be this line:

Contact Form 7 – Error on activation Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE)

How can I fix it?

I'm on 4.9.9 and PHP 5.5.38 (old site).

答案1

得分: 2

你分享的代码片段是在 Contact Form 7 v5.7 中引入的(根据 Github 的提交),这需要 WordPress 6(根据 它们的发布说明)。

我建议尽快更新 WordPress 安装,因为PHP和WordPress都非常过时。另外,如果允许安装不兼容的插件,那么你的安装过程似乎完全有问题。

英文:

The snippet you've shared was introduced in Contact Form 7 v5.7 (according to the commit from Github) which requires WordPress 6 (according to their release notes).

I would recommend to update that WordPress installation as soon as possible, as both PHP and WordPress are horribly outdated. Also, your installation process looks completely broken if it allows to install incompatible plugins

huangapple
  • 本文由 发表于 2023年4月4日 15:33:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/75926641.html
匿名

发表评论

匿名网友

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

确定