CodeIgniter Forums
Error Message - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Error Message (/showthread.php?tid=10065)



Error Message - El Forum - 07-17-2008

[eluser]Bl4cKWid0w[/eluser]
I don't know why, but for the past couple of days this error message has been showing up at the top of my web pages.

Quote:A PHP Error was encountered

Severity: Warning

Message: Illegal offset type

Filename: database/DB_active_rec.php

Line Number: 423



Error Message - El Forum - 07-17-2008

[eluser]Michael Wales[/eluser]
Is it at the top of all of your pages? I was seeing this error about 2-3 weeks ago and I can't, for the life of me, remember what it was. It was definitely a small error within my code - not the framework.

If you can limit it down to what lines are causing the issue and paste those here we'll be able to help you figure it out.


Error Message - El Forum - 11-26-2009

[eluser]Joshua Baker[/eluser]
Old post, I know, but I just got this error too, so for anyone who gets this error...

I encountered it using the Database Class Active Record methods. I was passing an object instead of an array.

Just prefix the variable with:

Code:
(array) $my_object;

Done!