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)

       

posted @   黄文Rex  阅读(7)  评论(0编辑  收藏  举报
(评论功能已被禁用)
相关博文:
阅读排行:
· [翻译] 为什么 Tracebit 用 C# 开发
· Deepseek官网太卡,教你白嫖阿里云的Deepseek-R1满血版
· 2分钟学会 DeepSeek API,竟然比官方更好用!
· .NET 使用 DeepSeek R1 开发智能 AI 客户端
· 刚刚!百度搜索“换脑”引爆AI圈,正式接入DeepSeek R1满血版
点击右上角即可分享
微信分享提示