I've installed 2.0-rc2 on my Drupal site, but I keep getting this error when trying to install translations.

File temporary://fileAVBFD could not be copied, because the destination directory translations:// is not configured correctly.

I don't really understand what's going on here. I haven't seen the translations:// stream wrapper before, and I have no idea where to configure it.

Additional errors:

Warning: fopen(translations://transliteration-7.x-3.2.de.po): failed to open stream: "TranslationsStreamWrapper::stream_open" call failed in PoStreamReader->open() (line 162 of /srv/www/sites/vkffz.ch/builds/v1.0.0-beta.7/profiles/vkffz/modules/l10n_update/includes/gettext/PoStreamReader.php).

Warning: ftell() expects parameter 1 to be resource, boolean given in PoStreamReader->open() (line 163 of /srv/www/sites/vkffz.ch/builds/v1.0.0-beta.7/profiles/vkffz/modules/l10n_update/includes/gettext/PoStreamReader.php).

Comments

mikl’s picture

Issue summary: View changes
keiichito’s picture

I'm having the same problem on a fresh Drupal 7.32 site

The specified file temporary://filenQaNzO could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log.

Sutharsan’s picture

  1. When does the error occur? Which steps to reproduce?
  2. Is this a new Drupal installation, has drupal been installed in the same place before?
  3. In case of an update, did you run update.php?
  4. What is the value of the "Translations directory" at URL admin/config/regional/language/update ?
  5. Do you get any errors when you click "Save configuration" on the above page?
  6. Can you still reproduce the error now?
Sutharsan’s picture

Status: Active » Postponed (maintainer needs more info)

Without you input I can not fix this issue (and wish I could).

THU_AtIE’s picture

I have the same errors, but finally solve the problem with the hints from Sutharsan.

The most probable reason is that you don't create the "/sites/all/translations" folder. You can follow these steps:

1. As Sutharsan said, check

What is the value of the "Translations directory" at URL admin/config/regional/language/update ?

2. Check whether you create this folder in your server. If you don't have it, please create it manually.

However, I think it's a little bit strange why the folder will not be created automatically?

Sutharsan’s picture

The module does attempt to create this directory. 1. During installation; 2. when the configuration form at admin/config/regional/language/update is submitted; 3. During update when updating from 7.x-1.x to 7.x-2.x.

Do you have any errors in the watchdog?
Which of the routes did you take?

Sutharsan’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

I've just further improved the code that creates the translation directory. See #2167585: Unable to download translation updates

Closing this issue as duplicate.