Welcome Guest, Not a member yet? Register   Sign In
Random occurance of session-error
#1

[eluser]heavenquake[/eluser]
Hello. First and foremost: I'm inexperienced on these forums, but I've tried my best to search before posting. I didn't find anything of relevance, but please bear with me if there was something I overlooked Smile

The bug, at least that's what I think it is, seems to be in the Session-library of CI.

On random occurances, about 20-30% of my pageloads, but sometimes multiple loads in a row, I get the following two messages.

The first is a Codeigniter-style exception:
Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Master::$db

Filename: libraries/Session.php

Line Number: 746

While the second is a standard PHP fatal error:
Code:
Fatal error: Call to a member function where() on a non-object in /home/heavenquake/documents/programming/webpages/HqCMS/system/libraries/Session.php on line 746

I am running this on localhost, and my environment is as follows:
Code:
Debian GNU/Linux
Apache2
PHP5
CodeIgniter 1.7.0 w. Modular Extensions(although I highly doubt this library to be the cause, as it doesn't fiddle with the Session library at all)

My browser is Iceweasel(Firefox), if that has anything to say.

It happens on any controller and any view - both those that utilize sessions and those that doesn't (however, I have the session library autoloaded).

EDIT: Perhaps I should add that I'm not yet doing any database-work, and that I'm thus not trying to store sessiondata in a database. I don't even load the database library.


Messages In This Thread
Random occurance of session-error - by El Forum - 11-26-2008, 07:23 PM
Random occurance of session-error - by El Forum - 11-27-2008, 08:26 AM
Random occurance of session-error - by El Forum - 11-27-2008, 04:47 PM
Random occurance of session-error - by El Forum - 11-29-2008, 01:15 PM
Random occurance of session-error - by El Forum - 12-01-2008, 12:08 PM
Random occurance of session-error - by El Forum - 12-02-2008, 07:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB