PHP 5.2 and Upgrading Drupal Without Logging In

I switched computers again, so I had to transfer my Drupal installation again. This time, I followed the instructions at joshdick.net as they are well written and more complete than mine. (Mostly. I didn’t really need the FTP server or the domain name.) And of course, I installed the newest version of each program.

After installation, I started making sure everything was working correctly. The biggest problem I had was with Drupal. I was running 4.7.3 and there is an authentication issue with PHP 5.2. I could log in but as soon as I clicked on anything, I was logged out and got plenty of denied messages. It seemed like Drupal had amnesia.

Fortunately, I found the problem and solution on drupal.org about it. There were a few things I could do to fix it. I could downgrade PHP, I could patch the current version of Drupal, or I could upgrade Drupal.

I chose to upgrade Drupal to 5.0 RC1. I followed the upgrade instructions but they didn’t work quite as described. I logged in as user 1 but when I tried to access drupal/update.php on my installation, I got a message that said Access Denied. They also listed a quick fix. There is a line near the start of the update.php, $access_check = TRUE;. All I had to do was change this to FALSE and access drupal/update.php again. Everything seemed to work, with no error messages and a reminder to change access_check back to TRUE.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s