The second admin with full permissions can't access to update.php
EllECTRONC - June 16, 2009 - 17:24
| Project: | Admin Role |
| Version: | 6.x-1.1 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Description
User with "admin role" assigned with module Admin Role can't access to update.php. So the second admin (user which role is an "administrator" role with full permissions) can't get access to update.php process. The first admin (user uid = 1) can.
It tells:
Access denied
Access denied. You are not authorized to access this page. Please log in as the admin user (the first user you created). If you cannot log in, you will have to edit
settings.phpto bypass this access check. To do this:
- With a text editor find the settings.php file on your system. From the main Drupal directory that you installed all the files into, go to
sites/your_site_nameif such directory exists, or else tosites/defaultwhich applies otherwise.- There is a line inside your settings.php file that says
$update_free_access = FALSE;. Change it to$update_free_access = TRUE;.- As soon as the update.php script is done, you must change the settings.php file back to its original form with
$update_free_access = FALSE;.- To avoid having this problem in future, remember to log in to your website as the admin user (the user you first created) before you backup your database at the beginning of the update process.
But it's set as TRUE all time.

#1
It need to be solved.
#2
update.php is not (yet) handled by the drupal permission system (see #67234: Update script access rights for an effort to fix that in D7). Therefore, adminrole can't help give you access to update.php, which is explained in the 3rd sentence on the project page and in the README.txt file.
#3
I'm sorry, I've not noticed. English is not my native language.
Thank you.