• Resolved Wes Modes

    (@wmodes)


    I am running the latest version of Insert Pages (3.5.2) and am getting two (possibly related) errors.

    When I enter the editor (before I’ve tried to insert a page), I get a debugging message:

    Notice: WP_Block_Type_Registry::register was called incorrectly. Block type "insert-pages/block" is already registered. Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.) in /srv/data/web/vhosts/unavoidabledisaster.com/htdocs/wp-includes/functions.php on line 4986

    When I add an Insert Pages block in the standard Gutenberg editor, as soon as I specify the page to insert (even if it is a standard post), the block says:

    Error loading block: Invalid parameter(s): attributes

    Strangely, I can publish it or preview it and it looks fine.

    If I insert a page that has my CPT on it, again I can publish or preview the page with an inserted CPT page, but if I return to the editor, I get a blank page with the former error across the top.

    Any suggestions?

    • This topic was modified 6 years, 2 months ago by Wes Modes.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Paul Ryan

    (@figureone)

    Thanks, we’ll investigate!

    Thread Starter Wes Modes

    (@wmodes)

    Interestingly, with Elementor, it works just fine. Edit and then re-edit no problem.

    Plugin Author Paul Ryan

    (@figureone)

    Hm, I’m not able to reproduce this. Can you provide more details, like theme and enabled plugins? Or even better, try to reproduce it on vanilla WordPress?

    I wonder if it’s a conflict with another plugin doubling up on the environment or something.

    I’m running in debug mode as follows:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'SCRIPT_DEBUG', true );

    I also just committed some fixes for some Gutenberg deprecation notices, so if you’re feeling adventurous please try testing on the latest version in git! It hasn’t made it into a versioned release yet.
    https://github.com/uhm-coe/insert-pages/commit/f2efd8a7df7d19e53cc09fe5d4178d939f626e66

    Plugin Author Paul Ryan

    (@figureone)

    <dupe>

    • This reply was modified 6 years, 1 month ago by Paul Ryan.
    Plugin Author Paul Ryan

    (@figureone)

    We’ve added some fixes for recent deprecations in Gutenberg, so please test the new version, 3.5.3!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error loading block: Invalid parameter(s): attributes’ is closed to new replies.