Voyager: After adding a new setting with type "file", I'm getting Array to string conversion (SQL: update `settings` set `value` = where `id` = 20) Error

Created on 6 Feb 2017  路  7Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.3
  • Voyager Version: 0.10.13
  • PHP Version: 5.6

After adding a new setting with type "file", I'm getting this error when saving the settings form:

err
btw: the changes are saved.

This error does not happen if I upload a file in that newly added setting when submitting the form.

I just wanna mention that pressing "add new setting" button without entering the name or the key of the setting does not throw any errors and create a new setting with empty key

Voyager::setting('')

bug help wanted

All 7 comments

Seems like the file type does not work?
Testing it out myself to confirm.

I can confirm that this bug happens. But it only happens when a file is not selected, meaning that it will happen in the two following cases:

  • It will happen if there is no item and you do not add one
  • It will also happen if there is a item, but you do not change it

Just fixed this in #690.

Can you test it out using the fix/issue-687 branch?

Thanks @marktopper

I'll test it and post the result.

Thanks

I tested it and it is working @marktopper

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wp-src picture wp-src  路  3Comments

kevinjon27 picture kevinjon27  路  3Comments

ferrywae picture ferrywae  路  4Comments

wislem picture wislem  路  3Comments

abacram picture abacram  路  3Comments