I encountered this error when I was working on a project and after searching and searching, I decided to check the database and realized that all I had exported from the database was the structure and not the structure and the data. That was what caused the error for me.
As a programmer, there are no real problems but challenges...ones that we need to overcome. This means that there is a solution for all challenges that one may face. For all the challenges that I have faced, I will share them and their solutions.
Showing posts with label error. Show all posts
Showing posts with label error. Show all posts
Friday, August 21, 2015
Wednesday, February 4, 2015
PHP Array to String conversion Codeigniter
I was having this problem where I was doing an update batch to my db and I was getting the error of array to string conversion. The funny thing was that the db was being updated. After doing some research, I found out that there was a problem with the DB_active_rec.php file in Codeigniter, on line 1407.
Change $not[] = $k.'-'.$v; to $not[] = $k2.'-'.$v2 and the problem is solved.
Change $not[] = $k.'-'.$v; to $not[] = $k2.'-'.$v2 and the problem is solved.
Labels:
array,
codeigniter,
conversion,
error,
php,
string
Subscribe to:
Posts (Atom)
