sbrl / Pepperminty-Wiki

A wiki in a box
https://peppermint.mooncarrot.space/
Mozilla Public License 2.0
181 stars 22 forks source link

File uploading is broken! #100

Closed sbrl closed 8 years ago

sbrl commented 8 years ago

It looks like the settings reworking broke file uploads!

<br />
<b>Fatal error</b>:  Uncaught Error: Cannot use object of type stdClass as array in /srv/wikitle/www/index.php:2808
Stack trace:
#0 /srv/wikitle/www/index.php(5427): {closure}()
#1 {main}
  thrown in <b>/srv/wikitle/www/index.php</b> on line <b>2808</b><br />
sbrl commented 8 years ago

I've fixed that first issue with the mime mapping overrides, but there's apparently a second issue in the logic that checks to make sure that the Files directory is created. Apparently it didn't support $env->storage_prefix..... That really should have been detected earlier! I should upgrade my testing environment...!