微慑信息网

debian12安装宝塔7.7KX报错解决

登陆处 密码错误多次 提示验证码时,无法显示验证码,/code报错如下:

TypeError: send_file() got an unexpected keyword argument 'cache_timeout'
REQUEST_DATE: 2024-08-30 21:23:54
 PAN_VERSION: 7.7.0
  OS_VERSION: Debian GNU/Linux 12 x86_64(Py3.7.16)
 REMOTE_ADDR: 23.249.26.162
 REQUEST_URI: GET /code?1725024227439
REQUEST_FORM: {}
  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Traceback (most recent call last):
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2529, in wsgi_app
    response = self.full_dispatch_request()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/www/server/panel/BTPanel/__init__.py", line 1146, in code
    return send_file(out, mimetype='image/png', cache_timeout=0)
TypeError: send_file() got an unexpected keyword argument 'cache_timeout'

解决:找到/www/server/panel/BTPanel/__init__.py

1146行,删除cache_timeout重启即可

赞(0) 打赏
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » debian12安装宝塔7.7KX报错解决

评论 抢沙发

微慑信息网 专注工匠精神

微慑信息网-VulSee.com-关注前沿安全态势,聚合网络安全漏洞信息,分享安全文档案例

访问我们联系我们

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

登录

找回密码

注册