I am using Fuel 1.6 and Simpleauth. I couldn't use any call method yet. It is under Model_User, when I try the open homepage I encountered with the error. Model_User code is at the top. Thanks in advance.
Is that your own model, or the model included in the Auth package (which is for Ormauth only)?
The problem I think you have is that the Observer_Typing will not create an empty array for profile_fields that are NULL. An empty profile_fields column should contain "a:0:{}", which represents an empty array.
How did you create the records that have a NULL value?
Thanks Harro. Most likely the error depends on how to create user. I created a user record by using Auth::create_user() on Oil. I tried to create simple serialize data and paste it profile_fields, Now, I am able to take the data as array successfully.
I think Auth:create_user has mis configuration as it is creating user on Oil. Thanks again.
create_user() indeed doesn't add it, Simpleauth has logic internally to deal with that. It was never made to be interacted with using a model.
This should change, but that doesn't help you now (and all others already having an existing user table).
I think the best option is to use Observer_Self, en create an after_load method that will convert the NULL value to array(). This should run after the Typing observer, as it will fail if it detects the array.
I added a few record by using create_user() and I am now getting successfully results. As you already said that something weird is going on. :) Thanks for your help.