Support » Plugin: WP Store Locator » Connection lost. Saving has been disabled until you’re reconnected.

  • Hi, I’m frequently getting this error when using WPSL:

    “Connection lost. Saving has been disabled until you’re reconnected.”

    I have tried disabling all plugins and changed the theme in case of a conflict, but no luck. The admin runs painfully slow and in the console it throws up errors like:

    “HEAD wp-admin/post@2x.php/?post=55445&action=edit 404 not found”.

    Is there anything that can be causing this? Only seem to get these errors in the WPSL store list admin and store post admin?

    Any help appreciated

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Seem to be an issue that’s related to Gutenberg, no idea why it includes @2x in the file name from the post as well.

    If you disable Gutenberg for the store locator, then you can probably save the locations just fine? You can test this by adding the code below to the functions.php inside your active theme folder.

    add_filter( 'wpsl_post_type_args', 'custom_post_type_args' );
    
    function custom_post_type_args( $args ) {
        
        $args['show_in_rest'] = false;
        
        return $args;
    }

    Let me know if this fixes it.

    Thread Starter creativ3y3

    (@creativ3y3)

    Hi thanks for getting back to me. Unfortunately this didn’t seem to work for me. I also tried to block the builder fully to see if it would help as a test using the following in functions file:

    add_filter('use_block_editor_for_post_type', '__return_false');

    But it didn’t seem to help either, both still five me the HEAD….error and the @x2 you mentioned?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Gutenberg was disable itself and the error still showed up?

    If you for a second disable all other plugin, does this fixes it? I suspect it’s a conflict with some other code, and disabling everything else is way to test this. If it then does work enable the plugins one by one to see which one causes the conflict.

    Thread Starter creativ3y3

    (@creativ3y3)

    Hi There

    Disabling all plugins fixes it.

    I then activated wpsl and it clashes with both uncode and storefront themes but not twenty twenty theme.

    Looks to be a number of clashes with plugins. So in total i have 9 errors, with the same type of error:
    /storefront/assets/images/admin/storefront-icon@2x.svg

    Some example plugin conflicts are:
    SG optimiser
    All in one security
    WPML
    Uncode js composer

    With storefront active and the above error showing, I included the following in the functions file:
    add_filter( ‘wpsl_post_type_args’, ‘custom_post_type_args’ );

    function custom_post_type_args( $args ) {
        
        $args['show_in_rest'] = false;
        
        return $args;
    }
    add_filter('use_block_editor_for_post_type', '__return_false');

    Which didn’t seem to help…

    Thread Starter creativ3y3

    (@creativ3y3)

    Hi Any further thoughts on how to resolve?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you open a support ticket here and send me the theme files, then can try to replicate it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Connection lost. Saving has been disabled until you’re reconnected.’ is closed to new replies.