Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get an AJAX error whenever I try to install a module or update modules (uses authorize.php):
An AJAX HTTP request terminated abnormally. Debugging information follows. Path: https://www.mydomain.com/authorize.php?batch=1&id=83&op=do StatusText: ResponseText: ReadyState: 4
The URL in the browser is http (the error says https). However, when I manually change the URL to https, it then works fine.
I've added authorize.php to the list of pages to secure, but it still doesn't work.
I also have "Switch back" enabled.
Comments
Comment #1
MrPeanut CreditAttribution: MrPeanut commentedFWIW, I use Webfaction as my host and they told me this:
And provided this link: Apache conf http and https
Comment #2
grendzy CreditAttribution: grendzy commentedI tested and also had problems using the update manager, although I got a different error ("No active batch.").
Regarding the information you got from Webfaction about the nginx proxy, you will need to adjust settings.php. Drupal's bootstrap process relies on the variable $_SERVER['HTTPS'].
A lengthy explanation is here: http://www.metaltoad.com/blog/running-drupal-secure-pages-behind-proxy
Comment #3
MrPeanut CreditAttribution: MrPeanut commentedThanks, grendzy, for looking into the update manager.
I will adjust settings.php to match the Modify $_SERVER directly section from the webpage you provided (appears to be the same code you posted).
Out of curiosity, the site with SSL still works (and, as far as I could tell, it switches back and forth just like it's supposed to), so that would initially lead me to believe that I don't have to adjust my settings.php (I will anyway, but that would make me think I don't have to).
The site does take a long time to connect. Could this possibly be the reason? Maybe that's why I have to adjust settings.php. Thanks again!
Comment #4
grendzy CreditAttribution: grendzy commentedThe settings.php question is puzzling, perhaps $_SERVER['HTTPS'] was already being set on your account. In any case the update manager not working is a significant problem!
Comment #5
MrPeanut CreditAttribution: MrPeanut commentedI adjusted settings.php to include:
I am now also getting "No active batch." The site still seems to be incredibly slow to connect, but I think that's a separate issue. Thanks for the help with the settings.php!
Comment #6
greenwork CreditAttribution: greenwork commentedI actually have had to move away from updating online because of the no active batch. If anyone has any suggestions to fix that I would appreciate it. Now I am manually uploading and upacking then preforming the updates. Solves the update problem. Would be nice to have a one button click.
Comment #7
ksavoie CreditAttribution: ksavoie commentedI can third this issue (with beta1). With this module in place I can no longer update modules.
Comment #8
bcobin CreditAttribution: bcobin commentedI've also given up here - there's generally no problem using Drush to update, but many users don't use Drush. Still a major issue, IMO.
Comment #9
greenwork CreditAttribution: greenwork commentedI am having to download manually. Ive done all the tweaking I can but still pushes to HTTPS even when on ignore.
Comment #10
nairb CreditAttribution: nairb commentedI added *batch* to the Ignore Pages list and update works again.