hyy34 发表于 2021-2-7 23:18:29

【待反馈】切换php出现Traceback (most recent call last):

CentOS 7.7.1908(Py3.7.9)
BT 7.5.1
python -V 显示为2.7.5


发现网站的php全部显示为静态(原先为7.2),点击静态切换php显示错误:


SITE_PHPVERSION_ERR_A22,Traceback (most recent call last): File "class/panelSite.py", line 2884, in GetSitePHPVersion data['tomcat'] = conf.find('#TOMCAT-START') AttributeError: 'bool' object has no attribute 'find'


点主页右上的修复,情况依旧。



论坛搜索下了,用了升级修复命令,curl https://download.bt.cn/install/update_panel.sh|bash,之后再切换php
显示错误:
SITE_PHPVERSION_ERR_A22,Traceback (most recent call last): File "class/flask_sockets.py", line 30, in __call__ handler, values = adapter.match() File "/www/server/panel/pyenv/lib/python3.7/site-packages/werkzeug/routing.py", line 1945, in match raise NotFound() werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "class/panelSite.py", line 2884, in GetSitePHPVersion data['tomcat'] = conf.find('#TOMCAT-START') AttributeError: 'bool' object has no attribute 'find'



又搜索了下,运行了:
rm -rf /www/server/panel/pyenv
curl https://download.bt.cn/install/update_panel.sh|bash

情况依旧。

应该跟安装了python 3.7 有关系吧?请问应该如何补救呢?

向樛木多少斤了 发表于 2021-2-8 10:16:57

你要不试试直接改nginx配置文件

hyy34 发表于 2021-2-8 13:36:42

钻头 发表于 2021-2-8 10:16
你要不试试直接改nginx配置文件

我是切换php版本出现的这个问题。目前所有网站的php版本都自动更改为静态了。

hyy34 发表于 2021-2-8 21:29:44

额?没人??https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

hyy34 发表于 2021-2-9 16:00:40

请问大家,有人知道如何解决嘛。升级测试版情况依旧。。

大炮运维V587 发表于 2021-2-9 21:39:32

hyy34 发表于 2021-2-9 16:00
请问大家,有人知道如何解决嘛。升级测试版情况依旧。。

重新安装下php,可以切换吗?

hyy34 发表于 2021-2-28 22:22:15

大炮运维V587 发表于 2021-2-9 21:39
重新安装下php,可以切换吗?

卸载了,又重新安装,点击切换php就还是之前的错误。https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

大炮运维V587 发表于 2021-3-1 09:08:38

hyy34 发表于 2021-2-28 22:22
卸载了,又重新安装,点击切换php就还是之前的错误。

私信发面板登录信息,我这边看下是什么问题

宝塔用户_fuhwyd 发表于 2021-7-27 11:20:39

大炮运维V587 发表于 2021-3-1 09:08
私信发面板登录信息,我这边看下是什么问题

我也出现了 怎么解决的?

大炮运维V587 发表于 2021-7-27 15:49:43

宝塔用户_fuhwyd 发表于 2021-7-27 11:20
我也出现了 怎么解决的?

私信发面板登录信息,我这边看下是什么问题

宝塔用户_fuhwyd 发表于 2021-7-27 22:04:58

大炮运维V587 发表于 2021-7-27 15:49


知道问题了我手动更改了网站名称,删除重新添加就行了。

大炮运维V587 发表于 2021-7-28 09:04:48

hyy34 发表于 2021-2-28 22:22
卸载了,又重新安装,点击切换php就还是之前的错误。

请问您的问题解决了吗
页: [1]
查看完整版本: 【待反馈】切换php出现Traceback (most recent call last):