APIs & Integrations

MSharma38
Participant

leadin/hubspot-form-block is not working in latest update

Hi,

 

I have registered a block variation like below : 

wp.blocks.registerBlockVariation('core/group', {
name: 'hero-form',
title: 'Hero with Form',
icon: 'star-filled',
attributes: {
align: 'full',
layout: { type: 'constrained' },
className: 'is-style-padding-3',
gradient: 'layer-accent-neutral-2',
},
innerBlocks: [
[
'core/columns',
{ verticalAlignment: 'center', align: 'full' },
[
[
'core/column',
{
verticalAlignment: 'center',
className: 'is-style-card-3',
},
[
[
'core/heading',
{ placeholder: 'This is a headline', level: 1 },
],
[
'core/paragraph',
{ placeholder: 'This is a paragraph' },
],
['leadin/hubspot-form-block', {}],
],
],
],
],
],
});

The issue is that leadin/hubspot-form-block is not working in editor templates however it is working in page editors.


I am getting an error that leadin/hubspot-form-block is not registered.
0 Upvotes
9 Replies 9
MSharma38
Participant

leadin/hubspot-form-block is not working in latest update

Please let me know if there's any update on this.

0 Upvotes
MSharma38
Participant

leadin/hubspot-form-block is not working in latest update

There is no leadin/hubspot-form-block when I am using new plugin : 


Screenshot 2024-06-24 at 4.08.00 PM.png

 

 When I am using most recent working version then leadin/hubspot-form-block is appearing in console : 

 

 

Screenshot 2024-06-24 at 4.09.49 PM.png

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

leadin/hubspot-form-block is not working in latest update

Hey, @MSharma38, thanks for the additional details. I found the internal case you referenced, and it states the same as the warning message you shared —  “the blocks do not work in the full site editor.” 

 

If I get an additional update, I'll update this post.

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

MSharma38
Participant

leadin/hubspot-form-block is not working in latest update

Please let me know if you have any update on it. Thanks!

0 Upvotes
MSharma38
Participant

leadin/hubspot-form-block is not working in latest update

When I use wp.blocks.getBlockType() on old plugin then these below blocks exists.

 

  1. 92: {name: 'leadin/hubspot-form-block', icon: {…}, keywords: Array(0), attributes: {…}, providesContext: {…}, …}
  1. 93: {name: 'leadin/hubspot-meeting-block', icon: {…}, keywords: Array(0), attributes: {…}, providesContext: {…}, …}

But When I am doing the same on updated plugins then these blocks aren't appearing.

0 Upvotes
MSharma38
Participant

leadin/hubspot-form-block is not working in latest update

I just tested this plugin separately and there's no conflict with other plugins as far as I think.

 

0 Upvotes
MSharma38
Participant

leadin/hubspot-form-block is not working in latest update

Yes I tried that but the block type not even there. It is working till version 11.0.53 and then there is a below line added in the major releases below : 

// We do not support the full site editor: https://issues.hubspotcentral.com/browse/WP-1033
if (!WpBlocksApi || isFullSiteEditor()) {
return null;
}

What does this mean. Is this mean that Hubspot is not supports full site editor meaning that it won't work in appearance -> editor section?

 

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

leadin/hubspot-form-block is not working in latest update

Hey, @MSharma38 👋 Thanks for your question. Welcome to our community. To be upfront, I am not a WP expert by any means.

 

Here's where I'd start:

  • Have you tried to verify the block availability by logging it out?
const blocks = wp.blocks.getBlockTypes();
console.log(blocks);
  • Have you tried to deactivate other plugins temporarily to see if there’s a conflict?

Let's also invite some of our community members to the conversation who have WordPress experience — hey @Mike_Eastwood @Jake_Lett @Josh do you have any troubleshooting tips you can offer @MSharma38?

 

Thank you for taking a look! — Jaycee

 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
MSharma38
Participant

leadin/hubspot-form-block is not working in latest update

Hi @Mike_Eastwood @Jake_Lett @Josh,

 

As I am going through the most recent hubspot plugin update, I still get the same issue and seems like hubspot is still not active for Full Site Editor. I am trying to console wp.blocks.getBlockTypes() on wordpress Editor screen but could not find 

leadin/hubspot-form-block and also page breaks if I try to add any block which is same old issue. Please let me know if you have any solutions.
0 Upvotes