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.
Problem
If the tmgmt_file folder exists, but it is not writable, the export will fail. The reason is that the file translator, when requesting the translation and calling file_prepare_directory()
does not try to make the folder writable if it finds already one.
Proposed solution
Add the FILE_MODIFY_PERMISSIONS
flag to the file_prepare_directory()
call.
Comment | File | Size | Author |
---|---|---|---|
#4 | tmgmt_file_writable_2860782_3.patch | 881 bytes | vasi1186 |
#2 | tmgmt_file_writable_2860782_2.patch | 876 bytes | vasi1186 |
Comments
Comment #2
vasi1186 CreditAttribution: vasi1186 at Amazee Labs commentedI attached a patch that should fix the issue. Should we maybe also show a message in case this operation fails? At the moment you will not see any message on the screen. You will just be redirected to the job form without knowing what happened.
Comment #4
vasi1186 CreditAttribution: vasi1186 at Amazee Labs commentedTrying another patch.
Comment #6
vasi1186 CreditAttribution: vasi1186 at Amazee Labs commentedIt would be quite strange if the failed tests are generated by this patch...