Advertisement:

Author Topic: Is it possible to work around "confirm-form-resubmission"?  (Read 671 times)

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 310
  • currently reading; '$smcFunc'
Is it possible to work around "confirm-form-resubmission"?
« on: January 03, 2018, 02:43:12 PM »
While it might not be directly Simple Machines related, I once in a while as a user of my own forum, get this message:



This does annoy me "a little" and I wonder if other people recognize this with their forum. Is it possible to make stop a browser complain with something that resembles a white screen of death (while I can get the technical explanation I assume that atleast part of my forum users don't bother to read the message), my question, is there something I can do about this browser behaviour?
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,619
    • StoryBB/StoryBB on GitHub
Re: Is it possible to work around "confirm-form-resubmission"?
« Reply #1 on: January 03, 2018, 03:52:27 PM »
It's not the software doing it - it's your browser.

You pressed a button that saved something and then pressed refresh (either on the browser menu or pressed F5 on your keyboard) - the browser is checking to make sure you really did want to send the data again. This is the same mechanism that browsers use to try to prevent people doing things like buying something twice by accident.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 310
  • currently reading; '$smcFunc'
Re: Is it possible to work around "confirm-form-resubmission"?
« Reply #2 on: January 03, 2018, 04:47:09 PM »
I can understand that this is an important mechanism, when people buy things twice (and the webshop makers maybe didn't think about that).

I also learned that Simple Machines as far as I know, always doesn't drop contents of a post which is more important. Albeit there are just a few annoyances I have, whith both browsers, they do respond with the same, to me disappointing behaviour (what might show me why that is so next time).

Maybe I'll post another one (while I probably might understand when this comes by, it is the same or a similar "technological" barrier), if the Site Admins will allow me. There is just something jerky with my forum (in the chain: hosting provider, used software, my htaccess) I am after, because that had been introduced by something that still is unknown to me and that really annoys me.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,619
    • StoryBB/StoryBB on GitHub
Re: Is it possible to work around "confirm-form-resubmission"?
« Reply #3 on: January 03, 2018, 04:57:20 PM »
Well, let's do the really obvious step: what, exactly, step by step, did you do before getting that screen?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 310
  • currently reading; '$smcFunc'
Re: Is it possible to work around "confirm-form-resubmission"?
« Reply #4 on: January 03, 2018, 05:54:46 PM »
Heh, Arantor, that does make me remember my previous issue I had with Maria-db, which has been minimized now. And also this time, I have no straight answer, but I will post here, instead of opening a new topic, when I have found  a proper way of describing, that is better then it annoys me and I feel that my browser is spoiling my user experience I have with my forum, minus, this "user has used the back button" subject I better understand now, and added with that, hearsay I have received from my users, that don't complain often, but it had to do with their user experience.

On the other hand, I did suffer a users logs in to the forum, expecting to be beamed to the requested topic or feature and being redirected to /. There is no real error I can copy and paste, nor a white screen of death. The core login gave me this issue and it took me a while to find out that it was a template related <input type="hidden" name="eb3306faf942" value="096ac857c017ad79fbdabe6a3d75a7e4"> (mainly because users have two options of logging in), later on I read several topics in this community about this, but I didn't ask inhere and say there where no topics about this subject, while I can not be 100% sure,  but I learned a lot about index.template.php and did comment out Sources/Security.php line 651 and a few lines more, while I should have been comparing my custom index.template.php with index.template.php in default.

I should go to Simple Machines 2.1, while I saw live fora on the internet doing this, while the database I am responsible for, contains technical details about cars and schematics, which the users will really miss if that gets lost. Also, I seem to be out of error messages since I also didn't kept putting modifications on it, I just know my user experience with this forum-community is a bit better then with my forum and it doesn't seem to me, to be a different hosting-setup.  Besides this browser notifications my forum is running sweet on a computer. The reason I consider Simple Machines 2.1 is that my telephone experience isn't 100 percent, (android), while an Iphone 5S (which I don't own) seem to do it. If I could be sure my database will go back to 2.0 while being upgraded to 2.1, I would already be with Simple Machines 2.1. I am aware my post is a bit hairy, but this is where I am with my forum and I follow the advice to not upgrade to beta, that might leave me without support and that I can not sell to my users. Lastly I want to say that this user experience I am having with two browsers is hard to explain but it really is different from that core login issue I now can laugh about and that I noticed what the last update (2.0.15), has been fixing, which really is showing competence in the field of php and what more.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,619
    • StoryBB/StoryBB on GitHub
Re: Is it possible to work around "confirm-form-resubmission"?
« Reply #5 on: January 03, 2018, 05:58:14 PM »
Quote
but I learned a lot about index.template.php and did comment out Sources/Security.php line 651 and a few lines more, while I should have been comparing my custom index.template.php with index.template.php in default.

The lines are there for a reason. If you don't understand the reason, ask. You have probably made things insecure.

Quote
I just know my user experience with this forum-community is a bit better then with my forum and it doesn't seem to me, to be a different hosting-setup

This forum is running a mostly unmodified SMF 2.0, though on a much larger server than you will be using.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 310
  • currently reading; '$smcFunc'
Re: Is it possible to work around "confirm-form-resubmission"?
« Reply #6 on: March 10, 2018, 09:57:36 AM »
You are right, I did forget to mention that I found out backwards that it was my SMF 2.0.14 index.template.php lacking
Code: [Select]
<input type="hidden"name="hash_passwrd"because I noticed the core login wasn't working properly. Then I rebuilt my custom index.template.php from the default theme's index.template.php, found this code difference and then I read about topics on this forum. Not the smartest way but I learned a lot about index.template.php.

On topic: It might be my isp that has been changing things, they went from regular php to FastCGI, borked my forum, repaired that. Then they went to Apache Litespeed, borked my forum, repaired that. Now I am aware that doesn't have something to do with the core login that I found out the long but self educating way, but I think I can put my finger on the 'sudden' white screens now, when they are shown by the browser, are related to user decision (mis-clicking), not 'strange things'.

So my way of finding out what was going on with the core login and my isp taking a route from regular php to FastCGI to Litespeed, I probably wrote some confusing messages. But at the moment I have no complaints about how my forum is running and of course I uncommented what I had been commenting in Security.php, I did understand I wasn't repairing but did a not recommended way of self-help, (removing conflicting code isn't a good idea I understand) so this is solved.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,453
  • Gender: Male
    • Macedonian electronics forum
Re: Is it possible to work around "confirm-form-resubmission"?
« Reply #7 on: March 10, 2018, 12:57:46 PM »
... it annoys me and I feel that my browser is spoiling my user experience I have with my forum ...

Try Pale Moon ;). Used it for ages, never looked back ;).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 17,576
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: Is it possible to work around "confirm-form-resubmission"?
« Reply #8 on: March 11, 2018, 01:48:55 AM »
So my way of finding out what was going on with the core login and my isp taking a route from regular php to FastCGI to Litespeed, I probably wrote some confusing messages. But at the moment I have no complaints about how my forum is running and of course I uncommented what I had been commenting in Security.php, I did understand I wasn't repairing but did a not recommended way of self-help, (removing conflicting code isn't a good idea I understand) so this is solved.
Marking this one solved then :)
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline richardwbb

  • Jr. Member
  • **
  • Posts: 310
  • currently reading; '$smcFunc'
Re: Is it possible to work around "confirm-form-resubmission"?
« Reply #9 on: April 01, 2018, 02:17:32 PM »
Try Pale Moon ;). Used it for ages, never looked back ;).

Maybe I will. Now I'm having flashing images and javascript based stuff, but Firefox and Chrome don't seem to behave in the same way.

Marking this one solved then :)

Yes, even the Site Admin 'extra login', is working again (though erratically), maybe it all has to do with my hosters configuration and not with SMF or one of it's modifications. Now I can tell the least that the issues I'm having are client based and not server based, so another browser won't hurt probably.
If my post in this topic looks ambiguous to you, then I'm with Murphy's law and General Stupidity. In other words, trial and error.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 17,576
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: Is it possible to work around "confirm-form-resubmission"?
« Reply #10 on: April 01, 2018, 02:38:42 PM »
Yes, even the Site Admin 'extra login', is working again (though erratically), maybe it all has to do with my hosters configuration and not with SMF or one of it's modifications. Now I can tell the least that the issues I'm having are client based and not server based, so another browser won't hurt probably.
What issues are you having with the admin login? We can still mark this unsolved if there is something we need to work on.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas