Drupal Core Version: 7.37

Symptoms: when language is toggled on a page which has a translation a temp directory error is thrown (in French in my case). The resulting page does render correctly but a notice-level message is shown (even with show all errors turned off):

"Le fichier spécifié temporary://file7kdLzY n'a pas pu être copié car le répertoire de destination n'est pas correctement configuré. Cela peut être dû à un problème de permissions sur le fichier ou le répertoire. Plus d'informations sont disponibles dans la journalisation du système."

- Effectively this is saying "there was a problem copying the temp file to its destination.

In the database log, there are two entries associated with this error, that reveals the likely cause:

1: "An error occurred during creation of the JavaScript translation file for the language Français."
2: "File temporary://fileArpqwM could not be copied, because the destination directory public://languages is not configured correctly."

I have a directory: /sites/all/languages which I created and assigned open/public permissions to.

It seems that I am missing something in my setup/configuration?

(see attached screenshots for specific messages/log entries)

CommentFileSizeAuthor
ErrorLog2.png56.66 KBclaudio_s
ErrorLog1.png63.38 KBclaudio_s
NoticeMessage.png91.82 KBclaudio_s

Comments

claudio_s’s picture

Issue summary: View changes
claudio_s’s picture

This error was corrected by creating a "translations" directory within sites/default/files and setting permissions to allow the server to read/write. I had either missed this in my installation and config of the locale/multilingual modules or the instructions were unclear.

I located other instructions which incorrectly described creating the "translations" folder under sites/all .

claudio_s’s picture

Status: Active » Closed (works as designed)