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.

Comments

drumm’s picture

+1

dries’s picture

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

willmoy’s picture

StatusFileSize
new1.74 KB

New patch without quotes

dries’s picture

Can you upload the patch again using another name -- not using .php in its name. When I download the patch, it is downloaded as HTML. (I thought we fixed that.)

willmoy’s picture

StatusFileSize
new1.75 KB

renamed

dries’s picture

Fixed a couple typos and committed to HEAD.

Anonymous’s picture