question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

select_multiple works, select2_multiple don't

See original GitHub issue

When I try to use a select2_multiple field instead of a select_multiple field, I get this error:

ErrorException in b58d2ac85e3cfb89e50920aa215a69bd96d9acac.php line 25: Array to string conversion (View: D:\Progetti\instalmec.it\Instalmec\vendor\backpack\crud\src\resources\views\fields\select2_multiple.blade.php) (View: D:\Progetti\instalmec.it\Instalmec\vendor\backpack\crud\src\resources\views\fields\select2_multiple.blade.php) (View: D:\Progetti\instalmec.it\Instalmec\vendor\backpack\crud\src\resources\views\fields\select2_multiple.blade.php)

I changed nothing else the field type, from select_multiple to select2_multiple

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
f-livacommented, Jun 14, 2016

Magic happens switching to PHP 7! 😂

0reactions
tabacitucommented, Jun 14, 2016

EUREKA! Who knew it was a mistake that small? 😃 You were testing on PHP 7, I was not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Select2 multiple: true not working - Stack Overflow
From the docs: "When Select2 is attached to a select element {multiple:true} will be ignored and select's multiple attribute will be used instead."....
Read more >
Select2 doesn't work with multiple <select> with same id #5501
Select2 doesn't convert multiple elements that share same id attribute (I know that id attribute must be unique). This used to work just ......
Read more >
Basic usage | Select2 - The jQuery replacement for select boxes
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and pagination (infinite scrolling) of results.
Read more >
Select2 3.5.3
If this example stops working, you have most likely reached the usage limit for the GitHub ... Initial value that is selected if...
Read more >
Select2 Multiple Select - Unable to change font-size of options
select2({ width: 'auto', placeholder: 'Select multiple items', selectionAdapter: SelectionAdapter, dropdownAdapter: DropdownAdapter, allowClear: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found