Welcome Guest, Not a member yet? Register   Sign In
Call to a member function sess_save() on a non-object
#2

I think the problem is due to trying to use sessions from a direct CLI call. If you take a look at the Session class, it kicks you out if being called from the CLI, which means many of the functions might not be available.

IIRC I ran into this while getting some tests running in Codeception, also, and had to ensure that I wasn't autoloading the Session library. In other areas of testing, I had to extend their test class and do some other work on the setup files to grab an instance of CI and make it available so I could mock it, or parts of it. If you want to see what I did there check out this tests folder and you can see the customizations that I'm currently running with.

Hope that helps.
Reply


Messages In This Thread
RE: Call to a member function sess_save() on a non-object - by kilishan - 01-06-2015, 07:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB