Closed (duplicate)
Project:
Drupal core
Version:
6.14
Component:
update.module
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
21 Oct 2009 at 07:37 UTC
Updated:
28 Feb 2011 at 16:33 UTC
Jump to comment: Most recent
Recently i tryied updating my drupal 6.4 installation to the 6.14 and i was getting the following error message when trying to update the database:
"Permanent error during database update: An HTTP error 404 occurred. http://mysite/update.php?id=6&op=do"
I was fishing around for an answer and couldnt find one... and then i remember and old post about updating that talked about trying to run the update with internet explorer instead of mozilla firefox... so i tryied that as a last resource and... voila!
my database was updated...
so if you see this error try using internet explorer, i hope it works for you too!
Comments
Comment #1
1websitedesigner commentedJust tried this in internet explorer and it didn't work, however I have now found the solution that works for me.
I had modified the .htaccess, and uncommented:
RewriteCond %{HTTP_HOST} ^website\.com$ [NC]
RewriteRule ^(.*)$ http://www.website.com/$1 [L,R=301]
And whenever I do this it seems to seriously muck up the update.php script.
So, what I now do (every time I update) is to comment these again, perform the update and then uncomment them afterwards. I know that there's also a new .htaccess file with every new install of Drupal, so in fact I use the new version first, and then copy and paste these lines into the new version, but only after running the update.php script.
Comment #2
bitozoid commentedI tried with firefox, chromium and opera. No success.
However, IE8 did the job. A think this must be taken as a bug. :-(
Comment #3
jennifer.chang commentedI have the same problem, also reported here by someone else:
http://drupal.org/node/316943
It is critical because we can't even apply updates to the database...
I don't have internet explorer at all and can't install it on my OS.
Comment #4
alexiswatson commentedConfirmed on Drupal 6.16, running on PHP 5.3. I have the site running in a subdirectory (not multi-site), though my httpd.conf configs were working just fine earlier today, updates included... I'll dig further and see what I can turn up.
Comment #5
Andrzej7 commentedAnd I have the same problem - it started about a month ago,but it doesn't stop!
Drupal 6.16
Comment #6
ShannonK commentedI was having this problem too, then I tried Aminto's solution, except that I comment out the following code from my .htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.mysite.org/$1 [R=301,L]
Then I run update.php, which runs correctly. Then I go back to my .htaccess file and uncomment the above code back in (the code is necessary to make my site secure. For some reason, when that code is in .htaccess, update.php will not run correctly.
So, every time I update a module and need to run update.php, I have to do the above procedure. Tedious, but I've found no other way.
By the way, a big THANK YOU to Aminto for posting his solution. I was pulling my hair out. I have Drupal 6.16 now but have heard hints that D7 will handle SSL differently and better...I'm crossing my fingers!
Comment #7
Andrzej7 commentedSolution: change the browser. I couldn't upate with Chrome. No problem with FF. All updated :-)
Comment #8
pipicom commentedI followed bitozoid (#2) solution and it works.. Very strange indeed.
Comment #9
Anonymous (not verified) commented#1 works for me
Comment #10
decibel.places commentedUpdating a site from D16 -> D17 I got the same error and #1 worked
but I got this error at the end:
updated a few other sites without the problem...
hmmm - I previously noticed this site would "hang" during update, but when I aborted it seemed to be completed.
something funky, maybe it is the missing semaphore table...
{later}
I copied the semaphore table from another site (I don't even know what it does) and I don't get the user warnings - but still getting the HTTP error - actually my error is
but #1 fixes it anyway
Comment #11
decibel.places commentedso I had lots of other problems see #861918: trying to fix funky site with Backup & Migrate which tables should I keep in the fresh install, which should I overwrite
it turned out that my variable table was messed up, and I was using caching
I backed up the db, made a fresh install, and re-imported the db from the site
I disabled all caching, cleared the caches and - voila - all the problems went away, including update.php ones
happydays
just remember the developer's mantra: CTFC...CTFC...CTFC...CTFC... (Clear the F**king Cache)
Comment #12
rolkos commentedIn sites/default/settings.php change
$base_url = 'http://website.com'
to:
$base_url = 'http://www.website.com'
Comment #13
twooten commentedThank you, thank you, thank you!
Comment #14
crifi commentedThis problem is caused by a wrong configuration of $base_url and should be prevented by inserting a warning message to the requirements system. Therefore I created a new issue and this is now a duplicate of #1046682: Install/Update process fails if $base_url is set to a wrong URL. Please reopen if I'm wrong. Thanks!
Comment #15
holeepassion commented#12 works for me after trying others ...
cheers