OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Logging in creates loop to login page

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Re: Logging in creates loop to login page

Postby almos.dinnyes » Wed May 19, 2010 4:56 am

I have the same problem. It's not browser specific, and I have the same issue with two different version: 2.2.4 and 2.3.1

Doea anyone have an idea?

Thanks in advance!
Almos
almos.dinnyes
 
Posts: 1
Joined: Wed May 19, 2010 4:52 am

Re: Logging in creates loop to login page

Postby traue » Tue Sep 14, 2010 5:01 am

Hi guys, hi James,

I apologize for the delay in my response (more than 6 months), coincidentally the system returned to normal during this period. But the loop happen again.

I already picked out, as suggested by James, the line of config.inc.php, who rewrote the urls (actually I also do not know why it was there).

The loop occurs for several users at login. The loop to occur after a while (probably when the session of this user expires in the system).

Is there further suggestions? Already upgraded to 2.3.1.2 and the problem persists (although I made the upgrade using patches).


Best wishes,


Thiago
traue
 
Posts: 25
Joined: Mon Mar 16, 2009 10:26 am

Re: Logging in creates loop to login page

Postby jmacgreg » Thu Sep 16, 2010 10:21 am

Hi Thiago,

What have you done exactly with your config.inc.php? Have you disabled the session_ip_check variable?

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Logging in creates loop to login page

Postby traue » Thu Sep 16, 2010 1:17 pm

Hi James,


Thanks for the reply.

Yes, i have changed to off this setting.

There is our actual config.inc.php (with some hidden fields):

Code: Select all

[general]

installed = On
base_url = "http://www.lajss.org/"
registry_dir = registry
session_cookie_name = OJSSID
session_lifetime = 30
scheduled_tasks = Off
date_format_trunc = "%d/%m"
date_format_short = "%d/%m/%Y"
date_format_long = "%B %e, %Y"
datetime_format_short = "%d-%m-%Y %I:%M %p"
datetime_format_long = "%B %e, %Y - %I:%M %p"
time_format = "%I:%M %p"
disable_path_info = Off
allow_url_fopen = Off
restful_urls = Off
xslt_command =

;;;;;;;;;;;;;;;;;;;;;
; Database Settings ;
;;;;;;;;;;;;;;;;;;;;;

[database]

driver = mysql
host = <hided>
username = <hided>
password = <hided>
name = <hided>
persistent = On
debug = Off

;;;;;;;;;;;;;;;;;;
; Cache Settings ;
;;;;;;;;;;;;;;;;;;

[cache]

cache = file
memcache_hostname = localhost
memcache_port = 11211
web_cache = Off
web_cache_hours = 1


;;;;;;;;;;;;;;;;;;;;;;;;;
; Localization Settings ;
;;;;;;;;;;;;;;;;;;;;;;;;;

[i18n]

locale = en_US
client_charset = utf-8
connection_charset = Off
database_charset = Off
charset_normalization = On

;;;;;;;;;;;;;;;;;
; File Settings ;
;;;;;;;;;;;;;;;;;

[files]

files_dir = <hided>
public_files_dir = public
umask = 18


;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Fileinfo (MIME) Settings ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[finfo]
mime_database_path = "/etc/magic.mime"


;;;;;;;;;;;;;;;;;;;;;
; Security Settings ;
;;;;;;;;;;;;;;;;;;;;;

[security]

force_ssl = Off

force_login_ssl = Off
session_check_ip = Off
encryption = md5
allowed_html = "<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <i> <u> <img> <sup> <sub> <br> <p>"


;;;;;;;;;;;;;;;;;;
; Email Settings ;
;;;;;;;;;;;;;;;;;;

[email]

smtp = On
smtp_server = <HIDED>
smtp_port = 465
smtp_auth = <HIDED>
smtp_username = <HIDED>
smtp_password = <HIDED>
allow_envelope_sender = On
default_envelope_sender = <HIDED>
enable_attachments = On
time_between_emails = 3600
max_recipients = 10
require_validation = Off
validation_timeout = 14


;;;;;;;;;;;;;;;;;;;
; Search Settings ;
;;;;;;;;;;;;;;;;;;;

[search]
min_word_length = 3
results_per_keyword = 500
result_cache_hours = 1


;;;;;;;;;;;;;;;;
; OAI Settings ;
;;;;;;;;;;;;;;;;

[oai]

oai = On
repository_id = "ojs.pkp.sfu.ca"
oai_max_records = 100

;;;;;;;;;;;;;;;;;;;;;;
; Interface Settings ;
;;;;;;;;;;;;;;;;;;;;;;

[interface]

items_per_page = 25
page_links = 10


;;;;;;;;;;;;;;;;;;;;
; Captcha Settings ;
;;;;;;;;;;;;;;;;;;;;

[captcha]

captcha = On
captcha_on_register = On
captcha_on_comments = On
font_location = "/usr/share/fonts/truetype/freefont/FreeSerif.ttf"

;;;;;;;;;;;;;;;;;;;;;
; External Commands ;
;;;;;;;;;;;;;;;;;;;;;

[cli]

perl = /usr/bin/perl
tar = /bin/tar


;;;;;;;;;;;;;;;;;;
; Proxy Settings ;
;;;;;;;;;;;;;;;;;;

[proxy]
;none

;;;;;;;;;;;;;;;;;;
; Debug Settings ;
;;;;;;;;;;;;;;;;;;

[debug]

show_stats = Off
show_stacktrace = Off
display_errors = Off
deprecation_warnings = Off




Sorry for my long post.


Best wishes,


Thiago.
traue
 
Posts: 25
Joined: Mon Mar 16, 2009 10:26 am

Re: Logging in creates loop to login page

Postby Roelf » Tue Oct 05, 2010 6:20 am

Hi,

I have this login loop too. Please check the screenshot in the attachment, which also shows the Windows Explorer error message, which is displayed when one doubleclicks on the error icon down left. The error message is in Dutch, and means 'document.login.username' is empty or no object.

I hope this helps.

Roelf
ojsloginerror.JPG
ojsloginerror.JPG (139.75 KiB) Viewed 1617 times
Roelf
 
Posts: 5
Joined: Mon Dec 01, 2008 4:02 am

Re: Logging in creates loop to login page

Postby jmacgreg » Thu Oct 07, 2010 1:03 pm

Hi all,

Thiago, apologies for the delay in my response. Could you tell me if there's any consistency as to which users are having problems -- specifically whether it happens to only those using a certain browser such as IE?

Roelf, could you tell me whether you have turned session_check_ip to off as per my previous suggestion, above? And also, could you tell me if this is a browser-specific problem?

If this is a browser-specific problem, you both may want to check the problem users' browser security settings. If they are set high (particularly in IE), they will likely have login problems.

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Logging in creates loop to login page

Postby traue » Tue Oct 12, 2010 8:12 am

Hi James,


Thanks. I believe that there is no relationship with users or types of event. The problem occurs randomly with all users (when it happens). And also stop randomly (I believe that with the end of some session).

And I noticed that the most common problem occurs when I click on "login as" for some user to correct a problem anywhere or when a lot of users are loged into the system.


Sincerely,


Thiago
traue
 
Posts: 25
Joined: Mon Mar 16, 2009 10:26 am

Re: Logging in creates loop to login page

Postby ramon » Mon Nov 08, 2010 8:51 am

Hello all,

We are experiencing this problem as well.
I have no other record of this issue.
This is happening with just one user, who is registered as a reviewer.

I noticed that the URL login?source=%2Findex.php%2findex%2Fuser is actually trying to access the Site Administration, instead of the journal administration.
I know this for a fact because when I try to log in with the administrator, it displays the site administration log in page, instead of the specific journal hosted.
However, there is no error message.

I had session_check_ip = On, and changed to Off, but no change in this behavior.

We are behind a pretty annoying proxy, with a reverse proxy in another server, but we are not using mod_rewrite to my knowledge in this server.
Mod_rewrite is being used (started a while ago for one hosted site) on the reverse_proxy server.
I'm not sure if this is an issue.
ramon
 
Posts: 931
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: Logging in creates loop to login page

Postby asmecher » Mon Nov 15, 2010 1:46 pm

Hi Ramón,

I suspect that's a rewriting / proxying problem -- the .../index.php/index/user URL should work for non-administrator users too. It should display all roles for all journals.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8844
Joined: Wed Aug 10, 2005 12:56 pm

Re: Logging in creates loop to login page

Postby bnichifor » Mon Jun 10, 2013 7:45 am

hello!
sadly this problem happens to my installation.
i just install 2.4.2 version and i cant`t work at my journal because of this intermittent issue.
any real solution for it?
thank you!
bnichifor
 
Posts: 7
Joined: Mon Jun 10, 2013 5:18 am

Re: Logging in creates loop to login page

Postby asmecher » Mon Jun 10, 2013 8:46 am

Hi bnichifor,

Have you tried any of the suggestions in the above thread?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8844
Joined: Wed Aug 10, 2005 12:56 pm

Re: Logging in creates loop to login page

Postby bnichifor » Thu Jun 13, 2013 7:00 am

hello alec!
i tried the above suggestions.
other weird behavior is related to language module. it does not work properly, just as intermittent as login.
the address of my site is [url]sceco.ub.ro[/url] and my system is freeBSD.
on another server, [url]ojs.favior-shop.ro[/url], this time Unix, the OJS works very well.
i think all these problems are server configuration related.
so, what can we do?
bnichifor
 
Posts: 7
Joined: Mon Jun 10, 2013 5:18 am

Re: Logging in creates loop to login page

Postby asmecher » Thu Jun 13, 2013 8:28 am

Hi bnichifor,

Both problems are related to cookies, so that's a logical place to start. Have you disabled session_check_ip?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8844
Joined: Wed Aug 10, 2005 12:56 pm

Re: Logging in creates loop to login page

Postby bnichifor » Sat Jun 15, 2013 5:00 am

hello alec!
i followed a suggestion by a user and i inserted this line of code register_shutdown_function("session_write_close"); in my first line of index.php.
all the troubles got away, for now and forever, i hope.
thanks!
bnichifor
 
Posts: 7
Joined: Mon Jun 10, 2013 5:18 am

Re: Logging in creates loop to login page

Postby firomero » Wed Oct 02, 2013 2:27 pm

I have tried all the options above, but still doesn't work. I've upgrade from 2.3.6 to 2.4.2 . Another ideas.
thanks! :(
firomero
 
Posts: 3
Joined: Wed Oct 02, 2013 2:20 pm

PreviousNext

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 5 guests