解决在PHP7.1下ZBLOG PHP出现”operator not supported for strings”问题

技术分享评论字数 304阅读模式

由于PHP7.X版本对于WordPress程序效率得到不错的提升,大鸟也陆续将服务器都升级至7.0或者7.1版本PHP,但是今天发现一个问题,服务器中的ZBLOG PHP程序在PHP7.1环境中编辑、修改文章的时候有出现错误,提示"[] operator not supported for strings"错误提示。

解决在PHP7.1下ZBLOG PHP出现”operator not supported for strings”问题

以上是点击编辑文章时候出现的错误,然后去ZBP老板那边去问问如何解决,应该是PHP7.1数组格式问题。

解决方法:

zb_system/function/lib/post.php

找到这个文件,第63行。

解决在PHP7.1下ZBLOG PHP出现”operator not supported for strings”问题

将:

$c = '';

改为

$c =array();

最后,我们再去ZBLOG PHP后台编辑需要的文章就不会有错误。

weinxin
我的微信
微信公众号
关注大鸟博客公众号
 
大鸟
匿名

发表评论

匿名网友

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

确定