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.
So I have the same problem on localhost as mentioned in this issue: #1134232: Failed download .po.
Unable to download and save http://ftp.drupal.org/files/translations/7.x/drupal/drupal-7.0.ru.po file to /tmp/translation-i0213S.
But I'm sure it isn't permission problem. This error doesn't occur when I am downloading .ro files for contributed modules.
Drupal core .ro file cannot be loaded at once because it is too large.
Is there any way download this file by parts?
Comment | File | Size | Author |
---|---|---|---|
#1 | quickfix-1164564-1.patch | 714 bytes | Chi |
Comments
Comment #1
Chi CreditAttribution: Chi commentedThis patch seems to be working for me as well.
Comment #2
Gábor HojtsyWell, I think the timeout should be applied to the waiting time before the file is actually downloaded, not to the download itself, right? Not sure how this helps you download the file. Maybe your internet connection just got better?
Comment #3
Chi CreditAttribution: Chi commentedIn my case drupal_http_request returns request timed out error message. Download the file by wget takes 70 seconds. I think the problem is related to the routing my provider and ftp.drupal.org.
Сan we add an extra parameter in l10n-update drush command?
Comment #4
Gábor HojtsyHm, ok, I guess this would be a good change after all. Anybody else with similar problems to verify / test?
Comment #5
Sutharsan CreditAttribution: Sutharsan commentedHow does the request time out relate to PHP max execution time? Should it always be less or is PHP not counting execution time while waiting for HTTP response? Could we make the time a fixed x% of something? (I don't like unnecessary parameters/options)
Comment #6
Gábor HojtsyI think PHP only counts it own time in the timeout. It does not count in long running db queries either :)
Comment #7
Gábor HojtsyI think this looks like a safe thing to do. It will just take more time on hosts which do not have a connection to realize that fact. For sites with poor connections, it will be a bit more tolerant.
Comment #8
Sutharsan CreditAttribution: Sutharsan commentedCommitted. Thanks, and sorry for the delay.