Welcome Guest, Not a member yet? Register   Sign In
batch_update returning error notices but the update works
#1

[eluser]bobbob[/eluser]
I am getting this notice for each row of my update using Active Record batch_update:
Code:
<p>Severity: Notice</p>
<p>Message:  Array to string conversion</p>
<p>Filename: database/DB_active_rec.php</p>
<p>Line Number: 1407</p>

The update works fine. Just the error messages get in the way in DEV.

set_update_batch() is the method at 1407.

I am setting error_reporting(0) just before running this batch update request so I can complete my ajax request in DEV. No big deal but it does look like a bug. I am passing in an array not an object to this method if that helps.



#2

[eluser]Aken[/eluser]
Your array with your data is likely formatted incorrectly. Use print_r or var_dump and see if it is in the format that update_batch expects.




Theme © iAndrew 2016 - Forum software by © MyBB