When using devel_generate to generate files, I am getting an error that property $fid is not defined in file_info. _file_devel_generate is creating a file in temporary then moving it to public, but public already had a file with that name it and it's bugging out cause $source->fid is not set and file_delete is happening cause the file already existed in the files table. Since drupal_tempname is being called for temporary directory, course it doesn't mean that file doesn't exist for public as far as I can tell!

Notice: Undefined property: stdClass::$fid in file_usage_list() (line 645 of html/includes/file.inc).
EntityMalformedException: Missing bundle property on entity of type file. in entity_extract_ids() (line 7697 of html/includes/common.inc).

Is the exact error

CommentFileSizeAuthor
#1 2176051-devel_generate-tempname-1.patch810 byteshefox
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hefox’s picture

Status: Active » Needs review
FileSize
810 bytes
willzyx’s picture

Status: Needs review » Closed (won't fix)

Closing for lack of activity. Feel free to reopen if the issue still exists