Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12月26更新后报错 Uncaught Error: Undefined constant "DB_SSL" #280

Closed
wenyinos opened this issue Dec 30, 2024 · 2 comments
Closed

12月26更新后报错 Uncaught Error: Undefined constant "DB_SSL" #280

wenyinos opened this issue Dec 30, 2024 · 2 comments
Labels

Comments

@wenyinos
Copy link

  • [y] 我已升级贴吧云签到到最新版本,并且运行了升级脚本
  • [y] 我已搜索过 Issue 区,没有找到相关问题

问题描述

更新后打开主页显示:
Fatal error: Uncaught Error: Undefined constant "DB_SSL" in ***/lib/mysql_autoload.php:25 Stack trace: #0 ***/init.php(49): require() #1 ***index.php(10): require('...') #2 {main} thrown in ***/lib/mysql_autoload.php on line 25
在/lib/mysql_autoload.php中去掉25行"DB_SSL"后正常。

复现步骤

在线更新后。

环境

  • 云签到版本:V5.02
  • 服务器系统和版本:Linux VM-8-2-ubuntu 5.15.0-116-generic #126~20.04.1
  • 云签到是否在 Docker 中运行:否
  • PHP 版本:8.2.19
  • MySQL 版本:5.7.44-log
@BANKA2017
Copy link
Collaborator

config.php 后面手动加一行

define('DB_SSL', 0);

@BANKA2017 BANKA2017 pinned this issue Dec 30, 2024
@BANKA2017 BANKA2017 changed the title 12月26更新后报错 12月26更新后报错 Uncaught Error: Undefined constant "DB_SSL" Dec 30, 2024
@n0099
Copy link
Collaborator

n0099 commented Dec 30, 2024

#273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants