1 balupton Jul 09, 2006 05:27
3 balupton Jul 15, 2006 17:28
GRRRR just tried clearing my cookies same thing! This is driving me mad!
4 balupton Jul 15, 2006 17:32
Ok the;
Fatal error: Using $this when not in object context in /home/balupton/public_html/blogs/inc/MODEL/users/_usercache.class.php on line 94
Is a problem with the Lightality Skin....
( I renamed the lightality skin to something else, then renamed the custom skin to lightality, and it worked, renamed everything back, stopped working again ) - The Lightality version that is on my website is a february build, so this is a major pain in the ass, i will look into it more, anyone know of any changes to do with the usercache class that could cause this? - But this shouldn't happen anyway.....
But the other problem should get a look at.....
5 balupton Jul 15, 2006 17:48
Found the culprit causing the first error;
//Used in the coments
if(is_logged_in() ) { // We want to display the comments form:
$Current_User = & new User( UserCache::get_by_login( $current_User->ID ) );
}
6 blueyed Jul 16, 2006 20:12
The problem is, that you cannot call UserCache statically!
Use $UserCache->get_by_login() instead.
"First error"? What's the other? Ah.. found it (you'd better started a new thread about it).
However, cannot confirm. skin_exists() in _blog_main.inc.php should take care of that.
Does it also fail with "skin=custom"?
Still getting with the 1.8-beta release.
Heres the outputted html
It only happens when i go to index.php when logged in, if i delete my session cookie i can view my blog again.
The backoffice works fine.
Edit: if i go to index.php?skin=Custom i get the following: