Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]pelkin000[/eluser]
[quote author="joytopia" date="1270367536"]Happy Easter, Ben,

this morning - the session cookies expired over night – I got on two of three browsers these error messages:

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Ion_auth_model::$ion_auth

Filename: models/ion_auth_model.php

Line Number: 844

Code:
A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/ion_auth_model.php

Line Number: 844

Code:
Ein Datenbankfehler ist aufgetreten

Error Number: 1064

Fehler in der SQL-Syntax. Bitte die korrekte Syntax im Handbuch nachschlagen bei 'id` = '8'' in Zeile 1

UPDATE `users` SET `last_login` = 1270340970 WHERE ` IS NULL AND `id` = '8'

I cannot figure out, why it's only in two of three browsers. This is a bit confusing.
In the two browsers (FireFox and Safari)I have all the three cookies. In the other one (Opera) I have only the session cookie.

Best regards
Bernd[/quote]

I am still having this problem. I am running PHP 5.2, CI 2.0, Ion Auth, Firephp and Uh Oh!

Code:
ErrorException [ Notice ]: Undefined property: Practice::$ion_auth

SYSDIR/core/Model.php [ 50 ]

45      * @access private
46      */
47     function __get($key)
48     {
49         $CI =& get_instance();
50         return $CI->$key;
51     }
52 }
53 // END Model Class
54
55 /* End of file Model.php */

This problem seems to creep in primarily when using IE7 (no issues with FF3, 4 or Chrome), though that doesn't make much sense to me.

Practice Controller:
Code:
class Practice extends CI_Controller {
    
    var $user;
    var $game;
    
    function __construct() {
        parent::__construct();
        
        // ION Auth
        $this->load->library('Ion_auth');
        $this->load->library('form_validation');
        $this->load->library('session');
        
        // Defaults
        $this->load->helper('url');
        $this->load->library('firephp');
        
        // Models
        //$this->load->model('Ion_auth_model');
        //$this->load->model('Player');
        $this->load->model('Practice_Game');

Anyone have any ideas? Ive made adjustments to some of the places in Ion_auth to do an isset check on ->_extra_where. Here is the line just before the final error:
Code:
APPPATH/models/ion_auth_model.php [ 966 ] » CI_Model->__get(arguments)

key ion_auth


961         {
962             return FALSE;
963         }
964
965         //get the user
966         if (isset($this->ion_auth->_extra_where))
967         {
968         $this->db->where($this->ion_auth->_extra_where);
969         }
970
971         $query = $this->db->select($this->identity_column.', id, group_id')


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 04-22-2011, 12:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB