The 4.6.1 to 4.6.2 upgrade instructions states the following:

" To upgrade from Drupal 4.6.1, upload all of the files and directories in the Drupal 4.6.2 package to your webserver, replacing older copies of the files. As with any upgrade, it is a good idea to backup of your site and database first. No API or database changes have been made since Drupal 4.6.1 so all contributed themes and modules that work for 4.6.0 and 4.6.1 will work with 4.6.2."

Problem:
I did exactly what these instructions said and it resulted in access denied to the site after the upgrade. Therefore I had to restore back to version 4.6.1 to restore access the site again.

Questions:
The patch instructions are stated as follows:

To patch Drupal, use the patches below:

For Drupal 4.6.1:
http://drupal.org/files/sa-2005-002/filter-4.6.1.patch
http://drupal.org/files/sa-2005-003/xmlrpc.patch

The patch method from the above two links show the following files being modified. Do I only need to replace these files for the upgrade?

Index: modules/comment.module
Index: modules/filter.module
Index: modules/node.module
Index: includes/xmlrpc.inc
Index: includes/xmlrpcs.inc

Then I searched and found a post at http://drupal.org/node/26158 and it stated that one needed to replace all the following files:

database.pgsql
common.inc
image.inc
menu.inc
theme.inc
xmlrpc.inc
xmlrpcs.inc
blogapi.module
book.module
comment.module
filter.module
forum.module
node.module
path.module
chameleon.theme
changelog.txt

Since I have not done any custom modifications to any of the original Drupal files except for some theme modifications, What is the complete list of files that need to be replaced to upgrade from 4.6.1 to 4.6.2? I also assume that I do not have to do anything else for the upgrade except replace the files…. Correct ???

Sam308

Comments

avskip’s picture

What I did was tell it to only transfer newer files one directory at a time. I could have done all directories at once but I wanted more control. I've had no problems since I did that the day 4.6.2 was announced.

If you have SSH access, you might try WinSCP. I believe some FTP programs will allow you to copy only newer files as well.

FYI, I was confused by the instructions as well. For this one it may have been better to provide an update zip that placed only the modified files into the appropriate directory.

Uwe Hermann’s picture

Upgrading from 4.6.1 to 4.6.2 requires no database changes, so yes, simply overwriting the correct files should work.

The two patches you mentioned fix two serious security issues in Drupal, but the new 4.6.2 release contains additional bugfixes, too. I recommend upgrading the whole Drupal installation to 4.6.2...

Can you post the exact error you got and/or what exactly you did and what happened? It could have been a file permission issue or something...

Uwe.
--
hermann-uwe.de | crazy-hacks.org | unmaintained-free-software.org

Sam308’s picture

Here is the error response:

[29-Jun-2005 23:21:52] PHP Warning: mysql_connect(): Access denied for user: 'username@localhost' (Using password: YES) in /home/site/public_html/includes/database.mysql.inc on line 31

The word "site" in the above url is actually "xlecom". I just replaced it because I do not want search engines to get the url.

Any ideas ??

Sam308

sepeck’s picture

When you overwrote all the files with the upgraded version, did you reenter the baseurl and dburl information? It looks like you don;t have the database passord set.

-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

Sam308’s picture

Thanks sepeck.

This settings.php issue was probably the problem.

Anyways, I just created a new upgrade method for non-tech users. See the comment titled "Simple solution that works for upgrading 4.6.1 to 4.6.2" below.

Sam308

sami_k’s picture

A complete patch and updating instructions for 4.6.1 to 4.6.2 may be found here:

http://drupal.etopian.net/patches

--
Please read the handbook, search the forums, then ask...
http://drupal.etopian.net (Consulting, Development, and Hosting)

Sam308’s picture

4.6.1 to 4.6.2 SIMPLE upgrade instructions

This is a very simple non-tech way of upgrading Drupal from 4.6.1 to 4.6.2.

Sucessfully tested on two Drupal sites !!!

File: http://xlecom.net/drupalupgrade/drupal-4-6-2-update.zip
Size: 402 KB

Unzip this file to your hard drive and just upload everything within the "drupal-4.6.2 update" folder to your Drupal root directory to perform the update. It will replace the old files with the new files.

All the files within this zip file came from the Drupal 4.6.2 installation file.

PS. Can somebody host this "drupal-4-6-2-update.zip" file on another server or on the drupal server (please include the download link to the new location) bacause I do not have enough bandwidth to support too many downloads ?

That's it.

Sam308

sami_k’s picture

Your file is now mirrored at the url below. Thanks for putting this together, I have been meaning to do it, but lacking the need.

http://drupal.etopian.net/drupal_releases_4_6_2

--
Please read the handbook, search the forums, then ask...
http://drupal.etopian.net (Consulting, Development, and Hosting)