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

新增页面后访问报致命错误 #984

Closed
L-time opened this issue Nov 14, 2024 · 9 comments
Closed

新增页面后访问报致命错误 #984

L-time opened this issue Nov 14, 2024 · 9 comments
Labels
help help

Comments

@L-time
Copy link

L-time commented Nov 14, 2024

大致范围:

新增页面后报致命错误

具体行为描述:

新增页面后预览与访问均抛出致命错误:

尝试:

更换页面模板后均无法解决

配置与环境:

  • PHP 版本:8.2
  • 数据库类型 / 版本:10.11.6-MariaDB-0+deb12u1 Debian 12
  • WordPress 版本:6.7
  • 主题版本:(Release 标注的版本号)2.7.1
  • 使用的插件:WP-China-Yes WP QuickLaTeX WP Editor.md
  • 浏览器:Edge 130.0.2849.80 (正式版本) (64 位)

截图(若有)
image

@L-time L-time added the help help label Nov 14, 2024
Copy link

@L-time,感谢你给 sakurairo 提出了 issue。ヾ(≧▽≦*)o
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Copy link

任何人都可以处理此问题。
请务必在您的 pull request 中引用此问题。
感谢你的贡献! (o゜▽゜)o☆

@L-time
Copy link
Author

L-time commented Nov 14, 2024

Fatal error: Uncaught Error: Call to undefined function mb_strimwidth() in /www/wwwroot/blog.leave-time.me/wordpress/wp-content/themes/Sakurairo/header.php:49 Stack trace: #0 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template.php(810): require_once() #1 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template.php(745): load_template() #2 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/general-template.php(48): locate_template() #3 /www/wwwroot/blog.leave-time.me/wordpress/wp-content/themes/Sakurairo/page-archive.php(6): get_header() #4 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template-loader.php(106): include('...') #5 /www/wwwroot/blog.leave-time.me/wordpress/wp-blog-header.php(19): require_once('...') #6 /www/wwwroot/blog.leave-time.me/wordpress/index.php(17): require('...') #7 {main} thrown in /www/wwwroot/blog.leave-time.me/wordpress/wp-content/themes/Sakurairo/header.php on line 49

不知道为什么上面的日志没了,补充一下

@mirai-mamori
Copy link
Owner

mirai-mamori commented Nov 14, 2024 via email

@L-time
Copy link
Author

L-time commented Nov 14, 2024

添加了什么模版 先替换为2.7.2一下 Outlook for iOShttps://aka.ms/o0ukef を入手

________________________________ 差出人: Leave-Time @.> 送信日�r: Thursday, November 14, 2024 11:54:15 AM 宛先: mirai-mamori/Sakurairo @.> CC: Subscribed @.> 件名: Re: [mirai-mamori/Sakurairo] 新增页面后访问报致命错误 (Issue #984) Fatal error: Uncaught Error: Call to undefined function mb_strimwidth() in /www/wwwroot/blog.leave-time.me/wordpress/wp-content/themes/Sakurairo/header.php:49 Stack trace: #0 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template.php(810): require_once() #1 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template.php(745): load_template() #2 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/general-template.php(48): locate_template() #3 /www/wwwroot/blog.leave-time.me/wordpress/wp-content/themes/Sakurairo/page-archive.php(6): get_header() #4 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template-loader.php(106): include('...') #5 /www/wwwroot/blog.leave-time.me/wordpress/wp-blog-header.php(19): require_once('...') #6 /www/wwwroot/blog.leave-time.me/wordpress/index.php(17): require('...') #7 {main} thrown in /www/wwwroot/blog.leave-time.me/wordpress/wp-content/themes/Sakurairo/header.php on line 49 不知道为什么上面的日志没了,补充一下 ― Reply to this email directly, view it on GitHub<#984 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUJUFXSA2LI5VRP63L3VFD2AQGFPAVCNFSM6AAAAABRX35BPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGMYDOMZUGM. You are receiving this because you are subscribed to this thread.Message ID: @.>

替换了,还是一样的错误

模板只有Sakurairo

@mirai-mamori
Copy link
Owner

mirai-mamori commented Nov 14, 2024 via email

@L-time
Copy link
Author

L-time commented Nov 14, 2024

image

没有理解 这是主题 不是其他主题的模版 Outlook for iOShttps://aka.ms/o0ukef を入手

________________________________ 差出人: Leave-Time @.> 送信日時: Thursday, November 14, 2024 12:00:27 PM 宛先: mirai-mamori/Sakurairo @.> CC: 染川瞳 @.>; Comment @.> 件名: Re: [mirai-mamori/Sakurairo] 新增页面后访问报致命错误 (Issue #984) 添加了什么模版 先替换为2.7.2一下 Outlook for iOShttps://aka.ms/o0ukef を入手 …
________________________________ 差出人: Leave-Time @.> 送信日�r: Thursday, November 14, 2024 11:54:15 AM 宛先: mirai-mamori/Sakurairo @.> CC: Subscribed @.> 件名: Re: [mirai-mamori/Sakurairo] 新增页面后访问报致命错误 (Issue #984<#984>) Fatal error: Uncaught Error: Call to undefined function mb_strimwidth() in /www/wwwroot/blog.leave-time.me/wordpress/wp-content/themes/Sakurairo/header.php:49 Stack trace: #0 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template.php(810): require_once() #1<#1> /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template.php(745): load_template() #2<#2> /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/general-template.php(48): locate_template() #3<#3> /www/wwwroot/blog.leave-time.me/wordpress/wp-content/themes/Sakurairo/page-archive.php(6): get_header() #4<#4> /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template-loader.php(106): include('...') #5<#5> /www/wwwroot/blog.leave-time.me/wordpress/wp-blog-header.php(19): require_once('...') #6<#6> /www/wwwroot/blog.leave-time.me/wordpress/index.php(17): require('...') #7<#7> {main} thrown in /www/wwwroot/blog.leave-time.me/wordpress/wp-content/themes/Sakurairo/header.php on line 49 不知道为什么上面的日志没了,补充一下 ― Reply to this email directly, view it on GitHub<#984 (comment)<#984 (comment)>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUJUFXSA2LI5VRP63L3VFD2AQGFPAVCNFSM6AAAAABRX35BPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGMYDOMZUGM. You are receiving this because you are subscribed to this thread.Message ID: @.> 替换了,还是一样的错误 模板只有Sakurairo — Reply to this email directly, view it on GitHub<#984 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUJUFT4PZQMA4X7NYJDC732AQG4XAVCNFSM6AAAAABRX35BPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGMYTENZXHE. You are receiving this because you commented.Message ID: @.***>

@L-time
Copy link
Author

L-time commented Nov 14, 2024

解决了,重装之后解决了,目测是有东西丢失了,不知道是什么原因

@L-time L-time closed this as completed Nov 14, 2024
@KotoriK
Copy link
Collaborator

KotoriK commented Nov 14, 2024

undefined function mb_strimwidth()

就是php没装mbstring扩展导致的。对于中文站而言基本是必备扩展了。

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

No branches or pull requests

3 participants