Skip to main content
Topic: Unsure if it's a bug? (Read 908 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Unsure if it's a bug?

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
hmm... can you post a screen of the error please?
Bugs creator.
Features destroyer.
Template killer.

Re: Unsure if it's a bug?

Reply #2
hmm... 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
Here is the error:

filesize(): stat failed for /var/www/web.....
..

Re: Unsure if it's a bug?

Reply #4
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
I 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 #7
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
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.
Squish squish. squish, squish, squish.
Find a bug,
Make a wish.

Re: Unsure if it's a bug?

Reply #9
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.
 
 It's happened to me. Sometimes the second attempt is successful. Yes, I use the resize addon.