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

访问/about页面会出现500错误,已在halo项目下提issuse,最后问题被定位在next主题下 #6

Open
1078249029 opened this issue Oct 25, 2024 · 1 comment

Comments

@1078249029
Copy link

原issue:halo-dev/halo#6943

System information

What is the project operation method?

Docker

What happened?

当我新建页面/about并尝试访问时会产生500错误,我按照论坛和之前issue的提示将其他插件停用后也会稳定触发bug。
下面是/about页面的配置
Image

Reproduce Steps

No response

Relevant log output

2024-10-25T10:10:19.344+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_partials/head/head] Deprecated unwrapped fragment expression "_config/halo-config" found in template _partials/head/head, line 26, col 11. Please use the complete syntax of fragment expressions instead ("~{_config/halo-config}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:19.601+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_partials/head/head] Deprecated unwrapped fragment expression "_config/next-config.html" found in template _partials/head/head, line 37, col 11. Please use the complete syntax of fragment expressions instead ("~{_config/next-config.html}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:19.759+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_layout] Deprecated unwrapped fragment expression "_partials/head/head-unique" found in template _layout, line 11, col 19. Please use the complete syntax of fragment expressions instead ("~{_partials/head/head-unique}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:19.982+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_layout] Deprecated unwrapped fragment expression "_partials/header/index" found in template _layout, line 39, col 31. Please use the complete syntax of fragment expressions instead ("~{_partials/header/index}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:20.095+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_partials/header/index] Deprecated unwrapped fragment expression "_partials/header/menu" found in template _partials/header/index, line 5, col 11. Please use the complete syntax of fragment expressions instead ("~{_partials/header/menu}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:20.097+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_partials/header/menu] Deprecated unwrapped fragment expression "_partials/header/menu-item" found in template _partials/header/menu, line 7, col 27. Please use the complete syntax of fragment expressions instead ("~{_partials/header/menu-item}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:20.470+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_partials/header/index] Deprecated unwrapped fragment expression "_partials/search/index" found in template _partials/header/index, line 7, col 11. Please use the complete syntax of fragment expressions instead ("~{_partials/search/index}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:20.473+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_macro/sidebar] Deprecated unwrapped fragment expression "_partials/sidebar/site-overview.html" found in template _macro/sidebar, line 25, col 31. Please use the complete syntax of fragment expressions instead ("~{_partials/sidebar/site-overview.html}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:23.939+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][index] Deprecated unwrapped fragment expression "_partials/pagination::render(posts = ${posts},type = 'posts')" found in template index, line 9, col 19. Please use the complete syntax of fragment expressions instead ("~{_partials/pagination::render(posts = ${posts},type = 'posts')}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:24.045+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_layout] Deprecated unwrapped fragment expression "_partials/footer" found in template _layout, line 64, col 27. Please use the complete syntax of fragment expressions instead ("~{_partials/footer}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:24.047+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_layout] Deprecated unwrapped fragment expression "_partials/widgets" found in template _layout, line 75, col 19. Please use the complete syntax of fragment expressions instead ("~{_partials/widgets}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:10:24.049+08:00  WARN 7 --- [boundedElastic-47] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-47][_layout] Deprecated unwrapped fragment expression "_scripts/index" found in template _layout, line 76, col 19. Please use the complete syntax of fragment expressions instead ("~{_scripts/index}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:11:01.515+08:00 ERROR 7 --- [boundedElastic-47] org.thymeleaf.TemplateEngine             : [THYMELEAF][boundedElastic-47] Exception processing throttled template "page": Cannot resolve fragment. Signature "html (head,title,content,sidebar,class,is_home,is_archive,have_comment)" declares parameter "title", which is not specified at the fragment selection. (template: "page" - line 13, col 7)

org.thymeleaf.exceptions.TemplateProcessingException: Cannot resolve fragment. Signature "html (head,title,content,sidebar,class,is_home,is_archive,have_comment)" declares parameter "title", which is not specified at the fragment selection. (template: "page" - line 13, col 7)
	at org.thymeleaf.standard.expression.FragmentSignatureUtils.processParameters(FragmentSignatureUtils.java:219) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.standard.processor.AbstractStandardFragmentInsertionTagProcessor.doProcess(AbstractStandardFragmentInsertionTagProcessor.java:182) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.processor.element.AbstractAttributeTagProcessor.doProcess(AbstractAttributeTagProcessor.java:74) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.processor.element.AbstractElementTagProcessor.process(AbstractElementTagProcessor.java:95) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.util.ProcessorConfigurationUtils$ElementTagProcessorWrapper.process(ProcessorConfigurationUtils.java:633) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1314) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.engine.OpenElementTag.beHandled(OpenElementTag.java:205) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.engine.TemplateModel.process(TemplateModel.java:155) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.engine.ThrottledTemplateProcessor.process(ThrottledTemplateProcessor.java:235) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.engine.ThrottledTemplateProcessor.process(ThrottledTemplateProcessor.java:200) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.spring6.SpringWebFluxTemplateEngine$StreamThrottledTemplateProcessor.process(SpringWebFluxTemplateEngine.java:720) ~[thymeleaf-spring6-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at org.thymeleaf.spring6.SpringWebFluxTemplateEngine.lambda$createChunkedStream$2(SpringWebFluxTemplateEngine.java:269) ~[thymeleaf-spring6-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	at reactor.core.publisher.FluxGenerate$GenerateSubscription.slowPath(FluxGenerate.java:271) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at reactor.core.publisher.FluxGenerate$GenerateSubscription.request(FluxGenerate.java:213) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.request(FluxPeekFuseable.java:144) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.requestUpstream(FluxSubscribeOn.java:131) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.onSubscribe(FluxSubscribeOn.java:124) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onSubscribe(FluxPeekFuseable.java:178) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at reactor.core.publisher.FluxGenerate.subscribe(FluxGenerate.java:85) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:68) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
	at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]

2024-10-25T10:11:02.872+08:00 ERROR 7 --- [parallel-1] a.w.r.e.AbstractErrorWebExceptionHandler : [bcc54b83-561]  500 Server Error for HTTP GET "/about"

org.thymeleaf.exceptions.TemplateProcessingException: Cannot resolve fragment. Signature "html (head,title,content,sidebar,class,is_home,is_archive,have_comment)" declares parameter "title", which is not specified at the fragment selection. (template: "page" - line 13, col 7)
	at org.thymeleaf.standard.expression.FragmentSignatureUtils.processParameters(FragmentSignatureUtils.java:219) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
	Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Error has been observed at the following site(s):
	*__checkpointHandler run.halo.app.theme.router.SinglePageRoute$$Lambda/0x000000000c3418c8@9b743acb [DispatcherHandler]
	*__checkpointrun.halo.app.security.InitializeRedirectionWebFilter [DefaultWebFilterChain]
	*__checkpointrun.halo.app.infra.webfilter.LocaleChangeWebFilter [DefaultWebFilterChain]
	*__checkpointrun.halo.app.security.device.DeviceSessionFilter [DefaultWebFilterChain]
	*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
	*__checkpointAuthorizationWebFilter [DefaultWebFilterChain]
	*__checkpointExceptionTranslationWebFilter [DefaultWebFilterChain]
	*__checkpointLogoutWebFilter [DefaultWebFilterChain]
	*__checkpointServerRequestCacheWebFilter [DefaultWebFilterChain]
	*__checkpointSecurityContextServerWebExchangeWebFilter [DefaultWebFilterChain]
	*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
	*__checkpointAnonymousAuthenticationWebFilter [DefaultWebFilterChain]
	*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
	*__checkpointAuthenticationWebFilter [DefaultWebFilterChain]
	*__checkpointAuthenticationWebFilter [DefaultWebFilterChain]
	*__checkpointAuthenticationWebFilter [DefaultWebFilterChain]
	*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
	*__checkpointMapOAuth2AuthenticationFilter [DefaultWebFilterChain]
	*__checkpoint ⇢  [DefaultWebFilterChain]
	*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
	*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
	*__checkpointReactorContextWebFilter [DefaultWebFilterChain]
	*__checkpointCsrfWebFilter [DefaultWebFilterChain]
	*__checkpointCorsWebFilter [DefaultWebFilterChain]
	*__checkpointHttpHeaderWriterWebFilter [DefaultWebFilterChain]
	*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
	*__checkpointServerWebExchangeReactorContextWebFilter [DefaultWebFilterChain]
	*__checkpointorg.springframework.security.web.server.WebFilterChainProxy [DefaultWebFilterChain]
	*__checkpointrun.halo.comment.widget.captcha.CommentCaptchaFilter [DefaultWebFilterChain]
	*__checkpointrun.halo.app.infra.webfilter.AdditionalWebFilterChainProxy [DefaultWebFilterChain]
	*__checkpointorg.springframework.web.filter.reactive.ServerWebExchangeContextFilter [DefaultWebFilterChain]
	*__checkpointHTTP GET "/about" [ExceptionHandlingWebHandler]
Original Stack Trace:
		at org.thymeleaf.standard.expression.FragmentSignatureUtils.processParameters(FragmentSignatureUtils.java:219) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.standard.processor.AbstractStandardFragmentInsertionTagProcessor.doProcess(AbstractStandardFragmentInsertionTagProcessor.java:182) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.processor.element.AbstractAttributeTagProcessor.doProcess(AbstractAttributeTagProcessor.java:74) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.processor.element.AbstractElementTagProcessor.process(AbstractElementTagProcessor.java:95) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.util.ProcessorConfigurationUtils$ElementTagProcessorWrapper.process(ProcessorConfigurationUtils.java:633) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1314) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.engine.OpenElementTag.beHandled(OpenElementTag.java:205) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.engine.TemplateModel.process(TemplateModel.java:155) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.engine.ThrottledTemplateProcessor.process(ThrottledTemplateProcessor.java:235) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.engine.ThrottledTemplateProcessor.process(ThrottledTemplateProcessor.java:200) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.spring6.SpringWebFluxTemplateEngine$StreamThrottledTemplateProcessor.process(SpringWebFluxTemplateEngine.java:720) ~[thymeleaf-spring6-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at org.thymeleaf.spring6.SpringWebFluxTemplateEngine.lambda$createChunkedStream$2(SpringWebFluxTemplateEngine.java:269) ~[thymeleaf-spring6-3.1.2.RELEASE.jar:3.1.2.RELEASE]
		at reactor.core.publisher.FluxGenerate$GenerateSubscription.slowPath(FluxGenerate.java:271) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at reactor.core.publisher.FluxGenerate$GenerateSubscription.request(FluxGenerate.java:213) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.request(FluxPeekFuseable.java:144) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.requestUpstream(FluxSubscribeOn.java:131) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.onSubscribe(FluxSubscribeOn.java:124) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onSubscribe(FluxPeekFuseable.java:178) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at reactor.core.publisher.FluxGenerate.subscribe(FluxGenerate.java:85) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:68) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.7.0-M6.jar:3.7.0-M6]
		at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
		at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:na]
		at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
		at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
		at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]

2024-10-25T10:13:54.881+08:00  WARN 7 --- [boundedElastic-49] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-49][_layout] Deprecated unwrapped fragment expression "_partials/head/head" found in template _layout, line 9, col 19. Please use the complete syntax of fragment expressions instead ("~{_partials/head/head}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:13:54.904+08:00  WARN 7 --- [boundedElastic-49] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-49][_partials/head/head] Deprecated unwrapped fragment expression "_config/halo-config" found in template _partials/head/head, line 26, col 11. Please use the complete syntax of fragment expressions instead ("~{_config/halo-config}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
2024-10-25T10:13:54.925+08:00  WARN 7 --- [boundedElastic-49] actStandardFragmentInsertionTagProcessor : [THYMELEAF][boundedElastic-49][_partials/head/head] Deprecated unwrapped fragment expression "_config/next-config.html" found in template _partials/head/head, line 37, col 11. Please use the complete syntax of fragment expressions instead ("~{_config/next-config.html}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.

Additional information

No response

@1078249029
Copy link
Author

问题已经被halo的开发者定位在 halo-dev/halo#6943 (comment) ,希望大佬能跟进一下😊

@1078249029 1078249029 changed the title 访问/about页面会出现500错误,已在halo项目下提issuse后问题被定位在next主题下 访问/about页面会出现500错误,已在halo项目下提issuse,最后问题被定位在next主题下 Oct 25, 2024
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