英文:
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行
这应该是这一行:
我该如何修复它?
我使用的是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:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论