• Resolved numerianteam

    (@numerianteam)


    Hi,

    (Long context, the questions is at the end.)

    I have recently updated from UAG 1.25.6 to Spectra 2.15.1. Since then I have had an issue where Gutenberg becomes unresponsive after saving multiple times. This happens with Chrome, on Linux and Windows ; it doesn’t happen with Firefox.

    As far as I can tell, this is due to AJAX requests that don’t finish, coupled with the fact that Chrome can’t have more than 6 connections to a given domain. So after saving 6 times there are no available connections left and Gutenberg can’t interact with the server anymore.

    It also appears to be linked with metaboxes : I have an old plugin which adds a pre-Gutenberg metabox to the editor, and if I disable it the issue disappears. (The metabox works fine otherwise).

    It’s definitely linked with Spectra, if I disable it then Gutenberg works fine, even with the metabox.

    To reproduce :

    • install a new wordpress instance
    • install the Spectra plugin
    • create a metabox by adding the following code to the theme’s function.php :

    add_action( 'add_meta_boxes', 'test_add_meta_box' );
    function test_add_meta_box() {
    add_meta_box('test_metabox', 'test metabox', 'test_metabox_output');
    }
    function test_metabox_output() {
    echo "TEST";
    }

    • Using Chrome, create a new page, publish it. Open the “Network” tab in the console. Then save again seven times without refreshing.
    • The seventh time you save, the button should stay in the “saving …” state. And in the console you’ll see requests to post.php that say “CAUTION: request is not finished yet!” in the “Timing” tab.

    I’d like to know if you are aware of the issue ; and whether you intend to fix it, or if you don’t intend to support those old metaboxes, in which case I’ll have to get rid of them.

    Thanks in advance for your help.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.