• Resolved creativecatapps

    (@creativecatapps)


    I have a fresh WordPress installation and have ticked to say I want to use the Gutenberg editor. However, the Book Description/Synopsis area is unusable (the boxes below are fine) unless I’m using the Classic editor. I have all plugins turned off other than this one and it’s still an issue. The console gives me an error of Found 2 elements with non-unique id #_wpnonce: with the Gutenberg editor but not without but that’s all I’ve been able to find.

    Server is XAMPP with PHP 8.0.1, Windows 10, WordPress 5.6.1, Recencio Book Review 1.47.0

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Kemory Grubb

    (@w33zy)

    Hey @creativecatapps

    I have just noticed this issue and it is a weird one. I can’t select the text area of the Book Description/Synopsis section and there is no JS console errors.

    So, I will now have to scrape the Gutenberg repos for any mention of this issue.

    I’ll get back to you in a bit with a solution.

    Plugin Author Kemory Grubb

    (@w33zy)

    Hello again,

    From my research thus far, it seem TinyMCE is have some issues with the Gutenberg being active on the same screen it is on. Or vice versa.

    I have a simple fix by disabling TinyMCE being attached to the Book Description/Synopsis textarea if Gutenberg is active.

    Can you run an experiment for me?

    If so, take a look at /recencio-book-reviews/admin/class-rcno-admin-description-meta.php#L79 and replace the do_rcno_book_description_metabox() function with this one?

    public function do_rcno_book_description_metabox( $review ) {
    
        $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null;
    
        $description              = get_post_meta( $review->ID, 'rcno_book_description', true );
        $options = array(
            'textarea_rows' => 8,
        );
        $options['media_buttons'] = false;
        $options['teeny']         = true;
        $options['quicktags']     = false;
        $options['tinymce']       = ! ( $screen && $screen->is_block_editor );
    
        wp_editor( $description, 'rcno_book_description', $options );
    }
    • This reply was modified 5 years, 3 months ago by Kemory Grubb.
    Thread Starter creativecatapps

    (@creativecatapps)

    I ran the new function, which disables TinyMCE. However, I’m still seeing the nonce issue and some of the Gutenberg blocks aren’t rendering on the front end. This is only for pages created with Recencio.

    Stranger still, a standard (empty) page created with the Gutenberg editor shows:

    Found 2 elements with non-unique id #rcno_ajax_nonce

    I’m seeing the same warning, but my fields are all working, my issue is that the frontend post is blank. The template doesn’t seem to be loading at all? Not sure if I’m just missing something.

    Thanks for any help with this!

    Chris

    Plugin Author Kemory Grubb

    (@w33zy)

    @creativecatapps

    I am 98% sure that warning from Chrome’s console is not related to this issue. It is just a warning that 2 elements on the page have the same id attribute and this instance those HTML elements are just hidden input fields.

    Can you provide with more info on this part “…some of the Gutenberg blocks aren’t rendering on the front end. This is only for pages created with Recencio.”?

    Which blocks are you having issues with?

    Plugin Author Kemory Grubb

    (@w33zy)

    @coffeemugger

    Can you create a separate support ticket so that I can track your issue separately, as I don’t think it is related to this one.

    Thread Starter creativecatapps

    (@creativecatapps)

    @w33zy I’m using Generateblocks plugin and the standard pullquote. Can I email you the URL so you can have a look?

    Note to mods: I am offering the frontend URL on my dev server only, not any credentials or access.

    Thread Starter creativecatapps

    (@creativecatapps)

    It seems to be working with the latest update – I am manually putting HTML into the synopsis box, which isn’t ideal, but it’s definitely working, so I will mark this as resolved. Thanks.

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

The topic ‘Gutenberg Issues’ is closed to new replies.