Last post by nous -
There was an unscheduled poweroff of our forum-hosting VPS yesterday. On reboot, we can't upload attachments anymore:
Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow. Please consult your server administrator for more information.
The administration center attachment settings don't show anything unusual.
This isn't the first time we had problems with attachments, but it usually involved out-of-space situations were the Elkarte database couldn't be updated. We had to restore from backups every time for attachments and avatars to show up again, but I'd rather avoid it this time. IIRC, changing the attachments directory and moving the *.elk files from the shell into the new one would restore at least some of them, but then we'd end up with additional attachment directories in settings which couldn't be removed, unless with direct SQL commands which most usually corrupted something else in the database.
This time I haven't touched anything, for forensics purposes. I can post any additional requested information to help debugging, including SQL commands. Thanks in advance.
Last post by Jorin -
No, sorry, doesn't fix any of the problems.
But I can use the print as pdf feature of the chrome browser to save the threads. Does look different then but works. And you don't have to invest more time to fix this.
That one is what the error claims. An attachment is saved with a JPG extension and for some reason the db also has the mime set as image/jpg, but the image is in fact a PNG.
Here is another updated file which validates the image mime types, this will fix the first error and MAY fix the other one (my thought is that the other error is another PNG masquerading as a JPG which will bypass the de-interlacing function)