The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 120 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Sat May 29, 2010 12:01 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sun Apr 06, 2008 4:44 am
Posts: 3289
Location: Seattle, WA, USA
Hi Neeps. Ok, it definitely seems to be an issue related to IIS vs. Apache. Does that appear to be the case for others as well? Thanks. Mark

_________________
Mark Dexter
"Well...how did I get here?"


Top
 Profile  
 
PostPosted: Sat May 29, 2010 8:32 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 06, 2008 6:17 pm
Posts: 18
HI,

I did other tests, I thought it would be a problem for the version of php on my server (5.1.6) but I tryed it on another server whit same php version and it worked.
I have also tested the latest version of joomla 1.5.18 and the problem persists.
In my opinion the problem is the configuration of php on the server.
I have no idea which are the ideal settings for a correct working of the joomla login procedure....


Top
 Profile  
 
PostPosted: Sun May 30, 2010 5:43 am 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4779
Location: Toronto, Canada
Neeps wrote:
I'm getting this as well.

If I comment out line 533 it fixes the problem.

Can anyone tell me the consequences of commenting this line out?

Cheers
Neeps

You disable the security enhancement that was added in Joomla! 1.5.16.

Ian


Top
 Profile  
 
PostPosted: Sun May 30, 2010 8:08 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun May 23, 2010 7:59 am
Posts: 6
Location: Rome, Italy
I had time to further investigate the problem under IIS5 (see my previous post for system information: I have also applied the 1.5.17 -> 1.5.18 patch).

RE-EDITING: I have posted a html report file as attachment, to give a possibly better report.

When i go to the administrator login page, the system normally creates a session and stores a cookie in my browser (see the first table in attached file)


If now I try to login as superadmin, I see that another session db line is written (see the second table in attachment)

BUT the browser cookie at this time is still named d88d29c9d6cfdcd729bd0f0082c90058 and still contains the previous session_id value a9vpb0a2kl0npo1o3ai91vs2j7.

Looking at the two situations, we can notice:
1) the time value is slightly different: the sistem puts a new value in the old original row, and puts the old value in the newly created row
2) the cookie session_id remains the same, but the db one has changed
3) there are two sessions db rows, instead of only one, for the same user

If now I try to login again, the system writes one more line for each login try (see the third table), and the cookie remains still the same.

It seems that the system is not able to send a new cookie to the browser, or something similar.
In that way, the system correctly creates a new session line, but is unable to assign it to the currently logged user. And trying to login again and again, it creates one new line for each new login try, leaving intact the cookie data.

I hope that this data could help someone to find the trick :-)
Waiting for a solution, now....
Regards


You do not have the required permissions to view the files attached to this post.


Last edited by SteP-it on Sun May 30, 2010 10:47 am, edited 3 times in total.

Top
 Profile  
 
PostPosted: Sun May 30, 2010 9:29 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 06, 2008 6:17 pm
Posts: 18
My question is: what are the php features used by the function fork(); ???
so we can control in the php.ini if are enabled or not....


Top
 Profile  
 
PostPosted: Sun May 30, 2010 9:54 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Nov 21, 2007 1:20 pm
Posts: 2
Location: india
Login Not working with fresh install of joomla1.5.18.

i am working on my local system Apache/2.0.59 (Win32) PHP/5.2.0 on windows xp sp2

commenting line in appilication.php did a trick.


Top
 Profile  
 
PostPosted: Sat Jun 05, 2010 2:00 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Apr 10, 2010 10:47 am
Posts: 21

JTS-post Diagnostic Information wrote:
Joomla! Version: Joomla! 1.5.18 Stable [ wojmamni ama wojnaiki ] 27-May-2010 18:00 GMT
configuration.php: Writable (Mode: 644 ) | Architecture/Platform: Linux 2.4.21-63.ELsmp ( i686) | Web Server: Apache ( www.mysite.com ) | PHP Version: 5.2.5
PHP Requirements: register_globals: Disabled | magic_quotes_gpc: Enabled | safe_mode: Disabled | MySQL Support: Yes | XML Support: Yes | zlib Support: Yes
mbstring Support (1.5 or above): Yes | iconv Support (1.5 or above): Yes | save.session_path: Writable | Max. Execution Time: 240 seconds ( now, but user had to increase from 30 ) | File Uploads: Enabled
MySQL Version: 5.0.91-log ( mylogin.db.3215814.hostedresource.com via TCP/IP )

JTS-post Extended Information wrote:
SEF: Enabled (with ReWrite) | Legacy Mode: Disabled | FTP Layer: Disabled | htaccess: Not Implemented
PHP/suExec: User and Web Server accounts are the same. (PHP/suExec probably installed)
PHP Environment: API: cgi-fcgi | MySQLi: Yes | Max. Memory: 96M ( now, but user had to increase from 64M ) | Max. Upload Size: 8M | Max. Post Size: 8M | Max. Input Time: 60 | Zend Version: 2.2.0
Disabled Functions:
MySQL Client: 5.0.18 ( latin1 )


Top
 Profile  
 
PostPosted: Sat Jun 05, 2010 3:03 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun May 23, 2010 7:59 am
Posts: 6
Location: Rome, Italy
..no one answering to this question?
It's a serious bug, and it should be fixed in any case!
I'm sure that programmers are hard working to 1.6 version, but many of us will upgrade to 1.6 only when all other extensions will be stable for that release. So 1.5.x will stay along on our servers, and it should be fixed soon...
I understand that we are speaking about Open Source sw, and that programmers are volunters, but many of us are available to give help if needed...
Please, look for a fix asap :-)


Top
 Profile  
 
PostPosted: Sat Jun 05, 2010 3:16 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4779
Location: Toronto, Canada
SteP-it wrote:
..no one answering to this question?
It's a serious bug, and it should be fixed in any case!
I'm sure that programmers are hard working to 1.6 version, but many of us will upgrade to 1.6 only when all other extensions will be stable for that release. So 1.5.x will stay along on our servers, and it should be fixed soon...
I understand that we are speaking about Open Source sw, and that programmers are volunters, but many of us are available to give help if needed...
Please, look for a fix asap :-)

People should try upgrading to J! 1.5.18, doing a fresh install and see if the problem remains.

Ian


Top
 Profile  
 
PostPosted: Sat Jun 05, 2010 3:18 pm 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Sat Aug 16, 2008 1:46 pm
Posts: 5171
Location: the Bat Cave
SteP-it wrote:
I had time to further investigate the problem under IIS5 (see my previous post for system information: I have also applied the 1.5.17 -> 1.5.18 patch).

RE-EDITING: I have posted a html report file as attachment, to give a possibly better report.

When i go to the administrator login page, the system normally creates a session and stores a cookie in my browser (see the first table in attached file)


If now I try to login as superadmin, I see that another session db line is written (see the second table in attachment)

BUT the browser cookie at this time is still named d88d29c9d6cfdcd729bd0f0082c90058 and still contains the previous session_id value a9vpb0a2kl0npo1o3ai91vs2j7.

Looking at the two situations, we can notice:
1) the time value is slightly different: the sistem puts a new value in the old original row, and puts the old value in the newly created row
2) the cookie session_id remains the same, but the db one has changed
3) there are two sessions db rows, instead of only one, for the same user

If now I try to login again, the system writes one more line for each login try (see the third table), and the cookie remains still the same.

It seems that the system is not able to send a new cookie to the browser, or something similar.
In that way, the system correctly creates a new session line, but is unable to assign it to the currently logged user. And trying to login again and again, it creates one new line for each new login try, leaving intact the cookie data.

I hope that this data could help someone to find the trick :-)
Waiting for a solution, now....
Regards

Have you tried posting this to the Bug Reporting forum?


Top
 Profile  
 
PostPosted: Sat Jun 05, 2010 3:20 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 06, 2008 6:17 pm
Posts: 18
same problem in 1.5.18, fresh intallation.
The fork(); function fails :(
I insist, is a configuration problem of php on the server.....


Top
 Profile  
 
PostPosted: Sat Jun 05, 2010 3:53 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun May 23, 2010 7:59 am
Posts: 6
Location: Rome, Italy
Quote:
People should try upgrading to J! 1.5.18, doing a fresh install and see if the problem remains.

Ian


Right now I have tested a fresh 1.5.18 installation, and the problem is still there.

Here my Post Asisstant results

JTS-post Problem Description wrote:
Frontend/backend login error
JTS-post Log/Error Message wrote:
none
JTS-post Actions Taken To Resolve wrote:
Commenting out the session (fork) instruction in application.php solve the problem

JTS-post Diagnostic Information wrote:
Joomla! Version: Joomla! 1.5.18 Stable [ wojmamni ama wojnaiki ] 27-May-2010 18:00 GMT
configuration.php: Writable (Mode: 666 ) | Architecture/Platform: Windows NT 5.0 ( i586) | Web Server: Microsoft-IIS/5.0 ( 192.168.0.112 ) | PHP Version: 5.2.13
PHP Requirements: register_globals: Disabled | magic_quotes_gpc: Disabled | safe_mode: Disabled | MySQL Support: Yes | XML Support: Yes | zlib Support: Yes
mbstring Support (1.5 or above): Yes | iconv Support (1.5 or above): Yes | save.session_path: Writable | Max. Execution Time: 240 seconds ( now, but user had to increase from 300 ) | File Uploads: Enabled
MySQL Version: 5.1.41-community ( localhost via TCP/IP )

JTS-post Extended Information wrote:
SEF: Disabled (without ReWrite) | Legacy Mode: Disabled | FTP Layer: Disabled | htaccess: Not Implemented
PHP/suExec: User and Web Server accounts are not the same. (PHP/suExec probably not installed)
PHP Environment: API: cgi-fcgi | MySQLi: Yes | Max. Memory: 96M ( now, but user had to increase from 128M ) | Max. Upload Size: 50M | Max. Post Size: 50M | Max. Input Time: 60 | Zend Version: 2.2.0
Disabled Functions:
MySQL Client: 5.0.51a ( latin1 )


Last edited by SteP-it on Sat Jun 05, 2010 3:56 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Jun 05, 2010 3:55 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun May 23, 2010 7:59 am
Posts: 6
Location: Rome, Italy
Quote:
same problem in 1.5.18, fresh intallation.
The fork(); function fails :(
I insist, is a configuration problem of php on the server.....


You told you had a server working and another one not working after upgrade: are you able to check their .ini setups and find a possible difference, if any?


Top
 Profile  
 
PostPosted: Thu Jun 10, 2010 8:13 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 15, 2009 2:38 pm
Posts: 6
ianmac wrote:
SteP-it wrote:
..no one answering to this question?
It's a serious bug, and it should be fixed in any case!
I'm sure that programmers are hard working to 1.6 version, but many of us will upgrade to 1.6 only when all other extensions will be stable for that release. So 1.5.x will stay along on our servers, and it should be fixed soon...
I understand that we are speaking about Open Source sw, and that programmers are volunters, but many of us are available to give help if needed...
Please, look for a fix asap :-)

People should try upgrading to J! 1.5.18, doing a fresh install and see if the problem remains.

Ian


Yes, did and unfortunately the problem remains.


Top
 Profile  
 
PostPosted: Thu Jun 10, 2010 4:27 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4779
Location: Toronto, Canada
We're having a hard time with this issue because we can't reproduce it here and we're not quite sure how to ask for good diagnostics info.

It may be IIS specific, but we're not sure.

Is anybody having this problem on Apache and is able to give us ssh access to a dev site where we can try and debug?

Ian


Top
 Profile  
 
PostPosted: Thu Jun 10, 2010 5:10 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 15, 2009 2:38 pm
Posts: 6
I have updated several sites to 1.5.18 and all works smooth except the one site that is using MySql 5.0 other ones are in MySql 3.x


Top
 Profile  
 
PostPosted: Thu Jun 10, 2010 8:05 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 06, 2008 6:17 pm
Posts: 18
@ianmac

I ask my administrator if he can give you access to our apache server where there is the problem, I will inform you in the next few days....


Top
 Profile  
 
PostPosted: Fri Jun 11, 2010 10:10 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 06, 2008 6:17 pm
Posts: 18
@ianmarc

I send you a private message...


Top
 Profile  
 
PostPosted: Mon Jun 14, 2010 11:20 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Jun 03, 2010 12:00 am
Posts: 9
ianmac wrote:
We're having a hard time with this issue because we can't reproduce it here and we're not quite sure how to ask for good diagnostics info.

It may be IIS specific, but we're not sure.

Is anybody having this problem on Apache and is able to give us ssh access to a dev site where we can try and debug?

Ian

Hi Ian
I am having this problem on 18 on apache server and will hapily set it up for you to look at it. Its a problem that needs resolving.
MikeyP :)


Top
 Profile  
 
PostPosted: Wed Jun 16, 2010 3:20 am 
Joomla! Explorer
Joomla! Explorer

Joined: Wed Mar 01, 2006 1:18 pm
Posts: 264
Location: Kansas USA
So, it the bug fixed? I'm wanting to upgrade three sites to .18. One of which has been a problem twice.

_________________
Craig Davis
CD-Vision Marketing
http://www.cdvisionmarketing.com/


Top
 Profile  
 
PostPosted: Mon Jun 28, 2010 11:00 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 15, 2009 2:38 pm
Posts: 6
Any news about a bug fix for this problem?


Top
 Profile  
 
PostPosted: Mon Jun 28, 2010 11:17 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 06, 2008 6:17 pm
Posts: 18
no news....I worote a private message to ianmark but but did not answer me... :(


Top
 Profile  
 
PostPosted: Mon Jun 28, 2010 11:21 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 15, 2009 2:38 pm
Posts: 6
This is another thread with the same problem: viewtopic.php?f=430&t=522704

dpacadmin wrote:
You seem to have a session problem. Here is what a successful login debug list looks like
Code:
#
SELECT *
  FROM jos_session
  WHERE session_id = '6d4f02eb80fb34a86e284f8c0374709f'
#
DELETE
  FROM jos_session
  WHERE ( time < '1275747706' )
#
SELECT *
  FROM jos_session
  WHERE session_id = '6d4f02eb80fb34a86e284f8c0374709f'
#
UPDATE `jos_session`
  SET `time`='1275748606',`userid`='62',`usertype`='Super Administrator',`username`='admin


Where yours is trying to do an
INSERT INTO `jos_session`
mine was doing an
UPDATE `jos_session`

I don't know enough about sessions and databases to know what to do but you could check your database and see if it needs repair, the jos_session table in particular.

First check your browser's cookies and delete any from your two domains, then try to login again. Then try uploading the administrator folder from a full file set for the Joomla version you are using, check your FTP program that it is set to overwrite existing files and that all files were uploaded.

Check permissions on your administrator folder and subfolders as well as files. Folders should be 755 and files should be 644. One person found one file set to 000 which stopped everything.

If you can, check that the ownership of all your files and folders is the same, an ownership issue could leave files or folder inaccessible to Joomla.


dpacadmin is giving some possible solutions that I am going to try.


Top
 Profile  
 
PostPosted: Thu Jul 01, 2010 11:05 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 15, 2009 2:38 pm
Posts: 6
Non of this has worked for me, anyone?


eddaathygli wrote:
This is another thread with the same problem: viewtopic.php?f=430&t=522704

dpacadmin wrote:
You seem to have a session problem. Here is what a successful login debug list looks like
Code:
#
SELECT *
  FROM jos_session
  WHERE session_id = '6d4f02eb80fb34a86e284f8c0374709f'
#
DELETE
  FROM jos_session
  WHERE ( time < '1275747706' )
#
SELECT *
  FROM jos_session
  WHERE session_id = '6d4f02eb80fb34a86e284f8c0374709f'
#
UPDATE `jos_session`
  SET `time`='1275748606',`userid`='62',`usertype`='Super Administrator',`username`='admin


Where yours is trying to do an
INSERT INTO `jos_session`
mine was doing an
UPDATE `jos_session`

I don't know enough about sessions and databases to know what to do but you could check your database and see if it needs repair, the jos_session table in particular.

First check your browser's cookies and delete any from your two domains, then try to login again. Then try uploading the administrator folder from a full file set for the Joomla version you are using, check your FTP program that it is set to overwrite existing files and that all files were uploaded.

Check permissions on your administrator folder and subfolders as well as files. Folders should be 755 and files should be 644. One person found one file set to 000 which stopped everything.

If you can, check that the ownership of all your files and folders is the same, an ownership issue could leave files or folder inaccessible to Joomla.


dpacadmin is giving some possible solutions that I am going to try.


Top
 Profile  
 
PostPosted: Thu Jul 01, 2010 11:21 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 06, 2008 6:17 pm
Posts: 18
I am sure that this is not a problem of session, but of the configuration of PHP on the server....


Top
 Profile  
 
PostPosted: Mon Aug 02, 2010 9:49 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Feb 17, 2010 2:23 am
Posts: 13
Hello,

I have been plagued by this issue also. It only started happening after upgrading to Joomla 1.5.20

Logging in to the front end simply refreshes the page and "whos online" shows the user (including myself as administrator) is logged in but they actually aren't.

Logging in via backend works fine but not always.

This ONLY occurs in Internet Explorer for me and works fine in Firefox (I do not know of other browsers as I don't use them).

I have now commented out $session->fork(); and the problem goes away.

I noticed people asking if there were any serious consequences as a result of commenting this line out but no comprehensive answer. So for those who rely on Joomla to power their businesses, like myself, I'd appreciate some official commentary/response regarding this.

Thanks


Top
 Profile  
 
PostPosted: Tue Aug 03, 2010 8:17 am 
Joomla! Intern
Joomla! Intern

Joined: Wed Jul 01, 2009 9:05 pm
Posts: 98
So the problem isn't solved in 1.5.20?


Top
 Profile  
 
PostPosted: Tue Aug 03, 2010 8:38 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Jul 06, 2008 6:17 pm
Posts: 18
DanneSt wrote:
So the problem isn't solved in 1.5.20?


NO :(


Top
 Profile  
 
PostPosted: Tue Aug 03, 2010 12:54 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Sat Sep 24, 2005 11:01 pm
Posts: 4779
Location: Toronto, Canada
There was a small change made to session handling in 1.5.17 in response to a discovered session fixation vulnerability in Joomla! See http://developer.joomla.org/security/ne ... ation.html for more information.

This seems to work without issue on the vast majority of servers. There does seem to be a small minority on which this causes problems. I have put out a request in this thread already for ssh access to an affected server so that I might try and track down the exact issue but so far nobody has been able to provide this.

Ian MacLennan
JSST Member


Top
 Profile  
 
PostPosted: Tue Aug 03, 2010 2:08 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue May 12, 2009 11:18 pm
Posts: 4
Jjacobs wrote:
Hello,

I have been plagued by this issue also. It only started happening after upgrading to Joomla 1.5.20

Logging in to the front end simply refreshes the page and "whos online" shows the user (including myself as administrator) is logged in but they actually aren't.

Logging in via backend works fine but not always.

This ONLY occurs in Internet Explorer for me and works fine in Firefox (I do not know of other browsers as I don't use them).

I have now commented out $session->fork(); and the problem goes away.

I noticed people asking if there were any serious consequences as a result of commenting this line out but no comprehensive answer. So for those who rely on Joomla to power their businesses, like myself, I'd appreciate some official commentary/response regarding this.

Thanks


By any chance, are you running two instances of Joomla on your hosting server? I ran into this problem with a client that runs several Joomla websites off one hosting account. I think it may have caused the session cookies to get mixed up in the browser.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 120 posts ]  Go to page Previous  1, 2, 3, 4  Next



Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group