See attached image to see how these errors are hammering my watchdog logs on every cron run.
These are the descriptions of each of the errors I'm getting:
Warning: fopen(translations://i18n-7.x-1.13.es.po): failed to open stream: "TranslationsStreamWrapper::stream_open" call failed in PoStreamReader->open() (line 162 of /.../profiles/l10n_install/modules/l10n_update/includes/gettext/PoStreamReader.php).
Warning: ftell() expects parameter 1 to be resource, boolean given in PoStreamReader->open() (line 163 of /.../profiles/l10n_install/modules/l10n_update/includes/gettext/PoStreamReader.php).
Warning: fgets() expects parameter 1 to be resource, boolean given in PoStreamReader->readLine() (line 257 of /.../profiles/l10n_install/modules/l10n_update/includes/gettext/PoStreamReader.php).
I have tried applying this patch but id did nothing to resolve the issue:
https://www.drupal.org/files/issues/l10n_update-unable-to-download-trans...
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2015-07-07 at 9.27.52 am.png | 238.32 KB | jaydee1818 |
Comments
Comment #1
thePanz CreditAttribution: thePanz at Liip for FREITAG lab. AG commentedI got the same issues when I manually deleted the downloaded .po files between the "translation update check" and the "translation update install". I guess the module is keeping a list of available (and already downloaded translations) and the errors are raised when such files 'disappears'.
Could you try to re-run the "translation update" check?
Cheers
Comment #2
Sutharsan CreditAttribution: Sutharsan as a volunteer commentedYou should not removed files after downloading and before importing their content.
Comment #3
techypaul CreditAttribution: techypaul commentedI am also getting this. I've not deleted anything. What else can cause this to occur?
Thanks,
Paul.
Comment #4
danyg CreditAttribution: danyg commented@techypaul: Maybe you should set the directory of translations at /admin/config/regional/language/update.
You need 2 writable directory: temporary directory (eg. sites/default/temporary) and a translations directory.
Comment #5
AnybodyFunny, I just ran into the same issue in Drupal 9. For me it was a folder permission issue for the translation folder configured at /admin/config/media/file-system
The site was moved to a different server and the permissions were wrong.