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've the following error:
The download destination only works when accessed through a http client.
when I'm trying to download db backup via Chrome using freshly installed module on clean installation of Drupal.
Code:
public function checkWritable() {
// Check that we're running as a web process via a browser.
// @TODO: we could check if the 'HTTP_ACCEPT' header contains the right mime but that is probably overkill.
if (!isset($_SERVER['SERVER_ADDR'])) {
throw new DestinationNotWritableException(
"The download destination only works when accessed through a http client."
);
}
}
Probably, because I'm using PHP builtin server via: php -S localhost:8888
, so my SERVER_ADDR isn't defined, but SERVER_NAME is.
$_SERVER["SERVER_NAME"] = localhost
Comments
Comment #2
kenorb CreditAttribution: kenorb commentedComment #3
couturier CreditAttribution: couturier as a volunteer commentedA lot of bugs have been fixed with the new 8.x-4.x-alpha2 release on April 4, 2017, more than a year and several releases after you reported this issue. Are you able to confirm that this issue still exists after upgrading to the latest version?
Comment #4
couturier CreditAttribution: couturier as a volunteer commentedSetting to Postponed (maintainer needs more info) since the issue hasn't been confirmed to still exist with more recent releases of Drupal 8 and Backup and Migrate.
Comment #5
couturier CreditAttribution: couturier as a volunteer commented