Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While using node_save inside an install profile the files don't get put in the specified path.
Can anyone confirm this behaviour?
Does this have something to do with there being no active user? what other conditions are not present during an install profile's *.install file.
I have failed to determine a cause and have instead hacked a manual move and wrapped a custom node_save to make this work. Any help or thoughts are appreciated. Thanks.
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedCan you give me an example install profile so that I can test?
I'm guessing it's a timing issue, that at the time of node_save() in the install profile the File (Field) Paths module is not yet active.
Comment #2
neRok CreditAttribution: neRok commentedNo more info provided, so closing the issue.