You are here

function update_access_denied_page in Drupal 4

Same name and namespace in other branches
  1. 5 update.php \update_access_denied_page()
  2. 6 update.php \update_access_denied_page()
  3. 7 update.php \update_access_denied_page()
1 call to update_access_denied_page()
update.php in ./update.php
Administrative page for handling updates from one Drupal version to another.

File

./update.php, line 549
Administrative page for handling updates from one Drupal version to another.

Code

function update_access_denied_page() {
  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>update.php</code> to bypass this access check. To do this:</p>
<ol>
 <li>With a text editor find the update.php file on your system. It should be in the main Drupal directory that you installed all the files into.</li>
 <li>There is a line near top of update.php that says <code>$access_check = TRUE;</code>. Change it to <code>$access_check = FALSE;</code>.</li>
 <li>As soon as the script is done, you must change the update.php script back to its original form to <code>$access_check = TRUE;</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>
</ol>';
}