Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
post after logout
our install of vanilla has some php session problems, so i get logged out like clockwork every 30 minutes. something that i've had happen to me a couple times so far (mostly because we haven't spent the time to fix the session nonsense):
i'll start a post, and then take a phone call, and then come back to the post and finish it up, but by this time 30 minutes have elapsed and i'm logged out... but won't know it until the refresh! consequently, i'll hit the post button, and then i get a php error. i don't know the text of the error (i can get it, it it would be helpful), but it's basically just a "not logged in" message. from this screen, if you click back, you do not get the text of your post back - you come to a logged-out version of the thread you were attempting to post to.
what i would like to propose is some sort of catch for this error that doesn't lose the text of the post. i'm not asking for it to log you back in, but perhaps offer the login box. unstyled php errors are unsexy, and losing the text of a post i've been working on for 45 minutes is uberfrustrating.
0
This discussion has been closed.
Comments
2. thirty5.net
3. no idea, but like i said, we haven't devoted time to fixing this, and i certainly don't expect you to. we'll get to it eventually, but this is not my concern at all.
the exact error comes from post.php:
Fatal error: Call to a member function on a non-object in /home/thirty5/www/post.php on line 38
again, i'm not concerned about the clockwork logouts - i'm sure it'll eventually boil down to some arcane php.ini setting or some old sessions still intact from our old forums.
what i'm suggesting is a catch for this specific error that (i'd assume) would happen anytime you attempt to post something only to discover that your session had timed out between the time you got the post box to type in and when you clicked the button.
say a user that is not logged in at all somehow gets a post box. i'm not sure if this is even possible, but if he attempts that, i think he should be greeted not with a php text error but a proper catch from vanilla prompting him for a username and password to proceed.
Major: Level 4: Bugs that are simply a major annoyance mostly for users. Date Author Description 2005-07-28 Lech Thread: Lussumo main forum and 0.9.2.2: If you’re running an open forum, Log out & attempt to access post.php the desired redirect is lost and a possible error occurs
http://lussumo.com/docs/doku.php?id=vanilla:bugs
That bug will be fixed in the next rev, but the real problem you are having is with your cookies - You shouldn't be able to duplicate that bug without actually signing out as the bug report describes, but because your cookies aren't working properly, it is happening without the sign out. So, fix your cookies and you probably won't see that error anymore.