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

Uncaught ErrorException: Array to string conversion #14

Closed
MiFrance opened this issue Mar 17, 2019 · 4 comments
Closed

Uncaught ErrorException: Array to string conversion #14

MiFrance opened this issue Mar 17, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@MiFrance
Copy link
Contributor

MiFrance commented Mar 17, 2019

Hi,
Get my french language pack:
fr.yml.zip

Now if you select French in profile, you get a error for edit page:
PHP Fatal error: Uncaught ErrorException: Array to string conversion in /formwork/admin/views/fields/checkbox.php:4

@giuscris giuscris added the bug Something isn't working label Mar 17, 2019
@giuscris
Copy link
Member

Hi @MiFrance,
first of all thank you for the French language pack. Could you make a PR when it's done?

Thank you also for discovering the bug! It happens since you don't have the labels in French for the template fields in /templates/schemes/.
In the next commit I'll fix it making it switch to a fallback language.

@giuscris
Copy link
Member

Fixed issue with last commit, thank you again!

@MiFrance
Copy link
Contributor Author

Ho ok, I did not look in templates!
Why not use a global variable here too?

@giuscris
Copy link
Member

giuscris commented Mar 17, 2019

Actually you can already do that using '{{language.string.name}}' syntax. Template schemes should be definitely updated, at least with strings for some common labels. I'll open an enhancement issue referencing your suggestion.

@getformwork getformwork locked as resolved and limited conversation to collaborators Mar 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants