我的知识记录

请问PbootCMS附件上传失败报错UNKNOW_ Code_ 8192; Desc_ stripos()_

当遇到上传失败报错 UNKNOW: Code: 8192; Desc: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior; File: /www/wwwroot/aaa.xxxx.com/core/function/file.php; Line: 176; 时,可以通过修改代码来解决该问题。

解决方案

  1. 定位问题代码
  2. 修改代码
  3. 验证结果

详细步骤

1. 定位问题代码

  1. 打开文件
    • 打开 /core/function/file.php 文件。
    • 查找以下代码行:
      if (stripos($types, $ext) !== false)

2. 修改代码

  1. 替换代码
    • 将上述代码替换为:
      if (stripos($types, chr($ext)) !== false)

       

标签:bootstrap附件上传-bootstrap文件上传组件-springboot附件上传-bootstrap上传文件插件-springboot上传附件功能-

更新时间:2025-04-11 00:01:57

上一篇:请问pbootcms模板英文站搜索效果页面包屑显示优化

下一篇:请问phpcms 后台修改网站备案号,如何在 PHPCMS 中更改网站备案信息