Closed allanaaa closed 1 year ago
Oh, this is because I updated the module and now it can't find the directory I gave it earlier. Maybe this just needs better error-reporting, like when the module is updated and/or activated it should go right back to the config page and show the directory error there.
Just to rule things out: you have the sideload directory configured to something that exists or no?
I see as I'm writing this that it's that. Minimally some better error reporting of the "can't find the directory" case is probably in order.
There's no reason per se that updating or activating would mess with the folder... I assume the issue here is that you put your sideload files folder within the sideload module folder and you lost it when replacing the folder during the upgrade? We may also just want to document that you might not want to do that for this reason.
I've re-created the directory now, without doing anything on the config page, and now I'm getting:
Maybe the error message can just display here instead of breaking the whole item editing system.
There's no reason per se that updating or activating would mess with the folder... I assume the issue here is that you put your sideload files folder within the sideload module folder and you lost it when replacing the folder during the upgrade? We may also just want to document that you might not want to do that for this reason.
Yeah, that's a fair point! I think our documentation expressly says to do that right now. I still vote for better error messages.
Yeah, a missing directory should not be breaking everything for sure.
I assume the issue here is that there's a check to make sure you don't set it wrong to begin with, so people just haven't seen as much the case where the folder gets deleted out from underneath a once-good setting.
When you set it in the config page, it will refresh the config page with an error message there. So yeah, that's taken care of.
When File Sideload is activated, clicking on "Edit item" gets me: