• Hello,
    I have been using YASR for a few weeks and I am very happy, but there is an annoying error whenever I am editing the pages through the wp block editor:
    “This block counts unexpected or invalid content”.
    It is also impossible to open the “Yasr settings” menu, if I try to do this I have to disable the plugin to be able to edit any page again.

    screenshots:

    View post on imgur.com

    Can you help?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor dudo

    (@dudo)

    Hi,

    I will try to reproduce the error and let you know, thank you for sharing this.

    Plugin Contributor dudo

    (@dudo)

    I’m not able to reproduce the issue, can you please paste a screenshoot of your settings?

    Thread Starter pmdaniel

    (@pmdaniel)

    Hi,
    First of all thanks for the help!

    Here is a screenshot of when I click to open “YASR settings” in the page editor:

    View post on imgur.com

    The log is:
    TypeError: Cannot read property ‘yasr_overall_rating’ of undefined
    at ref …

    • This reply was modified 4 years, 1 month ago by pmdaniel.
    • This reply was modified 4 years, 1 month ago by pmdaniel.
    Thread Starter pmdaniel

    (@pmdaniel)

    I guess this is related with the custom post type, because if i create a normal post, it doesn’t happen.

    Thread Starter pmdaniel

    (@pmdaniel)

    My post here was held for moderation because of the logs in it…

    Here is a screenshot of when I click to open “YASR settings” in the page editor:

    View post on imgur.com

    Thanks!

    • This reply was modified 4 years, 1 month ago by pmdaniel.
    Plugin Contributor dudo

    (@dudo)

    I’m trying again and again but not able to reproduce it.

    Which plugins do you have installed?

    Thread Starter pmdaniel

    (@pmdaniel)

    I was wrong, it also happens with the posts, without cpt ui.
    Let’s go by steps
    I created a new post, added only the block “yasr: visitor votes” and saved the draft.
    When I reopen it gives me the following error:
    “This block countains unexpected or invalid content”
    The console shows:

    View post on imgur.com

    I noticed that the shortcode brings the postid with the post id of the post I created.
    If I do “Attempt block recovery”, the block recovers and the postid disappears.

    Also,

    In a post (not a custom post) if I open the YASR Settings it always works without problems.

    But, in a custom post (cpt ui) it also gives me the error:
    “The editor has encountered an unexpected error.”
    And the console shows the following:
    TypeError: Cannot read property ‘yasr_overall_rating’ of undefined

    in that case I can never open the editor again. I have to disable the plugin or go to a normal post and change to the general settings

    Thanks a lot for the help!

    • This reply was modified 4 years, 1 month ago by pmdaniel.
    • This reply was modified 4 years, 1 month ago by pmdaniel.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error in WP block editor’ is closed to new replies.