I keep getting a permissions error when I try to import a CSV document.

Report log: Feeds reported errors, visit the Feeds log for details.
File temporary://filewlBBPa could not be copied, because the destination directory
public://okimagespublic://okimages is not configured correctly.

It appears the import is doubling the public path on import. I've tried several things:

  • Updating the File System to the tmp folder instead of /tmp
  • Created a new tmp2 folder
  • Changed permissions on folders leading up to path these images are located in

Nothing seems to work. Does anyone have any ideas?

Comments

twistor’s picture

Status: Active » Postponed (maintainer needs more info)

Can you give more information about your exact setup?

krazykellie’s picture

What all do you need?

rpmskret’s picture

Hi. I have a very similar bug.
error: .. file temporary://filE2B6.tmp could not be copied .. a problem with file or directory permissions ..
At first I worked changing the tmp file location and checked that perms were all granted(windows 7).
My set-up: xampp test site ; windows 7; feeds commerce_feeds feeds_tamper_ui feeds_tamper feeds_ui
Everything worked fine about a year ago. Now after updates all around these errors and no importing possible.
Reversion to alpha3: An AJAX HTTP error occurred. HTTP Result Code: 500 ..
Reversion to alpha4: success. No problems so far.
Sorry but I missed copying the error details the log did have for the alpha5 case.

If it would help let me know and I'll make time and update again to alpha5 to catch the details.

This is really make or break for commerce for me as feeds is the one and only truly developed solution to practical real world adding products for a viable drupal commerce site.

Q?. Is it at all likely that the latest dev version, currently: packaged version: 7.x-2.0-alpha5+43-dev, updated: August 24, 2012 - 17:22
may have this trouble fixed?

Thank you for a fine module, twistor & febbraro et. al.!

rpmskret’s picture

I have a fast mercifully easy solution for my case: Remove the custom directory setting for drupal commerce images.
That did work well for feeds version alpha4 but not for alpha5.
I found that all the uploaded images made it to the "tmp" directory. But they could not be copied from there.
Now no errors.

Public files: /sites/default/files # works
Commerce custom directory: /sites/default/files/commerce # the folder name is custom. Does not work.

Drupal commerce custom image directory setting done here: http://feeds.loc/admin/commerce/products/types/product/fields/field_image
DO NOT SET THIS CUSTOM FIELD ..

File directory : "Optional subdirectory within the upload destination where files will be stored. Do not include preceding or trailing slashes. This field supports tokens."

Apparently my case is more of a commerce issue. So I will post there.
UPDATED .. I mean more of a commerce_feeds issue. I have now posted for that at http://drupal.org/node/1766196.

rpmskret’s picture

I believe I have found the problem for both myself and for the case of krazykellie.

File: ~modules/feeds/plugins/FeedsParser.inc
Function: public function getFile($destination) {, at Line #353 ..

    public function getFile($destination) {
              $destination .= trim($destination, '/') . '/';

Change from $destination .= trim($destination, '/') . '/'; to $destination = trim($destination, '/') . '/';

I do not know how to go about reporting or participating beyond posting here in fixing the official module code.

supakitk’s picture

Just want to confirm that solution suggest by romanse fixed my problem as well.

twistor’s picture

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

I believe this has been mentioned and fixed in #1612246: Invalid enclosure on image import due to code error.

twistor’s picture

dupe