By Arkar on
When updating from 4.6.5 to 4.6.6 my users can't login. When i revert user.module file to 4.6.5 it works again. What is the problem ? Am I the only one experiencing this problem. Please help. My website is ageeclg.org .
When updating from 4.6.5 to 4.6.6 my users can't login. When i revert user.module file to 4.6.5 it works again. What is the problem ? Am I the only one experiencing this problem. Please help. My website is ageeclg.org .
Comments
PHP version
What version of PHP are you using? The security fix for Drupal 4.6.6 requires PHP version 4.3.2 (which is below the minimum of 4.3.3 required for that release, so you should be okay).
--
If you have a problem, please search before posting a question.
PHP Version 4.3.2
PHP Version 4.3.2
Trying to upgrade my php
Trying to upgrade my php version to see if it is the problem.
I just upgraded my sites by applying the patches
and I am not having this problem.
What's the difference between your user module and the 4.6.6 one? Did you modify it?
The patch to user.module is the addition of 4 lines related to generating a session id.
Did not modify it. I am
Did not modify it. I am using the official code. The only difference are the four line of code. And i still get the problem.
Same problem
I've just upgraded my drupal from 4.6.4 to 4.6.6 and have the same problem.When a registered user attempt to log in , it seems on admin panel as "logged in" but user isn't. Any ideas?
I suggest you switch
I suggest you switch user.module to 4.6.5 version until we find a solution.
Wild guess
Any help if you empty/truncate the sessions and cache tables?
Laura
_____ ____ ___ __ _ _
pingVision, LLC • BlogHer • rare pattern • scattered sunshine
_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet
Clearing the cache.
Yep, in my case it solved the login problem.
Gert
Did not work for me.
Did not work for me.
I am not seeing this issue
My upgrade process:
1. Read the patches; see that they affect the the following files:
2. Upload the new files listed in step 1.
My environment is:
MySQL 4.1.14
PHP 4.4.1
Apache 1.3.34
If you are having the problem mentioned in this thread, please post back with your operating environment, as that will help to troubleshoot the issue --
Cheers,
Bill
-------
http://www.funnymonkey.com
Tools for Teachers
-------
http://www.funnymonkey.com
Shortcut to upgrade/patching?
Just wondering if simply overwriting these files in my 4.6.5 install with the new ones from 4.6.6 will upgrade the site? Is this a good way to do it?
It worked for me
on seven different sites.
But, as always, your mileage may vary :)
In all seriousness, I'd love to get feedback on this method. I arrived at this process after reading through the text of the patches and seeing what files were affected.
It's possible that there are small changes in other modules/files that aren't critical, and therefore aren't reflected in the patches.
But, based on what the patches do, these changes should address the security issues.
Cheers,
Bill
-------
http://www.funnymonkey.com
Tools for Teachers
-------
http://www.funnymonkey.com
Thanks for responding so
Thanks for responding so quickly. Since I have dba module sending me regular backups of the database and also have file backups, this seems an easier way of doing things.
I am going to try this out tomorrow to see how it goes.
Thanks again.
No problems here
I patched three sites, no problems.
--R.J.
http://www.electric-escape.net/
--R.J.
I think the problem is that
I think the problem is that the session id is not being explicitly set as shown in the documetation.
This might also be because the session cookie does not change in 4.3.2 but it does change in 4.3.3.
I might be helpful to know if you are running windows also.
Thanks a lot ! After your
Thanks a lot ! After your suggestion my Drupal site works very well.
This does not work for me.
This does not work for me.
Thanks, that fixed it for me
Had the same 'can't log in' problem with upgrade from 4.6.4 to 4.6.6
I narrowed it down to the 4 line change in user.module.
The fix with $new_session_id made it work.
peterthevicar
drupal site: http://www.lymingtonchurch.org
php 4.3.2
thanks Tesla..
that worked for me..nice one.
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
This may be showing my butt!
I opened my user.module and could not find any <?php> tages in the vicinity of the above example. But everything looks in my user.module just like above before the fix. Are the
tags suppose to be added I wonder? What I mean is should I nest a new set within the tags that all the info of this module enclose. I guess I can try both ways...
PHP version 4.4.2, MySQL ver. 4.1.18-standard, Apache version 1.3.34 (Unix)
peace to all beings, Michael S.
ProgressiveBastion.com
Yup, I'm Liberal... Liberal lib~er~al (lbr-l, lbrl),
Running patches, all success so far
* knock wood *
6/6 sites so far, without a hitch. (Although I have to keep rewriting the file paths as "cvs" does not figure in the installs I have. I'm sure I'm missing some obvious *nix option to avoid all that typing.)
Edited to add my "duh" moment: proper syntax:
patch -p0 < 4.6.5.patchI will now take my learning curve back off-line.
PHP 4.4.1. MySQL 4.1.14.
Laura
_____ ____ ___ __ _ _
pingVision, LLC • BlogHer • rare pattern • scattered sunshine
_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet
Problems with the second patch
The second patch give me this "error"
Is it normal? :-(
Thanks
OK...
Solution
Did you transfer the patches with FTP?
A little late, since you solved the problem, but:
If you sent the patches to your site as ASCII file via FTP, it might have added the CRs.
Updating from 4.6.5 to 4.6.6 unsuccessfully
I tried to update my two drupal sites running 4.6.5 by downloading the tarball and then just replacing the affected files,
common.inc
menu.inc
book.module
user.module
xtemplate.engine
After that was done I tried to log in to the page but it didnt work, the site went blank and the url turned www.example.com/en/user/login?destination=user
(yes, i'm using i18n)
I cleared the sessions and cache tables and local cache of browser and tried to open the homepage but this time nothing happened at all (page went blank). I'm using phptemplate instead of xtemplate so I also downloaded the engine file from CVS but without any improvements.
So I uploaded the old menu.inc file and now I can see the site again, but not log in (same error as before).
Any tips what it can be?
Edit:
One of the sites was successfully updated! But it is not running i18n module. Both are on same server environment though.
---
Running Apache, PHP 4.4.1, MySQL 4.0.24
il8n module requires patching to core files
Try re-running the patches in the il8n/patches directory and see if that solves the problem.
confirmed
The user.module patch prevents login on several sites I have. I will investigate more, but for now I am using the unpatched version.
Re: when upgrading from 4.6.5 to 4.6.6 some users can't login
I confirm this with an interesting twist. In working with one user, although clearing their browser's cookies, cache, and rebooting did not solve their problem. Installing Firefox and using it instead of IE version 6 allowed them to login.
Server:
PHP: 4.4.0
MySQL: 4.1.13
I use firefox and it doesnt
I use firefox and it doesnt change anything.
Experiencing the same problem with 4.5.8
FYI... Experiencing the same problem with the 4.5.8 release. Backing off to the previous 4.5.7 user.module works fine.
I upgraded my php version after reading the previous posts. It was previously at 4.3.2. Still getting the same results.
Specs:
RHEL 3 ES Update 7
Apache 2.0.46
PHP 4.4.2
MySQL 4.1.16
Same problem...
Same problem here too... php version 4.3.2.
Reverted to old user.module and now i am able to login.
Is there a security problem if i am using the old user.module?
Could someone please help
Could someone please help with a solution with this issue please or tell me what can i do. I understand there is security issue in this case it is important. Where can i file a bug ?
Same problem 4.6.3 -> 4.6.6
Apache version 1.3.34 (Unix)
PHP version 4.3.11
MySQL version 4.1.13-standard-log
The edit shown above re session_id did not help.
I have copied in the 4.6.5 user.module as a temporary fix.
same problem
I'm having the same problem. Has anyone raised an issue/bug for this?
It's a showstopping bug.
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
the solution is already here
Hi.
For what I can say, i hit this bug when use php 4.3.2 (on some hoster).
The solution is posted before here:
http://drupal.org/node/53838#comment-101856
You have to:
* verify which php version is
* apply the suggested fix
Hope this help.
Nothing seems to work. Have to go back to 4.6.5 I guess.
PHP 4.4.1
Linux 2.6.9-22.0.1.ELsmp
MySQL 4.1.14
Apache 1.3.34
Followed the documentation to perform the patch. Can't log in and neither can anyone else trying to use the site. Flushed the tables. Nothing. Tried putting back the affected .module pieces (4.6.5 modules). Still doesn't work.
I suppose if I were a programmer I would know what to do with PHP -- but I don't. I hope a fix appears soon because I've decided to go back to 4.6.5 and take my chances.
Mmmm weird...Sometimes works and sometimes doesnt
I have 2 clean Drupal 4.6.6 versions: one locally with Windows + IIS + PHP 4.4.0 and then one on the hosting wich has Unix + Apache...
Online I was able to create account and log in wihout any patch nor anything.
Locally, I was not able to login, nor to fix it with any of the things/solutions I have read on the forums.
Any thoughts?
Clauz
---------------------------------
http://www.clauz.com.ar
...I am going through A Momentary Lapse of Reason...
Here is our workaround
We were definitely experiencing the same problem. Since we're locked into PHP 4.3.2, the latest user.module 4.6.6 code with the session_id() caused problems. Our workaround was to create a custom block that only shows up on:
pages. Please note that this will not work if you use the user_block (mini-login). I would recommend you disable that and create a custom block that takes users to the generic login screen. This also requires that javascript be active in the users' browser.
I implemented this because I didn't feel like patching the core knowing that a fix will likely be out sometime soon.
The other option is to simply comment out the following three lines in the user.module:
(somewhere around lines 816-818)
but then you're bypassing the security patch update.
--
Michael Jelks
http://www.planetizen.com
http://www.zaftig.net
regeneration the session id
I'm using drupal-4.7.0-rc3, but only php 4.3.2.
You say that these three lines cause the problem:
Commenting them out certainly fixes the problem. However you say that was a security fix.
Checking on php.net, in php 4.3.3 session_regenerate_id() sets a new cookie, where 4.3.2 doesn't.
I need someone knowledgeable to confirm this, but it sound like all we need to do is run session_start().
This works for me.
FlatCap (Rich)
Nasty BUG
I failed to mention that you need to make sure that this block ONLY shows up on the:
user
user/login
pages. Don't enable this block until you set those parameters, otherwise you won't be able to login as your cookie will be destroyed on each page load. If this happens, you will have to remove the block manually from the database in the 'boxes' table.
--
Michael Jelks
http://www.planetizen.com
http://www.zaftig.net
Living The Bug and
Pulling out hair. I too am struggling with this bug, and I've got some serious deadlines which will see me working through this weekend (ugh!).
Does anyone know when this might be fixed? I can't seem to get the other two examples in this thread working [the ones with session_start();], but obviously if I take out the security fix--and therefore the security--everything is dandy. Is there an issue opened for it?
THANKS!
those 3 lines
Commenting those three lines out did the trick.
Hope there is a patch coming out soon that will address this issue.
Cheers.
This Did The Trick; but with a small twist...
I commented out the 3 lines (lines 815-819, just to make sure ;-) ) and tried the fix. It didn't work.
I then used Firefox and looked around my cookie area. Yet for some reason my domain progressivebastion.com was blocked Privacy--> Cookies--> allowsite to set cookies (yes)-->exceptions. Even though 2 weeks ago I explicilty set it to accept. HMMMM! It was set to block (on my own domain). Very Interesting! I cleared the block and then set the domain to allow which I did 2 weeks ago, and it then worked!
So it worked! But, how the heck did it change my permissions on cookie exceptions is what I want to know? Well it looks like just below this post their is a reference to a Patch. I'll be back after I get it patched & if I have anything to report other than failure.
PHP version 4.4.2, MySQL ver. 4.1.18-standard, Apache version 1.3.34(Unix)
Hosted by OpenSourceHost.com a truely professional crew...
peace to all beings, Michael S.
ProgressiveBastion.com
Yup, I'm Liberal... Liberal lib~er~al (lbr-l, lbrl),
I commented out one line - now 4.7.2 login works!
I read all through these, no patch worked for me (not sure if I applied it right?). But the guys who were looking into the user.module around this sessions area are on to the right path for a true reason and fix:
$old_session_id = session_id();
//session_regenerate_id();
db_query("UPDATE {sessions} SET sid = '%s' WHERE sid = '%s'", session_id(), $old_session_id);
Anyways, I just commented out //session_regenerate_id(); and then it worked fine!
What does that funtion do? How can it be reviewed / fixed?
To recap, I am using:
Windows 2000 IIS
PHP 4.4.2
MySQL 4.0.21
Drupal 4.7.2 ! Yeah!
session_regenerate_id() & security
session_regenerate_id is a php function that generates a new session id to prevent session fixation attacks [PDF].
--
The Manual | Troubleshooting FAQ | Tips for posting | Make Backups! | Consider creating a Test site.
me2
Thanks for that, Goose. Your fix worked for me too! Here's to hoping it doesn't cause any further problems downstream.
Patch submitted
http://drupal.org/node/60584
This is only a problem for
This is only a problem for me in IE if I login as one user, then log out, and log in as another user. Only in IE. FF is fine. My solution is to leave user.module as is -- for security, and delete cookies when the bug comes back. Other users on the site don't have more than one user. I do.
http://lucion.com.ar
Bevan/
The Patch Worked for Us...
The above says it. I logged off after I patched & then was able to do a admin log-in, very cool! Thanks everyone for the help, I'm definitely glad you guys are here. Where would some of us be if not for your folkes effort? Now where...
PHP version 4.4.2, MySQL ver. 4.1.18-standard, Apache version 1.3.34 (Unix)
Hosted by OpenSourceHost.com a truly professional crew...
peace to all beings, Michael S. of
ProgressiveBastion.com