CodeIgniter Forums
Error After Migration - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Error After Migration (/thread-64579.html)



Error After Migration - kanhaic - 03-07-2016

Hi,

I just migrated from 2.2.6 to 3.0.4 and followed all the items listed in the migration document. But After migration I am getting this error if I enable logging.

Code:
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: core/Log.php
Line Number: 207

A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: core/Log.php
Line Number: 207

I cannot figure out what exactly is wrong and how do I go about debugging it.


RE: Error After Migration - sv3tli0 - 03-07-2016

When you migrate your CI 2 to 3 did you delete and replace the old SYSTEM folder or overwrite it ? (the correct action is delete and replace)


RE: Error After Migration - kanhaic - 03-07-2016

I deleted it & then copied the new system folder.


RE: Error After Migration - kanhaic - 03-07-2016

anyone has any idea why is this happening?


RE: Error After Migration - Narf - 03-07-2016

Yes, you're passing arrays either to log_message() or directly to CI_Log::write_log(). Neither is allowed.