当前位置:论坛首页 > Linux面板 > 求助

【待反馈】nginx一直抛出错误,是哪里被我动到了吗

发表在 Linux面板2022-9-6 18:11 [复制链接] 3 988

本帖最后由 chnz 于 2022-9-6 22:13 编辑

请教社区的老师,这个不知道怎么了,一直抛出错误,如何解决或者如何屏蔽不影响运行的错误,时间久了占文件太大了
  1. PHP Warning: Unexpected character in input: '' (ASCII=1) state=0 in /dev/shm/1f28ad1c-0e86-4f2c-b358-080f5f22ad9b.txt on line 40
  2. PHP Warning: Unexpected character in input: '' (ASCII=29) state=0 in /dev/shm/1f28ad1c-0e86-4f2c-b358-080f5f22ad9b.txt on line 40
  3. PHP Parse error: syntax error, unexpected '幱' (T_STRING) in /dev/shm/1f28ad1c-0e86-4f2c-b358-080f5f22ad9b.txt on line 40
  4. PHP Warning: PHP Startup: Unable to load dynamic library '/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/bt_safe.so' (tried: /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/bt_safe.so (/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/bt_safe.so: cannot open shared object file: No such file or directory), /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718//www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/bt_safe.so.so (/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718//www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/bt_safe.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
  5. PHP Warning: Unexpected character in input: '' (ASCII=15) state=0 in /dev/shm/d0682cf6-0c5f-45d2-93a2-0b4291949613.txt on line 577
  6. PHP Parse error: syntax error, unexpected 'f' (T_STRING) in /dev/shm/d0682cf6-0c5f-45d2-93a2-0b4291949613.txt on line 577
复制代码
使用道具 举报 只看该作者 回复
发表于 2022-9-6 18:47:38 | 显示全部楼层
您好,您到PHP设置内---找到扩展,然后将bt_safe扩展卸载。
3.png
使用道具 举报 回复 支持 反对
发表于 2022-9-6 20:32:20 | 显示全部楼层
本帖最后由 chnz 于 2022-9-6 22:14 编辑
谢花郎 发表于 2022-9-6 18:47
您好,您到PHP设置内---找到扩展,然后将bt_safe扩展卸载。

老师您好,我去查看了一下,没有安装扩展,我随后进行了安装,然后进行卸载,现在还是有大量报错和警告信息
Nginx 1.20.2
PHP-7.2.33
CentOS 7.9.2009 x86_64(Py3.7.8)
随后这会儿又重新安装bt_safe插件

报错如下:
  1. PHP Warning:  Unexpected character in input:  '
  2. ' (ASCII=11) state=0 in /dev/shm/e54be932-6828-4aa2-a348-7c47b1c9d01a.txt on line 70
  3. PHP Warning:  Unexpected character in input:  '' (ASCII=5) state=0 in /dev/shm/e54be932-6828-4aa2-a348-7c47b1c9d01a.txt on line 70
  4. PHP Parse error:  syntax error, unexpected '帥' (T_STRING) in /dev/shm/e54be932-6828-4aa2-a348-7c47b1c9d01a.txt on line 70
  5. PHP Warning:  Unexpected character in input:  '' (ASCII=31) state=0 in /dev/shm/fd47bc91-75b0-416c-b66a-6e8348904152.txt on line 133
  6. PHP Parse error:  syntax error, unexpected '? (T_STRING) in /dev/shm/fd47bc91-75b0-416c-b66a-6e8348904152.txt on line 133
  7. PHP Parse error:  syntax error, unexpected ':', expecting end of file in /dev/shm/46db6b52-a73e-4344-89cc-a71f1684af80.txt on line 372
  8. PHP Parse error:  syntax error, unexpected '$瘳' (T_VARIABLE) in /dev/shm/ba61ea6f-19f1-4e8d-a5a1-dc836b7cdd79.txt on line 952
复制代码

随后网上搜索报错提到的php配置也是没有效果
在php.ini中设置short_open_tag = On(原始设置)

卸载bt-safe扩展后报错如下:
  1. PHP Warning:  Unexpected character in input:  ' in /dev/shm/20c4694d-2d6e-4f81-9d5f-c1f67189d6ac.txt on line 62
  2. PHP Parse error:  syntax error, unexpected '? (T_STRING) in /dev/shm/20c4694d-2d6e-4f81-9d5f-c1f67189d6ac.txt on line 62
  3. PHP Warning:  PHP Startup: Unable to load dynamic library '/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/bt_safe.so' (tried: /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/bt_safe.so (/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/bt_safe.so: cannot open shared object file: No such file or directory), /www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718//www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/bt_safe.so.so (/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718//www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718/bt_safe.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
  4. PHP Warning:  Unexpected character in input:  '
  5. ' (ASCII=11) state=0 in /dev/shm/b8f9e17b-d745-4fda-80e9-9a92e2bf8bab.txt on line 761
  6. PHP Parse error:  syntax error, unexpected '強' (T_STRING) in /dev/shm/b8f9e17b-d745-4fda-80e9-9a92e2bf8bab.txt on line 761
复制代码

使用道具 举报 回复 支持 反对
发表于 2022-9-20 17:56:40 | 显示全部楼层
chnz 发表于 2022-9-6 20:32
老师您好,我去查看了一下,没有安装扩展,我随后进行了安装,然后进行卸载,现在还是有大量报错和警告信 ...


您好,您发您的todesk远程连接码或者向日葵远程连接码到我的邮箱,我远程过去看下是什么问题
我的邮箱:
  1. bt_dapao@qq.com
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表