After upgrade to 0.6 denied access

2 views
Skip to first unread message

Matthijs

unread,
Apr 29, 2009, 12:59:16 PM4/29/09
to habari-users
After upgrading to 0.6 I am denied access. I did the following
- login
- disable plugins
- delete files and upgrade new ones as specified
- perform upgrade
- everything seemed to be ok. I was still logged in and could do
everything in the admin panel

After logging out, I can't login back in and below every post is the
message:
"You are logged in as Anonymous.

Want to log out?"


I did the whole backup process twice now, after going back to the
previous version, to make sure there was no other reason it might have
gone wrong. I also made sure to delete cookies. Even tried in a
different browser to makes sure it was no weird cache issue

Does anybody have an idea?

Matthijs

unread,
Apr 29, 2009, 2:33:26 PM4/29/09
to habari-users
Update: I discovered the problem was something in my theme. Apparently
something changed in how Habari handles the login process, as after
deleting the template login.php, I suddenly could login again.

When I made the theme, I copied the default theme shipped with Habari
(version 0.4 I think).

What is the current, default theme to look at when I want to know the
default template tags?

Arthus Erea

unread,
Apr 29, 2009, 4:50:15 PM4/29/09
to habari...@googlegroups.com
I'm guessing this is a theme issue. We changed the way the current
user is fetched.

Try switching your theme to one of the default themes, which are
updated for the change. To do this, rename your custom theme directory
to something else

If that fixes the issue, you'll want to replace any code in your
custom theme which says "User::identify()" with User::identify()-
>loggedin"

mikelietz

unread,
Apr 29, 2009, 10:49:55 PM4/29/09
to habari-users
The old version could also be more like: if ( $user ) ... if it's from
0.4. See https://trac.habariproject.org/habari/browser/tags/0.4.1/htdocs/system/themes/k2/loginform.php#L9.

This too would be fixed the way arthus describes.

Matthijs

unread,
Apr 30, 2009, 3:48:42 AM4/30/09
to habari-users
Thanks for the replies. For now, I just removed the template file
login.php from my theme and it works again. I'll have to go through
all other template files and compare the code in those to the code in
other themes to make sure everything is updated to new/changed
functions.


Reply all
Reply to author
Forward
0 new messages