Access denied – Drupal 6.x
Here in Access Denied error land, I present for you a solution to one of those oh so common Drupal errors
settings.php to bypass this access check. To do this:
- 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
sites/your_site_nameif such directory exists, or else tosites/defaultwhich applies otherwise. - There is a line inside your settings.php file that says
$update_free_access = FALSE;. Change it to$update_free_access = TRUE;. - As soon as the update.php script is done, you must change the settings.php file back to its original form with
$update_free_access = FALSE;. - 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.
The Fix:
Try this – go to http://yourdomainname.com/?q=user and log in. Just change the yourdomainname.com part but keep the rest of the text exactly as it is. Now go to http://yourdomainname.com/update.php
You may or may not see a few errors, just ignore them for the moment. Click the Update button.
You should now see the:
Drupal database update
The version of Drupal you are updating from has been automatically detected. You can select a different version, but you should not need to.
Click Update to start the update process…
You should now see updating your system modules (assuming that the error was caused by this in the first place – either that or you may have updated Drupal core without having logged in first).
If, like me you get a bunch of Errors like this:
warning: unlink(sites/default/files/css/css_0e2af2fb52fe6c887bc8aa7be73abcb0.css) [function.unlink]: Permission denied in W:\WWWRoot\manonmars\includes\file.inc on line 444.
You can safely ignore them.
Drupal’s Response
Updates were attempted. If you see no failures below, you may proceed happily to the administration pages. Otherwise, you may need to update your database manually. All errors have been logged.
The key word in the text above is below if you don’t see any errors, just function executes against a grey background then you’re on the right path.
Just run CRON manually and that should take care of it for you.
Simon.
Comments
Powered by Facebook Comments
Related posts:
- Drupal 6 – Can’t access my forms after rebuild menus
- Drupal – The selected file… could not be uploaded. Only JPEG, PNG and GIF images are allowed
- Drupal ‘white screen of death’ – error reporting for PHP
- Creating a Drupal 6 custom login form – Step by Step tutorial.
- IIS and Drupal – Enable Clean URL’s
- IIRF Drupal, WordPress and IIS6 – How to get them working first time – Guaranteed!
- If your Drupal Admin pages are slow, here’s the fix.
2 Comments
Leave a Reply
Hot Topics
- WordPress Contact Form 7 & WP-Mail-SMTP problem solved
- How to take Ownership of a Drive, Folder or File in Windows 7
- The environment variable Home is not set (Solved)
- Excel 2007 sort columns & rows data.
- Failed to initialize OpenGL (Checklist)
- Android SDK Manager won’t start (Solved)
- Creating a Drupal 6 custom login form – Step by Step tutorial.
- Android requires compiler compliance level 5.0 or 6.0. Found ’1.7′ instead. Please use Android Tools > Fix Project Properties.
- IIS7 – No HTTP redirect icon
- WordPress widgets not saving or dragging?
Archives
- April 2013
- March 2013
- February 2013
- December 2012
- November 2012
- July 2012
- June 2012
- May 2012
- February 2012
- November 2011
- September 2011
- August 2011
- June 2011
- January 2011
- December 2010
- November 2010
- October 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- January 2009
- December 2008
- August 2008
- June 2008


how can i change my database manually…i can’t access my admin panel…
I work on my own server. If you’re with an ISP you probably won’t be able to, best to ask their technical support in how you can do this.
All the best
Simon