We are hosting with Pantheon, who only allows writing files to the public:// or private:// filesystem, not to the rest of the site files. There are a number of other hosts that work like this also, so it's not specific just to Pantheon I don't think.
The module is setting the JSON destination path to $response['data']['info']['site_name'] . "." . "json"
, but file_unmanaged_save_data's documentation says "This must be a stream wrapper URI."
Would it be possible to prefix that filename with `public://` in the module to allow it to support environments that only allow writing to the files directory? I tested it locally and it works fine, I will submit a patch momentarily.
Comment | File | Size | Author |
---|---|---|---|
#3 | d8_migration_check-public_stream_wrapper-3053274-3.patch | 594 bytes | bmcclure |
Comments
Comment #2
bmcclure CreditAttribution: bmcclure as a volunteer and at Top Floor commentedPerhaps private:// would be a better place, but I think either option would be better than not specifying a stream wrapper.
Comment #3
bmcclure CreditAttribution: bmcclure as a volunteer and at Top Floor commentedHere's the mentioned patch I'm using on Pantheon currently.
Comment #5
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs commented