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

1.2.0-beta.1 报错 Undefined constant #1155

Closed
iKirby opened this issue Sep 8, 2021 · 1 comment
Closed

1.2.0-beta.1 报错 Undefined constant #1155

iKirby opened this issue Sep 8, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@iKirby
Copy link

iKirby commented Sep 8, 2021

1. 该问题的重现步骤是什么?

把服务器上的文件替换为 1.2.0-beta.1

2. 你期待的结果是什么?实际看到的又是什么?

期待结果正常运行。实际出现错误:

[08-Sep-2021 14:20:16] WARNING: [pool www] child 75711 said into stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught Error: Undefined constant "Typecho\__TYPECHO_CLASS_ALIASES__" in /home/wwwroot/ikirby.me/var/Typecho/Common.php:104"
[08-Sep-2021 14:20:16] WARNING: [pool www] child 75711 said into stderr: "Stack trace:"
[08-Sep-2021 14:20:16] WARNING: [pool www] child 75711 said into stderr: "#0 /home/wwwroot/ikirby.me/config.inc.php(52): Typecho\{closure}()"
[08-Sep-2021 14:20:16] WARNING: [pool www] child 75711 said into stderr: "#1 /home/wwwroot/ikirby.me/index.php(11): include_once('...')"
[08-Sep-2021 14:20:16] WARNING: [pool www] child 75711 said into stderr: "#2 {main}"
[08-Sep-2021 14:20:16] WARNING: [pool www] child 75711 said into stderr: "  thrown in /home/wwwroot/ikirby.me/var/Typecho/Common.php on line 104"

3. 问题出现的环境

  • 操作系统版本:Ubuntu 20.04
  • Apache/NGINX 版本:Caddy 2.4.3
  • 数据库版本:MariaDB 10.3
  • PHP 版本:8.0.9
  • Typecho 版本:1.2.0-beta.1
  • 浏览器版本:Chrome 93
@joyqi joyqi added the bug Something isn't working label Sep 8, 2021
@benzBrake
Copy link
Contributor

config.inc.php 你没修改 config.inc.php 的格式吧

@joyqi joyqi closed this as completed in a4883be Sep 8, 2021
@joyqi joyqi added this to the v1.2.0-beta.2 milestone Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants