In includes/file.inc @835 there is a token mismatch, either one of %directory or %destination should be corrected.

    $dirname = drupal_dirname($destination);
    if (!file_prepare_directory($dirname)) {
      // The destination is not valid.
      watchdog('file', 'File %file could not be copied, because the destination directory %directory is not configured correctly.', array('%file' => $original_source, '%destination' => drupal_realpath($dirname)));

Comments

dave reid’s picture

Version: 7.0-alpha7 » 8.x-dev
Status: Active » Needs review
StatusFileSize
new985 bytes

Please review the following patch.

dave reid’s picture

Title: Token mismatch » Error string in file_unmanaged_copy() does not match its t() variables
lambic’s picture

Status: Needs review » Reviewed & tested by the community
dries’s picture

dries’s picture

I've asked for a re-test as the patch no longer appears to apply on my local copy of either 7.x or 8.x. Let's see what the test bot has to say.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 921484-file-unmanged-copy-error-translation-var.patch, failed testing.

lambic’s picture

Looks like this has been fixed in another patch.

mahfiaz’s picture

Version: 8.x-dev » 7.8
Status: Needs work » Closed (fixed)

lambic, you are right, this is fixed elsewhere and already present in d7.8