Call to a member function sess_save() on a non-object |
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. |
Messages In This Thread |
Call to a member function sess_save() on a non-object - by nnolting - 01-06-2015, 04:23 PM
RE: Call to a member function sess_save() on a non-object - by kilishan - 01-06-2015, 07:47 PM
RE: Call to a member function sess_save() on a non-object - by nnolting - 01-07-2015, 10:28 AM
RE: Call to a member function sess_save() on a non-object - by Avenirer - 01-08-2015, 04:05 AM
RE: Call to a member function sess_save() on a non-object - by Narf - 01-08-2015, 06:13 AM
RE: Call to a member function sess_save() on a non-object - by nnolting - 01-08-2015, 08:23 AM
|