Closed (fixed)
Project:
Drupal core
Version:
4.7.0-beta1
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
8 Dec 2005 at 15:21 UTC
Updated:
31 Dec 2005 at 10:20 UTC
Well got this message after creating the first user on a windows system.
(Apache/2.0.55 (Win32) PHP/5.0.5 and Mysql 4.1 also in MySql 5)
On my Linux System it work well. Same Apache and PHP version.
Have no idea what to do
Comments
Comment #1
moshe weitzman commentedWe need some more information on this. Anyone else experiencing same?
Comment #2
puregin commentedI can confirm that this problem exists:
Drupal HEAD, CVS updated Dec 13, 2005 at 9:22pm PST.
Apache 2.0.54, PHP 5.0.4, Mysql 4.1.15, Fedora Core 4.
Created a new database per INSTALL.mysql.txt, INSTALL.txt
Created the first user by clicking on the link on the
first welcome page, got the e-mail.
Clicking on the generated login link embedded in the email
takes me to my site, but I get 'Access denied/You are not authorized
to access this page'
Using mysql, I can confirm that the user entry was created
in the users table.
Sigh.
Comment #3
rituka commenteddats not a bug .actually this version is designed such dat after making first account it keeps u logged in .you just have to change your password there n the admin account is ready to use.
As u were already logged in so when u clicked on login link provided in your password mail u got the access denied page.
Comment #4
puregin commentedNo, that's not the problem.
There is no option to change the password.
Comment #5
puregin commentedThere is no 'access' attribute set for the path /user/1/edit
Comment #6
puregin commentedSorry - w/ reference to the last post, this is in
_menu_item_is_accessible()
in menu.inc. So access is denied...
Comment #7
Chris Johnson commentedThis looks like it must be a PHP5 related problem. I just tried to duplicate it using PHP 43.10, MySQL 4.1.12 and Apache 1.3.33, and it worked fine.
Comment #8
puregin commentedI've been poking about, and here's what I've found:
If a user logs in via a one-time password, user_pass_reset() checks their one-time password, and redirects them using
drupal_goto('user/' . $user->uid . '/edit')Note
$useris a global object.Unfortunately, in PHP5, between the call and the invocation, $user->uid has been set to '0' (since the user is doing this without having logged in, i.e., is an anonymous user). Hence the check
'access' => $admin_access || $user->uid == arg(1)fails.Suggestions?
Comment #9
puregin commentedOK, after way too many hours staring at this, I believe that this problem can be traced to the .htaccess file.
When I removed the .htaccess file, everything started working as I expected. After tweaking the .htaccess file, I found that the configuration option that seemed to be the culprit was:
php_value mbstring.func_overload 0
Take this out, I get the bug as reported; put it in, everything works fine. This seems to cause problems only in this odd special case of the first account being created.
So - try removing your .htaccess file, and see if that fixes the problem
tsedeke, I'm marking this as 'fixed' - if you still have a problem, we'll reopen.
Djun
Comment #10
puregin commentedJust to follow up: if removing the .htaccess file does resolve the problem, examine it carefully, fix up any errors, and replace it to enable clean URLs, and to protect various files.
The "recommended" .htaccess file can be found here:http://cvs.drupal.org/viewcvs/drupal/drupal/.htaccess?view=markup
Comment #11
dumbo12 commentedWhen I install the CVS version from 12.12.2005 the problem was fixed.
Hope you have all the same experience.
Comment #12
(not verified) commented