Unsure if it's a bug? October 29, 2018, 03:05:44 pm And unsure how to troubleshoot or reliably replicate it. 1.1.5 install. If there are any attachment errors, post data is lost. Yes, an error message is provided (example file stat something or other). Also yes, a draft is saved, but that isn't obvious to an average user. It would be desirable for post text to succeed regardless of attachment errors. Users may always edit to attempt attachment issue correction. It would be instinctive in the event of an attachment failure. Anyway, does anyone have troubleshooting suggestions? Thanks!
Re: Unsure if it's a bug? Reply #1 – October 30, 2018, 05:07:19 am hmm... can you post a screen of the error please?
Re: Unsure if it's a bug? Reply #2 – October 30, 2018, 07:30:21 am Quote from: emanuele – October 30, 2018, 05:07:19 amhmm... can you post a screen of the error please? Be glad to, if I can catch it in the act again. Oh, the filesize error displays filepath info as well. Not sure that's a good thing either if normal users can see it.
Re: Unsure if it's a bug? Reply #3 – November 04, 2018, 07:03:51 pm Here is the error:filesize(): stat failed for /var/www/web.......
Re: Unsure if it's a bug? Reply #4 – November 05, 2018, 06:33:25 am I thought I mentioned this in another post where the fix was missed? Or is it another bug?
Re: Unsure if it's a bug? Reply #5 – November 05, 2018, 07:06:21 am Quote from: ahrasis – November 05, 2018, 06:33:25 amI thought I mentioned this in another post where the fix was missed? Or is it another bug? Good question. I recall something similar. All Elk code is current. Error aside, it isn't desirable losing post text in the event of an attachment error.
Re: Unsure if it's a bug? Reply #6 – November 05, 2018, 07:17:52 am Nope. Not mind but @radu81 did report this (relating to file based caching?) at: https://www.elkarte.net/community/index.php?topic=5204.0
Re: Unsure if it's a bug? Reply #7 – November 05, 2018, 08:20:11 am Hhmm....in full disclosure, the setup uses php 7.3 (though it occurs when falling back to 7.0), opcache, apcu, nginx 1.15.5, mariadb 10.3.10
Re: Unsure if it's a bug? Reply #8 – November 05, 2018, 10:43:22 am Could you get a copy of the file that the user is trying to upload (the one that causes the attachment error)The filesize() error just means its trying to get the size of a file that, for one reason or another, did not "make it" to the server. You also use the attachment image resize addon? So that could be in play here as well.
Re: Unsure if it's a bug? Reply #9 – November 05, 2018, 01:25:27 pm Quote from: Spuds – November 05, 2018, 10:43:22 amCould you get a copy of the file that the user is trying to upload (the one that causes the attachment error)The filesize() error just means its trying to get the size of a file that, for one reason or another, did not "make it" to the server. You also use the attachment image resize addon? So that could be in play here as well. It's happened to me. Sometimes the second attempt is successful. Yes, I use the resize addon.
Re: Unsure if it's a bug? Reply #10 – September 17, 2019, 09:08:52 pm I'm still experiencing this issue. It's unfortunate there isn't more information to report, yet. It simply seems to occur at random. The same image may fail a couple or three times, then inexplicably decide to work. Ideas? What needs to be checked?
Re: Unsure if it's a bug? Reply #11 – September 19, 2019, 09:00:24 pm I keep checking on this as I really think it has something to do with the attachment resize addon .... I just have not come across the right set of conditions ... but it really has to be something in that addon (and why I just want to make it part of the core in 2.0 since it has to kind of "hot wire" the attachment code to work right now.
Re: Unsure if it's a bug? Reply #12 – September 24, 2019, 11:20:53 pm Quote from: Spuds – September 19, 2019, 09:00:24 pmI keep checking on this as I really think it has something to do with the attachment resize addon .... I just have not come across the right set of conditions ... but it really has to be something in that addon (and why I just want to make it part of the core in 2.0 since it has to kind of "hot wire" the attachment code to work right now. Seems you're right! I finally caught this specimen in the error log:File: /home/www/web3/web/sources/subs/Air_Resize.subs.phpLine: 371
Re: Unsure if it's a bug? Reply #14 – October 18, 2019, 11:48:57 am Quote from: Spuds – September 25, 2019, 11:14:31 amSomething to look at, thanks! Due to the sporadic nature of the error, this isn't 100% proven. Anecdotal observation suggests this happens when using the inline image functionality in conjunction with image resizing mod. Just to include more possible troubleshooting info.