• Resolved mcintoshowen2021

    (@mcintoshowen2021)


    every time I edit a product from my woocommorece and update the charges, then try to navigate to another product I keep getting a popup, saying ” leave site? changes you made may not be saved. this happens with every browser I use, and start happen since the last WordPress update.

    I never had this problem 2-3 days ago. I believe starts happening when the last WordPress update

Viewing 15 replies - 1 through 15 (of 21 total)
  • Also same issue

    Same issue!

    Same issue!

    Paul

    (@paulschiretz)

    Same here.

    Experiencing the same problem.

    CHROME last version + WIN10 => same issue!
    CHROME last version + WIN7 => no problem

    Still no response!?

    Please @woocommerce Support answer us :/

    Hi @mcintoshowen2021 ,

    > every time I edit a product from my woocommorece and update the charges, then try to navigate to another product I keep getting a popup, saying ” leave site? changes you made may not be saved. this happens with every browser I use, and start happen since the last WordPress update.

    I tested and do not see this issue on my test site.

    For further investigation, can you try to replicate this on a staging site?
    You can clone your site to a staging environment and perform tests without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.
    https://www.ads-software.com/plugins/wp-staging/

    If it happens on the staging site too, please run a conflict test to rule out plugin or theme conflict.

    You can read more about it here:
    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    I’m having the same issue. It’s slowing me down.

    Is there a code snippet to disable this message? It’s obviously a problem many people are experiencing.

    Plugin Support Aashik P – a11n

    (@aashik)

    Hi there!

    Thank you for all the reports. This is currently a known issue that needs a fix in core WordPress.

    You can track the progress using the link @nvr21 shared here: https://core.trac.www.ads-software.com/ticket/52038

    Solve : Just disable YITH WooCommerce Zoom Magnifier plugin

    This is certainly a bug and persists on all 3 of my sites running wordpress 5.6
    Would anyone be able to guide me how to apply the patch fix by Azzaoz on that seems to be an effective workaround ? How would I call this script in my child theme ?

    https://core.trac.www.ads-software.com/changeset/49807

    Index: src/js/_enqueues/admin/post.js
    ===================================================================
    --- src/js/_enqueues/admin/post.js (revision 49801)
    +++ src/js/_enqueues/admin/post.js (working copy)
    @@ -488,12 +488,20 @@
              * When the user is trying to load another page, or reloads current page
              * show a confirmation dialog when there are unsaved changes.
              */
    -        $(window).on( 'beforeunload.edit-post', function() {
    -                var editor = typeof tinymce !== 'undefined' && tinymce.get('content');
    +        $( window ).on( 'beforeunload.edit-post', function( event ) {
    +                var editor  = window.tinymce && window.tinymce.get( 'content' );
    +                var changed = false;
     
    -                if ( ( editor && ! editor.isHidden() && editor.isDirty() ) ||
    -                        ( wp.autosave && wp.autosave.server.postChanged() ) ) {
    +                if ( wp.autosave ) {
    +                        changed = wp.autosave.server.postChanged();
    +                } else if ( editor ) {
    +                        changed = ( ! editor.isHidden() && editor.isDirty() );
    +                }
     
    +                if ( changed ) {
    +                        event.preventDefault();
    +                        // The return string is needed for browser compat.
    +                        // See https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event.
                             return __( 'The changes you made will be lost if you navigate away from this page.' );
                     }
             }).on( 'unload.edit-post', function( event ) {
    glazergallery

    (@glazergallery)

    I posted this issue on Jan. 25th, too.

    @m155y5 replied and said: This is an issue that was reported here (https://github.com/woocommerce/woocommerce/issues/28557). It is a WordPress Core issue. You can follow it here: https://core.trac.www.ads-software.com/ticket/52038. The fix is planned to be released in WordPress 5.6.1.

    However, I have updated to WordPress 5.6.1 and the issue is still occurring.

    redkite

    (@redkite)

    Same issue here.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘leave site? changes you made may not be saved.’ is closed to new replies.