代码拉取完成,页面将自动刷新
最新的版本的php,对参数的类型更加严格,如把null输入到string函数会出错,希望能完善一下兼容。
因为default_filter默认使用htmlentities,好多模板直接出错,如下所示
htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated
<body class="hold-transition sidebar-mini layout-fixed layout-navbar-fixed pace-primary text-sm <?php if($layer == true): ?>layer-body<?php endif; ?>" data-display_mode="<?php echo htmlentities($system['display_mode']); ?>">
这应该是think-template的问题了,而且你为什么会出现null的情况?
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
think-template3.0版本修复了问题,此cms用的是think-template2.0.9,因为"topthink/think-view": "^1.0",其中用的template,topthink/think-view 2.0版本以后就引用think-template3.0了,
你可以composer.json中修改
"php": ">=8.0.0",
"topthink/think-view": "^2.0",
删除两个
"lcobucci/jwt": "^3.3.3",
"zzstudio/think-addons": "^2.0",
执行更新一下试试,如果你还需要用插件和jwt可以自己重新添加下,如果那俩还有新版本的话,好像不更新了
composer update
登录 后才可以发表评论