Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/250.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php WP Statistics Uncaught TypeError:内爆()_Php_Wordpress_Php 8 - Fatal编程技术网

Php WP Statistics Uncaught TypeError:内爆()

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

在将我的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 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);