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.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | update-text.patch | 1.75 KB | willmoy |
| #3 | install.php.patch | 1.74 KB | willmoy |
| update.php_0.patch | 1.75 KB | willmoy |
Comments
Comment #1
drumm+1
Comment #2
dries commentedThere is no need to wrap TRUE and FALSE in double-quotes. We don't do that in update.php.
Comment #3
willmoy commentedNew patch without quotes
Comment #4
dries commentedCan 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.)
Comment #5
willmoy commentedrenamed
Comment #6
dries commentedFixed a couple typos and committed to HEAD.
Comment #7
(not verified) commented