@Findus23 opened this Pull Request on March 9th 2019 Member

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

ErrorException: Array to string conversion
<a href='/33'>#33</a> 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 commented on March 9th 2019 Member

Would displaying the value as json be helpful?

@tsteur commented on March 12th 2019 Member

Showing it json encoded sounds good 👍

@tsteur commented on April 11th 2019 Member

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

@Findus23 commented on April 19th 2019 Member

Sorry, I missed this PR.

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

This Pull Request was closed on April 22nd 2019
Powered by GitHub Issue Mirror