Welcome to Geeklog, Anonymous Tuesday, May 14 2024 @ 10:20 pm EDT

Geeklog Forums

cant login properly


Status: offline

gape

Forum User
Full Member
Registered: 05/30/02
Posts: 138
i have strange issue on one website with geeklog

when i login as admin, or as my other - test - user, i am displayed on Who is online list
but geeklog does not give me any of my options
not even logout link in user functions
user functon still displyas the login and register options
not caring about me just loged in

is like geeklog would not read my cookie
or something
and im not the only one having trouble - so its not my browser

and i noticed nothing unussuall on the site

version is 1.6sr2
shall i try to upgrade?

when checking users in phpmyadmin i noticed

PRIMARY and INDEX keys should not both be set for column `uid`

in error log, nothing special, but, from the install day:
Mon Oct 26 21:30:26 2009 - SitemapXML: Cannot write the sitemap file: /......./httpdocs/sitemap.xml
Mon Oct 26 21:30:26 2009 - Plugin postinstall failed

cant even check if its installed, couse i have no admin
Razz
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Sound like the classic case described in the FAQ: I can't log in.

The note about the sitemap.xml has nothing to do with this. That is because the plugin needs write access to your public_html to be able to create the sitemap.xml there.

bye, Dirk
 Quote

Status: offline

gape

Forum User
Full Member
Registered: 05/30/02
Posts: 138
i checked all that before posting
as far as i can tell its none of the listed problems ...
 Quote

Status: offline

gape

Forum User
Full Member
Registered: 05/30/02
Posts: 138
im totally lost without config file
where do i check the version of geeklog?

i overwritten all the files on site
and now i get errors like

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/path/to/Geeklog/system/lib-custom.php) is not within the allowed path(s): (/var/www/vhosts/website.net/httpdocs:/tmp:/var/www/vhosts/website.net/private) in /var/www/vhosts/website.net/httpdocs/lib-common.php on line 6705

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/website.net/httpdocs/lib-common.php:6705) in /var/www/vhosts/website.net/httpdocs/lib-common.php on line 6718

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/website.net/httpdocs/lib-common.php:6705) in /var/www/vhosts/website.net/httpdocs/lib-common.php on line 6719
Unfortunately, an error has occurred rendering this page. Please try again later.


so first i would like to check if im using files of the proper version

the only file i did not reupload is db-config.php
that should be ok
?
found the error - siteconfig.php must not be overwritten
Razz

in it i read
Text Formatted Code
if (!defined('VERSION')) {
  define('VERSION', '1.6.0');

i think i used sr2
but now im not sure anymore


looks like i should upgrade
Razz
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
So when you delete all the cookies you have for your domain, then try to log in: Do any cookies get set?

You could also try setting $_SESS_VERBOSE = true; in lib-sessions.php and, after trying to log in, see if the anything stands out from the messages logged to error.log

bye, Dirk
 Quote

Status: offline

gape

Forum User
Full Member
Registered: 05/30/02
Posts: 138
Quote by: Dirk

So when you delete all the cookies you have for your domain, then try to log in: Do any cookies get set?

You could also try setting $_SESS_VERBOSE = true; in lib-sessions.php and, after trying to log in, see if the anything stands out from the messages logged to error.log

bye, Dirk


4 cookies get set

i enabled SESS_VERBOSE
Mon Dec 28 17:46:57 2009 - Setting cookiedomain='.website.net'
Mon Dec 28 17:46:57 2009 - ***Inside SESS_sessionCheck***
Mon Dec 28 17:46:57 2009 - session cookie not found from lib-sessions.php
Mon Dec 28 17:46:57 2009 - ***Leaving SESS_sessionCheck***
Mon Dec 28 17:47:08 2009 - Setting cookiedomain='.website.net'
Mon Dec 28 17:47:08 2009 - ***Inside SESS_sessionCheck***
Mon Dec 28 17:47:08 2009 - session cookie not found from lib-sessions.php
Mon Dec 28 17:47:08 2009 - ***Leaving SESS_sessionCheck***
pon 28 dec 2009 17:47:08 CET - *************inside new_session*****************
pon 28 dec 2009 17:47:08 CET - Args to new_session: userid = 2, remote_ip = x.x.x.x, lifespan = 7200, md5_based = 0
pon 28 dec 2009 17:47:08 CET - Assigned the following session id: 582468880
pon 28 dec 2009 17:47:08 CET - *************leaving SESS_newSession*****************
pon 28 dec 2009 17:47:08 CET - Setting session cookie: setcookie(gl_session, 582468880, 0, /, .website.net, 1);
Mon Dec 28 17:47:09 2009 - Setting cookiedomain='.website.net'
Mon Dec 28 17:47:09 2009 - ***Inside SESS_sessionCheck***
Mon Dec 28 17:47:09 2009 - session cookie not found from lib-sessions.php
Mon Dec 28 17:47:09 2009 - ***Leaving SESS_sessionCheck***
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
So it looks like your session cookie is not being set. This could be because of this:
Quote by: gape

Setting session cookie: setcookie(gl_session, 582468880, 0, /, .website.net, 1);


Are you accessing your site through https, i.e. a secure http connection?

If not: Add the following line to your siteconfig.php and try to log in again:
Text Formatted Code
$_CONF['cookiesecure'] = 0;

bye, Dirk
 Quote

Status: offline

gape

Forum User
Full Member
Registered: 05/30/02
Posts: 138
no i dont use https

added the line and it looks that helped

what was this?
any idea how it gor broken?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Configuration > Geeklog > Miscellaneous > Cookies > Cookie Secure

That option should be set to "False", unless you're using https. It probably is set to "True" now - the line you added to siteconfig.php overwrites that, though, so you can log in again.

You must have accidentally changed that option.

Changing it back is a bit tricky:
- log in
- remove the line from siteconfig.php
- change setting from True to False

In that order, or it won't stick.

bye, Dirk
 Quote

Status: offline

gape

Forum User
Full Member
Registered: 05/30/02
Posts: 138
tyvm 4 the help

that will teach me not to give admin to users
 Quote

All times are EDT. The time is now 10:20 pm.

  • 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