• Hi,

    I recently started having a problem with my site, for some reason some blocks refuse to generate preview and become non-editable. At first, I noticed it with info block when the recent update was released. 2 out of 3 blocks gave me “This block has encountered an error and cannot be previewed” message, even though all free have the same settings, just different text and icons inside.

    I had to revert my whole website to most recent back-up and decided to not update the plugin just yet. Hoping that maybe this will be fixed in the future release. But today contact form block gave me the same error when I tried to add gradient color to “submit” button.

    I would greatly appreciate if you could help me fix it. I love Kadence plugin a lot and would not want to change it for any other block plugin at all. It’s just really great in all other aspects.

    I can make a duplicate of my website with administration access for you to test everything in case you choose to do so. Just let me know…

    Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hey,
    Thanks for posting, When this happens have you tried restoring? https://www.kadenceblocks.com/docs/how-to-recover-a-broken-block/

    What version of WordPress are you using? What version of Kadence Blocks?

    Ben

    Thread Starter woorooo

    (@woorooo)

    Hi Ben,

    I use the latest version of WP and the latest version of Kadence blocks (just updated it again). I will test it a bit more and let you know if I’m able to restore the blocks when this happens.

    One thing that I’m sure about right now is that when in Form Block I try to add the second gradien color for the button the whole page goes blank

    https://www.flowliving.club/wp-content/uploads/2019/12/kadence.png

    Here is the error report it lets me copy. I have no idea if it is of any help, but here it is.

    He@https://www.flowliving.club/wp-includes/js/dist/components.min.js?ver=8.3.2:21:196694
    t@https://www.flowliving.club/wp-includes/js/dist/components.min.js?ver=8.3.2:21:215088
    Ag@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:63:107
    Vg@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:89:442
    ph@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:217:70
    lh@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:126:411
    O@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:121:71
    ze@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:118:14
    mg/<@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:53:49
    unstable_runWithPriority@https://www.flowliving.club/wp-includes/js/dist/vendor/react.min.js?ver=16.9.0:26:340
    Ma@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52:280
    mg@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52:498
    V@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:52:431
    Be@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:119:77
    xi@https://www.flowliving.club/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.9.0:39:175

    Hmm, I’ve not been able to recreate this, but I’ve been trying. Have you tested with other plugins off?

    Ben

    Thread Starter woorooo

    (@woorooo)

    Hi Ben, yes, I’ve just deactivated all the plugins, switched my theme to one of the default ones and even tested different browsers. As soon as I click the second color gradient after setting the first one – the whole page reports an error and I have to refresh it.

    It worked for a sure a couple of weeks before, so I’m completely clueless what causes it.

    I’ve recently updated to 1.7.13. Can you test with that and let me know if you get the same issue?

    Ben

    Thread Starter woorooo

    (@woorooo)

    Yep, I can confirm that with the latest update the issues still remains.

    Have you tried installing the Gutenberg plugin as a test?

    Ben

    Hello

    I also have this problem, which happens every time the Kadence Blocks plugin is updated. I followed the instructions on this page https://www.kadenceblocks.com/docs/how-to-recover-a-broken-block/ and this method of block recovery usually works… but it’s very time-consuming and worrying for other site authors.

    It’s a live site with several plugins, running on a child theme of Generatepress, so it’s not easy to disable everything and switch themes.

    What’s the most likely cause? Caching plugins?

    Hey,
    I don’t have this issue in my testing, perhaps there is a filter running on your content from your server?

    Can you tell me if this happens with a particular block? Are you using a user that is a site administrator?

    If you right-click and click inspect that can bring up a console log. In it there would be more information as to what the issue is. If you can get that and paste here it might help.

    Ben

    I’m not a developer so my answers may not be that helpful, but here goes:

    Console Log

    // start of log item:

    Block validation: Block validation failed forkadence/icon` (
    Object

    attributes: {icons: Object, iconCount: {type: “number”, default: 1}, uniqueID: {type: “string”, default: “”}, blockAlignment: {type: “string”, default: “center”}, textAlignment: {type: “string”, default: “center”}, …}

    category: “kadence-blocks”

    deprecated: [Object, Object, Object, Object] (4)

    edit: function()

    getEditWrapperProps: function(e)

    icon: {src: Object}

    keywords: [“icon”, “svg”, “KT”] (3)

    name: “kadence/icon”

    save: function(e)

    title: “Icon”

    Object Prototype
    ).

    Content generated by save function:

    <div class=”wp-block-kadence-icon kt-svg-icons kt-svg-icons_a21b4b-7b aligncenter” style=”text-align:left”><div class=”kt-svg-style-default kt-svg-icon-wrap kt-svg-item-0″><div style=”display:inline-flex;justify-content:center;align-items:center;color:#090935″ class=”kt-svg-icon kt-svg-icon-fe_chevronsRight”><svg style=”display:inline-block;vertical-align:middle” viewbox=”0 0 24 24″ height=”50″ width=”50″ fill=”none” stroke=”currentColor” xmlns=”https://www.w3.org/2000/svg&#8221; stroke-width=”2″ stroke-linecap=”round” stroke-linejoin=”round”><polyline points=”13 17 18 12 13 7″></polyline><polyline points=”6 17 11 12 6 7″></polyline></svg></div></div></div>

    Content retrieved from post body:

    <div class=”wp-block-kadence-icon kt-svg-icons kt-svg-icons_a21b4b-7b aligncenter” style=”text-align:left”><div class=”kt-svg-style-default kt-svg-icon-wrap kt-svg-item-0″><div style=”justify-content:center;align-items:center;color:#090935″ class=”kt-svg-icon kt-svg-icon-fe_chevronsRight”></div></div></div>`

    //end of log item

    See screenshot of more errors

    The problem happens with a wide range of blocks – especially on a page with quite a lot of content and / or re-usable blocks and / or custom fields.

    Example screenshot

    Note: the some blocks don’t fail consistently on different pages, for example an icon block on a page with a lot of content will fill but not necessarily on a page with less content.

    Permissions:
    I’m logged in as Admin 1 with no access restrictions or html filters.

    Filters
    In my setup, the only settings I can think of that are related to a “filter” are in the Clearfy plugin. For example:

    Dashicons are disabled and Version Number is stripped from scripts and styles for unauthorized users “To avoid problems after plugins update”.

    See screenshot 1

    Some other “filters”.
    See screenshot 2

    I’ve also reduced the Heartbeat Frequency to 80 seconds.

    Apart from that, there is some caching but the css and js are NOT currently minified.

    Caching
    I use Litespeed cache which is supposed to automatically flush caches when plugins are updated. Should I manually flush caches before or after updating Kadence?

    • This reply was modified 4 years, 9 months ago by mwcs.

    Hey,

    Your console log has a lot of errors. Not block rendering errors but actual Javascript errors.

    Have you tried deactivating plugins? You seem to have at least one plugin that is calling on a lot of outdated Gutenberg components. What other Gutenberg plugins are you running?

    Permissions:
    I’m logged in as Admin 1 with no access restrictions or html filters.

    Your error console shows that your SVG is being stripped out of the content. That could be because of your server or because of something you have installed but something relating to your setup scripted the whole SVG out for the icon. I suggest you start by contacting your hosting provider.

    Are you on a WordPress multisite?

    Litespeed should be fine. Whenever I troubleshoot flushing any caching plugin is a good place to start, however I don’t think that is your issue.

    Ben

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘This block has encountered an error’ is closed to new replies.