[drupal-devel] [bug] Update script should have clearer instructions when admin session is not in database copy

willmoy drupal-devel at drupal.org
Tue Apr 5 19:08:54 UTC 2005


Issue status update for http://drupal.org/node/19941

 Project:      Drupal
 Version:      cvs
 Component:    other
 Category:     bug reports
 Priority:     normal
 Assigned to:  willmoy
 Reported by:  willmoy
 Updated by:   willmoy
 Status:       patch
 Attachment:   http://drupal.org/files/issues/install.php.patch (1.74 KB)

New patch without quotes


willmoy



Previous comments:
------------------------------------------------------------------------

April 4, 2005 - 04:15 : willmoy

Attachment: http://drupal.org/files/issues/update.php_0.patch (1.75 KB)

The following is from:
http://civicspacelabs.org/home/node/9042
The documentation for error condition when the Admin 1 user was not
logged into the database when it was backed up is inadequate.
The documentation should read: With an editor find the update.php file
on your system. It should be in the main CivicSpace directory that you
installed all the files into. Change the line at the top of your
update.php page and change what is between the quotes from
$access_check = "TRUE"; to $access_check = "FALSE";
As soon as the script is done, you must change the update.php script
back to it's original form to $access_check = "TRUE";
We should also explain that next time the user should back up the
database with the Admin 1 user logged in to avoid this problem.
The final text this patch inserts is:
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 update.php to bypass this access check.
To do this:
1. 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.
2. There is a line near top of your update.php page that says
$access_check = "TRUE"; Change it to $access_check = "FALSE";
3. As soon as the script is done, you must change the update.php script
back to it's original form to $access_check = "TRUE";
4. 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.


------------------------------------------------------------------------

April 5, 2005 - 00:44 : drumm

+1


------------------------------------------------------------------------

April 5, 2005 - 18:57 : Dries

There is no need to wrap TRUE and FALSE in double-quotes.  We don't do
that in update.php.





More information about the drupal-devel mailing list