Skip to content
Snippets Groups Projects
Commit 0b7962ca authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #570572 by winston, David_Rothstein | Shai, Xano, alexanderpas,...

- Patch #570572 by winston, David_Rothstein | Shai, Xano, alexanderpas, emmajane, kazar: changed label for user/1 account from 'administrator' to 'site maintenance account'.
parent e1ad90ba
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -119,8 +119,8 @@ INSTALLATION ...@@ -119,8 +119,8 @@ INSTALLATION
(e.g., http://www.example.com). (e.g., http://www.example.com).
You will be guided through several screens to set up the database, You will be guided through several screens to set up the database,
create tables, add the first user account and provide basic web create tables, add the site maintenance account (the first user, also known
site settings. as user/1), and provide basic web site settings.
The install script will attempt to create a files storage directory The install script will attempt to create a files storage directory
in the default location at sites/default/files (the location of the in the default location at sites/default/files (the location of the
...@@ -152,8 +152,8 @@ INSTALLATION ...@@ -152,8 +152,8 @@ INSTALLATION
5. CONFIGURE DRUPAL 5. CONFIGURE DRUPAL
When the install script succeeds, you will be directed to the "Welcome" When the install script succeeds, you will be directed to the "Welcome"
page, and you will be logged in as the administrator already. Proceed with page logged in with the site maintenance account. Proceed with the initial
the initial configuration steps suggested on the "Welcome" page. configuration steps suggested on the "Welcome" page.
If the default Drupal theme is not displaying properly and links on the page If the default Drupal theme is not displaying properly and links on the page
result in "Page Not Found" errors, try manually setting the $base_url variable result in "Page Not Found" errors, try manually setting the $base_url variable
......
...@@ -36,10 +36,10 @@ Let's begin! ...@@ -36,10 +36,10 @@ Let's begin!
More information on multisite configuration is located in INSTALL.txt. More information on multisite configuration is located in INSTALL.txt.
2. If possible, log on as the user with user ID 1, which is the first account 2. If possible, log on as the user with user ID 1, which is the first account
created and the main administrator account. User ID 1 will be able to created - also known as the site maintenance account. Only this account will
automatically access update.php in step #10. There are special instructions be able to automatically access update.php in step #10. There are special
in step #10 if you are unable to log on as user ID 1. Do not close your instructions in step #10 if you are unable to log on as user ID 1. Do not
browser until the final step is complete. close your browser until the final step is complete.
3. Place the site in "Offline" mode, to let the database updates run without 3. Place the site in "Offline" mode, to let the database updates run without
interruption and avoid displaying errors to end users of the site. This interruption and avoid displaying errors to end users of the site. This
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
* once and be marked complete once they are successfully finished. For * once and be marked complete once they are successfully finished. For
* example, the Drupal installer uses this flag for the batch installation of * example, the Drupal installer uses this flag for the batch installation of
* modules on the new site, and also for the configuration form that collects * modules on the new site, and also for the configuration form that collects
* basic site information and sets up the first user account. * basic site information and sets up the site maintenance account.
*/ */
define('INSTALL_TASK_RUN_IF_NOT_COMPLETED', 3); define('INSTALL_TASK_RUN_IF_NOT_COMPLETED', 3);
...@@ -1000,8 +1000,7 @@ function install_find_profiles() { ...@@ -1000,8 +1000,7 @@ function install_find_profiles() {
} }
/** /**
* Installation task; allow the site administrator to select which profile to * Installation task; select which profile to install.
* install.
* *
* @param $install_state * @param $install_state
* An array of information about the current installation state. The chosen * An array of information about the current installation state. The chosen
...@@ -1117,8 +1116,7 @@ function install_find_locales($profilename) { ...@@ -1117,8 +1116,7 @@ function install_find_locales($profilename) {
} }
/** /**
* Installation task; allow the site administrator to select which locale to * Installation task; select which locale to use for the current profile.
* use for the current profile.
* *
* @param $install_state * @param $install_state
* An array of information about the current installation state. The chosen * An array of information about the current installation state. The chosen
...@@ -1555,7 +1553,7 @@ function _install_configure_form(&$form_state, &$install_state) { ...@@ -1555,7 +1553,7 @@ function _install_configure_form(&$form_state, &$install_state) {
); );
$form['admin_account'] = array( $form['admin_account'] = array(
'#type' => 'fieldset', '#type' => 'fieldset',
'#title' => st('Administrator account'), '#title' => st('Site maintenance account'),
'#collapsible' => FALSE, '#collapsible' => FALSE,
); );
...@@ -1677,8 +1675,8 @@ function install_configure_form_submit($form, &$form_state) { ...@@ -1677,8 +1675,8 @@ function install_configure_form_submit($form, &$form_state) {
if ($form_state['values']['update_status_module'][1]) { if ($form_state['values']['update_status_module'][1]) {
drupal_install_modules(array('update')); drupal_install_modules(array('update'));
// Add the administrator's email address to the list of addresses to be // Add the site maintenance account's email address to the list of
// notified when updates are available, if selected. // addresses to be notified when updates are available, if selected.
if ($form_state['values']['update_status_module'][2]) { if ($form_state['values']['update_status_module'][2]) {
variable_set('update_notify_emails', array($form_state['values']['account']['mail'])); variable_set('update_notify_emails', array($form_state['values']['account']['mail']));
} }
......
...@@ -156,11 +156,12 @@ ...@@ -156,11 +156,12 @@
/** /**
* Access control for update.php script * Access control for update.php script
* *
* If you are updating your Drupal installation using the update.php script * If you are updating your Drupal installation using the update.php script but
* being not logged in as administrator, you will need to modify the access * are not logged in using the site maintenance account (the account that was
* check statement below. Change the FALSE to a TRUE to disable the access * created during installation), you will need to modify the access check
* check. After finishing the upgrade, be sure to open this file again * statement below. Change the FALSE to a TRUE to disable the access check.
* and change the TRUE back to a FALSE! * After finishing the upgrade, be sure to open this file again and change the
* TRUE back to a FALSE!
*/ */
$update_free_access = FALSE; $update_free_access = FALSE;
......
...@@ -13,9 +13,10 @@ ...@@ -13,9 +13,10 @@
* Point your browser to "http://www.example.com/update.php" and follow the * Point your browser to "http://www.example.com/update.php" and follow the
* instructions. * instructions.
* *
* If you are not logged in as administrator, you will need to modify the access * If you are not logged in using the site maintenance account, you will need
* check statement inside your settings.php file. After finishing the upgrade, * to modify the access check statement inside your settings.php file. After
* be sure to open settings.php again, and change it back to its original state! * finishing the upgrade, be sure to open settings.php again, and change it back
* to its original state!
*/ */
/** /**
...@@ -201,12 +202,12 @@ function update_info_page() { ...@@ -201,12 +202,12 @@ function update_info_page() {
function update_access_denied_page() { function update_access_denied_page() {
drupal_set_title('Access denied'); drupal_set_title('Access denied');
return '<p>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 <code>settings.php</code> to bypass this access check. To do this:</p> return '<p>Access denied. You are not authorized to access this page. Please log in using the site maintenance account (the account you created during installation). If you cannot log in, you will have to edit <code>settings.php</code> to bypass this access check. To do this:</p>
<ol> <ol>
<li>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 <code>sites/your_site_name</code> if such directory exists, or else to <code>sites/default</code> which applies otherwise.</li> <li>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 <code>sites/your_site_name</code> if such directory exists, or else to <code>sites/default</code> which applies otherwise.</li>
<li>There is a line inside your settings.php file that says <code>$update_free_access = FALSE;</code>. Change it to <code>$update_free_access = TRUE;</code>.</li> <li>There is a line inside your settings.php file that says <code>$update_free_access = FALSE;</code>. Change it to <code>$update_free_access = TRUE;</code>.</li>
<li>As soon as the update.php script is done, you must change the settings.php file back to its original form with <code>$update_free_access = FALSE;</code>.</li> <li>As soon as the update.php script is done, you must change the settings.php file back to its original form with <code>$update_free_access = FALSE;</code>.</li>
<li>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.</li> <li>To avoid having this problem in the future, remember to log in to your website using the site maintenance account (the account you created during installation) before you backup your database at the beginning of the update process.</li>
</ol>'; </ol>';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment