Php WP Statistics Uncaught TypeError:内爆()
在将我的PHP从Php WP Statistics Uncaught TypeError:内爆(),php,wordpress,php-8,Php,Wordpress,Php 8,在将我的PHP从7更新为8.0.1之后,我在Wordpress 5.3.6 该站点遇到了技术难题 检查电子邮件收件箱后,我发现以下错误: 第254行/public\u html/wp content/plugins/wp statistics/includes/vendor/whichbrowser/parser/src/Model/Version.php发生E_错误 错误消息是: 错误消息:未捕获类型错误:内爆():参数#2($array)必须是数组类型,字符串以公共形式给出_html/wp
7
更新为8.0.1
之后,我在Wordpress 5.3.6
该站点遇到了技术难题
检查电子邮件收件箱后,我发现以下错误:
第254行/public\u html/wp content/plugins/wp statistics/includes/vendor/whichbrowser/parser/src/Model/Version.php发生E_错误
错误消息是:
错误消息:未捕获类型错误:内爆():参数#2($array)必须是数组类型,字符串以公共形式给出_html/wp content/plugins/wp statistics/includes/vendor/whichbrowser/parser/src/Model/Version.php:254
问题似乎是通过WP Statistics
插件解决的,但该插件没有更新
所以请帮帮我。我用这种方法解决了这个问题。选中此路径中的
Version.php
文件:
/public_html/wp-content/plugins/wp-statistics/includes/vendor/whichbrowser/parser/src/Model/Version.php
在现场254
上,我刚刚替换了:
$version .= implode($v, '.');
到
现在这个问题已经解决了,我的网站运行在PHP8
$version .= implode('.',$v);