mirai-mamori / Sakurairo

一个多彩、轻松上手、体验完善,具有强大自定义功能的WordPress主题(基于Sakura主题,支持简繁英日多语言)A Colorful, Easy-to-use, Perfect Experience, and Powerful Customizable WordPress Theme (Based on Theme Sakura. Support Simplified Chinese, Traditional Chinese, English and Japanese languages)
https://docs.fuukei.org
GNU General Public License v2.0
3.09k stars 356 forks source link

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

Closed L-time closed 11 hours ago

L-time commented 12 hours ago

大致范围:

新增页面后报致命错误

具体行为描述:

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

尝试:

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

配置与环境:

截图(若有) image

github-actions[bot] commented 12 hours ago

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

github-actions[bot] commented 12 hours ago

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

L-time commented 12 hours ago

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 commented 12 hours ago

添加了什么模版 先替换为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 GitHubhttps://github.com/mirai-mamori/Sakurairo/issues/984#issuecomment-2475307343, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUJUFXSA2LI5VRP63L3VFD2AQGFPAVCNFSM6AAAAABRX35BPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGMYDOMZUGM. You are receiving this because you are subscribed to this thread.Message ID: @.***>

L-time commented 12 hours ago

添加了什么模版 先替换为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 commented 12 hours ago

没有理解 这是主题 不是其他主题的模版

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 #984https://github.com/mirai-mamori/Sakurairo/issues/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() #1https://github.com/mirai-mamori/Sakurairo/pull/1 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template.php(745): load_template() #2https://github.com/mirai-mamori/Sakurairo/pull/2 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/general-template.php(48): locate_template() #3https://github.com/mirai-mamori/Sakurairo/pull/3 /www/wwwroot/blog.leave-time.me/wordpress/wp-content/themes/Sakurairo/page-archive.php(6): get_header() #4https://github.com/mirai-mamori/Sakurairo/issues/4 /www/wwwroot/blog.leave-time.me/wordpress/wp-includes/template-loader.php(106): include('...') #5https://github.com/mirai-mamori/Sakurairo/issues/5 /www/wwwroot/blog.leave-time.me/wordpress/wp-blog-header.php(19): require_once('...') #6https://github.com/mirai-mamori/Sakurairo/issues/6 /www/wwwroot/blog.leave-time.me/wordpress/index.php(17): require('...') #7https://github.com/mirai-mamori/Sakurairo/issues/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)https://github.com/mirai-mamori/Sakurairo/issues/984#issuecomment-2475307343>, 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 GitHubhttps://github.com/mirai-mamori/Sakurairo/issues/984#issuecomment-2475312779, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUJUFT4PZQMA4X7NYJDC732AQG4XAVCNFSM6AAAAABRX35BPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGMYTENZXHE. You are receiving this because you commented.Message ID: @.***>

L-time commented 12 hours ago

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 commented 11 hours ago

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

KotoriK commented 6 hours ago

undefined function mb_strimwidth()

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