WordPress.org

Ready to get started?Download WordPress

Forums

[closed] When will you replace "Are You Sure You Want To Do This?" (20 posts)

  1. rsettle2
    Member
    Posted 1 year ago #

    When editing a page, if too much time has passed perhaps, when I try to update, I get a blank page with "Are you sure you want to do this? Please try again." Whether I click "Please try again" or click the back button, I've lost all changes in the edit window. How about a pop-up window that doesn't prevent me from copying text in the edit window? Then I can copy my changes before losing the page.

    I try to remember to copy my changes before I update, but sometimes I forget. This has to be an easy change to make, I would think.

    It certainly would be a considerate thing to do.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    if too much time has passed perhaps

    How much time are we talking here?

  3. rsettle2
    Member
    Posted 1 year ago #

    It seems to be inactive time, I'm guessing maybe 10 minutes? Or there could be some other cause. But it would only make sense to have a pop-up window instead of taking the page away with a half hour or more of work in changes made. Sometimes it takes longer trying to remember the changes and re-write.

    This "Are you sure you want to do this" seems to have absolutely no function in this case. If the page is no longer current, please don't take it away so that we lose all the work. Give us a pop-up window that doesn't have to stay on top, so that we can copy the work before losing the page.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    It seems to be inactive time, I'm guessing maybe 10 minutes?

    It could be cookie expiration issue. Have you tried using another browser? Another computer?

  5. rsettle2
    Member
    Posted 1 year ago #

    I use firefox and its up to date. I don't know of any issues with cookies. I'll check to see if I have software that is deleting cookies. It doesn't happen all the time, but when it does and if I didn't copy the whole edit then I've lost it.

    If someone has a problem, why not help him out instead of eliminating the page in order to indicate a problem? Leave the page on his screen and let him refresh or go to the dashboard when he is ready.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    If someone has a problem, why not help him out instead of eliminating the page in order to indicate a problem?

    Because this isn't supposed to happen - at least not in the way that you;re experiencing it. Something is wrong somewhere in your install or set up but it might take a fair bit of investigating to get to the root cause.

    If you continue to have problems, let us know and we can try another possible troubleshooting route.

  7. "Are you sure you want to do this" is a security error, really. I've managed to create it in my plugins, and there's really no way you should get this day to day unless you have something that's eating cookies or nonces. Which means you should turn off all your plugins and so on to try to debug :/

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I've also managed to replicate this in a theme when crating a theme options page (which is a clever way of saying I borked my own theme). So it could also be a theme issue.

  9. rsettle2
    Member
    Posted 1 year ago #

    So don't do anything to help out, by making error notification something less than a trap door? It's their problem, and therefore of no concern. Yes, I may have a problem that can be fixed. The thoughtless form of error notification is a problem too, so easy to fix. But it's easier to say it's not our problem.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    It's not that we're trying to brush this off. what we're saying is that there may be a number of reasons as to why you're seeing this message and that it's going to take some troubleshooting through a process of elimination to track the root cause down. All we can say for sure at this point is that something is wrong in your install - we just don't know where yet. Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  11. rsettle2
    Member
    Posted 1 year ago #

    I give those a try, thanks. I understand the ideal is to find the source of the problem.

    Maybe it's too much to ask for a sensible error notification also?

  12. rsettle2
    Member
    Posted 1 year ago #

    I thought so. No practical approach here, just leave the trap door open. I haven't found the problem yet, and I need to get work done, and once again I lost work and time because of it. People will spend more time posting about my problem than it would take to change their problem (ahh, but it's my problem), to change the error notification to a pop-up window. Practicality, what the hell is that in techland?

  13. Maybe it's too much to ask for a sensible error notification also?

    The error is sensible given the fact that you can hit it about a hundred different ways. Perhaps a better one would be 'An error has occurred' but the verbiage of 'Are you sure...' gives the user a little more pause for "oh, did I do something really wrong?"

    And the answer to that is yes, you (in your case the person who wrote the code you're using) did do something wrong that needs fixing.

    Yes, it's vague, but that's probably because the error check isn't robust enough to trap every possible permutation of how you got there, and so it throws the generic.

    Practicality would be for you to narrow down what the problem actually is, and maybe we could come up with a way to trap THAT error better :) But right now it's too vague on all fronts.

  14. rsettle2
    Member
    Posted 12 months ago #

    You had a lot to say and entirely missed my simple suggestion. If you just convert your blank page with notification to a pop-up window that doesn't have to remain on top, you would not be needlessly removing the page on the screen.

  15. No, I read it, I just ignored it because it's currently impractical.

    Give us a pop-up window that doesn't have to stay on top, so that we can copy the work before losing the page.

    That depends entirely on if the developer who wrote the bad code did it 'right.'

    And even then I can't see it working for all situations. You click on a button to tell WP 'do this action.' WP runs whatever action, often submitting options and saving settings. WHERE it goes from that button could be anything.

    Also you're leaving out the possibility of people trying to do stupid things like hack attempts (XSS stuff, hitting URLs directly vs going through options and so on). Many of those get caught by this too.

    Simplier, more light weight, solution :)

    Real answer: Get the code fixed. It never should have hit the end user.

  16. rsettle2
    Member
    Posted 12 months ago #

    I'm traveling in Peru and not in a place where I can get good help with this. When I have time, I'll try the suggestions made earlier, if it won't upset the work I am trying to do here.

    A pop up window would certainly help in some situations, rather than giving a useless blank page for an error notification. And we're not talking about fixing every problem here. Just a notification that shouldn't require removing the page from the screen. How is that involved with hacking? [Leave your "maybe" provocative statements out until you're absolutely sure]

    After my first post, I had a strong feeling that this would be an exercise in beating my head against the wall. Interesting to see the reactions I get.

  17. Try pitching this to the wp-hackers list :) Request and Feedback this may be, but it's in the support forums, so you get a more support geared reply.

    If you want to to spend time crafting it, hey! Do it! That's the beauty of open source! We encourage this.

    And we're not talking about fixing every problem here. Just a notification that shouldn't require removing the page from the screen. How is that involved with hacking?

    Because we still have absolutely idea why you got that error this time :) So we can't 'fix' the actual problem...

  18. rsettle2
    Member
    Posted 12 months ago #

    Plug-in for a pop up window-- sounds great. . . maybe

  19. dj.cowan
    Member
    Posted 9 months ago #

    Can somebody please just tell us how to disable this inane functionality? It serves no practical purpose. If I stop editing a page to answer a phone call - and yes that does happen sometimes - surprisingly - wp goes and trashes all of the prior work with no way of restoring it.

  20. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    @dj.cowan: As per the Forum Welcome, please post your own topic. This topic is 2 months old.

Topic Closed

This topic has been closed to new replies.

About this Topic