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

500 Error when accessing diagnostics for page #723

Open
webrgp opened this issue Oct 21, 2024 · 2 comments
Open

500 Error when accessing diagnostics for page #723

webrgp opened this issue Oct 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@webrgp
Copy link

webrgp commented Oct 21, 2024

Bug Report

Confirmed the issue when accessing page that has elementQueryType of type craft\\elements\\Category. I've tracked down the issue and adding parenthesis to this line seems to fix it.

{# add parenthesis after displayName #}
{{ create(elementQueryType.type).displayName() }} Queries

Diagnostics Report

Craft: 4.11.5
Blitz: 4.23.2

@webrgp webrgp added the bug Something isn't working label Oct 21, 2024
@webrgp
Copy link
Author

webrgp commented Oct 22, 2024

Same in src/templates/_utilities/diagnostics/pages/element-query-type.twig

@bencroker
Copy link
Collaborator

Hmm, that’s strange, create(elementQueryType.type).displayName should work just fine. Can you please check what the exact exception message is in the logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants