Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 10:07 am EDT

Geeklog Forums

Randomly (?) logged out without request, without notice, without reason


Status: offline

PWR

Forum User
Junior
Registered: 04/02/06
Posts: 21
No replies to my post here yet, maybe because I posted to an existing thread, but this is becoming more problematic.

I'm now getting this problem. I doubt if it's related to CAPTCHA, but it started at about the time I installed CAPTCHA a few days ago. As root, I will be logged in doing things, all is going well, and then I'll get the error message along the lines of "you must be logged in to do that". Looking around, I discover the login box is visible in the sidebar. After logging back in, all goes well for a while, then the cycle repeats. This has happened several times over the past few days, never happened before.

Frustrated, but determined.

TIA

 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
pwr,

I doubt the logout problems have to do with the CAPTCHA installation, as it really only touches anything when new user registers, but you never know...

Has there been any changes on your client (workstation) side recently? I'm wondering if the cookie is being deleted in the browser or something? Any new utilities installed on your computer?

Also, any changes to Geeklog's config.php file recently? There are some variables that deal with the cookie's any chance any of them were changed?

Last, double check your account (Account Information) and see what you have selected for 'Remember Me'.

Thanks!
Mark
 Quote

Status: offline

PWR

Forum User
Junior
Registered: 04/02/06
Posts: 21
Thanks for the ideas, but it's not just me having the problem. It's all my admins, and users too, so it's not client side. I didn't realize it was affecting all users when I wrote earlier.

I made the required changes to config files to install CAPTCHA, and recently added a new user group, but no other changes.

I hate to back CAPTCHA back out for a test, but it may come to that if this doesn't otherwise get solved.

And I agree it doesn't seem likely CAPTCHA would be the cause, it's just time related.
 Quote

Status: offline

mevans

Forum User
Full Member
Registered: 02/08/04
Posts: 393
Location:Texas
I took a quick look at your site and saw only one thing that I don't know much about. You call a javascript called:

Text Formatted Code

<!-- for Pop-Up Politician -->
<script type="text/javascript" src='http://www.sunlightlabs.com/popuppoliticians/sunlightpopups.js'></script>
<!-- end Pop-Up Politician -->

 


I'm wondering if this could be the culprit? I'm not sure what its purpose is, so I don't know what exactly it is doing. Maybe comment it out for a test just to rule it out?

Or, I may be completely out in left field and this has nothing to do with the issue, how is that for helpful Smile

Thanks!
Mark
 Quote

Status: offline

PWR

Forum User
Junior
Registered: 04/02/06
Posts: 21
I eventually discovered that all users and admins' "Account Information / Remember Me For" had been mysteriously reset to "don't", so it seems all users were being logged out after expiration of session cookie, which is defined in config.php I believe.

And then, a minute ago, I found this
http://www.macosxhints.com/article.php?story=20061003084806436
which says there's a missing "where" clause on a database call in Geeklog that occurs when using a custom registration screen, such as CAPTCHA.

My problem, now, is that the author didn't say how/where to fix the clause. Anybody know?

 Quote

Status: offline

asmaloney

Forum User
Full Member
Registered: 02/08/04
Posts: 214

It's in [geeklog_dir]/system/lib-custom.php in custom_usersave().

It should be:
Text Formatted Code
    DB_query("UPDATE {$_TABLES['users']} SET cookietimeout='{$_POST["cooktime"]}' WHERE uid='$uid'");

 

- Andy
 Quote

PWR

Anonymous
Thanks!

Whew, I've been bothered by this for too long.

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yeah, that's an unfortunate bug in the sample code in lib-custom.php. It has been fixed in 1.4.1b1 but didn't make it back into the 1.4.0 branch. Sorry about that.

bye, Dirk
 Quote

All times are EDT. The time is now 10:07 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content