Error report in the Codeigniter 4.0.1 SYSTEMPATH\Database\BaseBuilder.php line 1026 |
Hi people, I want to report a problem that codeigniter 4.0.1 is having, I am currently working with a small consultation so that making it an exit situation to work. As you can see, I have some values that are sent through the query constructor.
You can consult in documentation the following valid line to work with: [b]$builder->whereIn()[/b] Code: $names = ['Frank', 'Todd', 'James']; Code: $listeeed = [1,129,122,123,124,125,126,127,128,130,120]; Now we put something to the real world on a general level: Code: // print_r($loadDataList);// result [0] => 1 [1] => 129 [2] => 122 [3] => 123 [4] => 124 [5] => 125 [6] => 126 [7] => 127 [8] => 128 [9] => 130 [10] => 120 En lo siguiente como veran el framework presenta problema de la siguiente indole: InvalidArgumentException whereIn() expects $values to be of type array or closure Code: line 1026 throw new \InvalidArgumentException(sprintf('%s() expects $values to be of type array or closure', debug_backtrace(0, 2)[1]['function'])); Update solve I a thousand apologies people, something as cuckold as a null response because as the call was made from a function this was not sent, it is possible to clarify the bizarre situation: Code: function getA($josns = "") Is very stupid a solution here: Code: print_r(getA($listeeed));
First off you should upgrade to the CodeIgniter 4.0.4
Also you can always get the bug fixed versions from GitHub develop. CodeIgniter 4 Development What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |