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

fix diagnostics template #14171

Merged
merged 1 commit into from Apr 22, 2019
Merged

fix diagnostics template #14171

merged 1 commit into from Apr 22, 2019

Conversation

Findus23
Copy link
Member

@Findus23 Findus23 commented Mar 9, 2019

I have been seeing this error quite often on my instance in Sentry

ErrorException: Array to string conversion
#33 vendor/twig/twig/lib/Twig/Extension/Core.php(740): handleError

It seems to be caused by my CustomiseTranslations plugin. Because when you are viewing the "Config File" Diagnostic page it tries to display the following data (as the plugin stores a list of dictionaries in the config)

[{$$hashKey: object:457, translationKey: CorePluginsAdmin_PluginsManagement, translationText: This is text!!}, {$$hashKey: object:467, translationKey: , translationText: }]

My fix isn't great and I can't promise it works well, but maybe someone else can think of something more simple.

@diosmosis
Copy link
Member

Would displaying the value as json be helpful?

@tsteur
Copy link
Member

tsteur commented Mar 12, 2019

Showing it json encoded sounds good 👍

@tsteur
Copy link
Member

tsteur commented Apr 11, 2019

@Findus23 should we maybe show it as json? or prefer current logic?

@Findus23 Findus23 marked this pull request as ready for review April 19, 2019 18:34
@Findus23
Copy link
Member Author

Sorry, I missed this PR.

I didn't think about JSON when creating the fix, this way it is easier and prettier.

@tsteur tsteur merged commit 88dc7a5 into 3.x-dev Apr 22, 2019
@tsteur tsteur deleted the fix-config-twig-template branch April 22, 2019 23:11
@Findus23 Findus23 restored the fix-config-twig-template branch October 4, 2019 09:48
@sgiehl sgiehl deleted the fix-config-twig-template branch February 10, 2020 13:01
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

Successfully merging this pull request may close these issues.

None yet

3 participants