typecho / typecho/typecho

1.0.14版本安装成功后无法自动加载文件问题?

Open
#389 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
12.4k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

安装成功后会生成config.inc.php配置文件,对比install.php文件你会发现缺少一行代码。

/** 程序初始化 */
Typecho_Common::init();

这行代码的作用是注册类的自动加载机制,如果不初始化,那么程序是无法使用的。

就因为这行代码,我真是整整排查了两个小时。

!!!!!!!!!!!!!!!!!!!!!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the generated config.inc.php with install.php, focusing on the initialization shown in the issue. Reproduce a fresh installation and verify that the generated configuration loads the application successfully and that the installed site works without manual edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.