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-beta1出现的问题 #1167

Closed
langonginc opened this issue Sep 10, 2021 · 0 comments
Closed

升级到1.2.0-beta1出现的问题 #1167

langonginc opened this issue Sep 10, 2021 · 0 comments

Comments

@langonginc
Copy link

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

完成升级后打开首页,提示如下:

image

使用 ssh 连接到服务器后通过 php 运行之后提示如下问题:

<pre><code><h1>Return value of Typecho\Request::getUrlPrefix() must be of the type string, null returned</h1>TypeError: Return value of Typecho\Request::getUrlPrefix() must be of the type string, null returned in /volume2/web/blogs/var/Typecho/Request.php:509
Stack trace:
#0 /volume2/web/blogs/var/Typecho/Request.php(219): Typecho\Request-&gt;getUrlPrefix()
#1 /volume2/web/blogs/var/Typecho/Widget/Request.php(158): Typecho\Request-&gt;getRequestRoot()
#2 /volume2/web/blogs/var/Widget/Options.php(168): Typecho\Widget\Request-&gt;getRequestRoot()
#3 /volume2/web/blogs/var/Typecho/Widget.php(151): Widget\Options-&gt;execute()
#4 /volume2/web/blogs/var/Typecho/Widget.php(183): Typecho\Widget::widget('Widget\\Options', NULL, NULL, true)
#5 /volume2/web/blogs/var/Widget/Init.php(61): Typecho\Widget::alloc()
#6 /volume2/web/blogs/var/Typecho/Widget.php(151): Widget\Init-&gt;execute()
#7 /volume2/web/blogs/var/Typecho/Widget.php(183): Typecho\Widget::widget('Widget\\Init', NULL, NULL, true)
#8 /volume2/web/blogs/index.php(17): Typecho\Widget::alloc()
#9 {main}</code></pre>

GNU/Linux Synology Diskstation x64, php 7.4, mysql latest

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

期望正常访问,实际提示图1、图2.

3. 问题出现的环境

  • 操作系统版本:x86_64 GNU/Linux Synology Diskstation
  • Apache/NGINX 版本:Apache 2.4
  • 数据库版本:MySQL MariaDB 10
  • PHP 版本:PHP 7.4
  • Typecho 版本:Typecho 1.2.0-beta.1
  • 浏览器版本:Microsoft Edge Version 93.0.961.38 (Official build) (64-bit)
@joyqi joyqi closed this as completed in 419183a Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant