[eluser]Devon Lambert[/eluser]
[quote author="joytopia" date="1290515512"][quote author="Iversia" date="1290210703"]Bernd, I'm getting the exact same error when using Ion Auth and the latest tip version of CI2.
Maybe they've changed the load order? The version from ~October 12 was working fine.[/quote]
Iversia, Devon,
thanks for reporting the same error.
I downloaded the newest CI2 from tip, but unfortunately the error remains (sometimes you have to reload the page up to 7 times to reproduce the error).
Could someone please send me an old Version of CI2 , perhaps from around ~October 12, than I can try, if it works with that version?
Thanks and best regards
Bernd[/quote]
Hey Bernd,
See below:
UPDATE ON THE UNDEFINED/MODEL Error
After beating my head against a wall trying to figure out a fix for the error that Bernd, Inversia, and myself have been experiencing, I made the following change to the Model.php file under the CI Core (I know, this seems a bit hackish, but if I'm correct, I believe this minor fix should be pushed to the core anyways).
CI > System > Core > Model.php
Change this function:
Code:
function __get($key)
{
$CI =& get_instance();
return $CI->$key;
}
To this:
Code:
function __get($key)
{
$CI =& get_instance();
if (isset($CI->$key)) {
return $CI->$key;
}
}
I believe the error is returned because CI is trying to make recursive use of __get with the Ion_auth class. i.e. Controller calls Library, Library calls Model. etc...