# WordPress blocks not working on WP version 6.4 (RC)

**URL:** <https://forum.pinegrow.com/t/wordpress-blocks-not-working-on-wp-version-6-4-rc/8453>\
**Category:** Bug Reports\
**Tags:** bug, wordpress, blocks\
**Created:** [October 20, 2023, 8:40pm UTC](https://forum.pinegrow.com/t/wordpress-blocks-not-working-on-wp-version-6-4-rc/8453 "2023-10-20T20:40:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc\_io](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/marc_io/32/3431_2.png) [@marc\_io](https://forum.pinegrow.com/u/marc_io)\
**Post date:** [October 20, 2023, 8:40pm UTC](https://forum.pinegrow.com/t/wordpress-blocks-not-working-on-wp-version-6-4-rc/8453/1 "2023-10-20T20:40:46Z")

</div>

Hi, I’ve done some quick testing with a vanilla block plugin generated by Pinegrow in the latest WordPress release candidate (version 6.4). I wanted to check if it would work, but for my surprise, it simply doesn’t show up in the block inserter. Only an error message appears:

> “Your site doesn’t include support for the “pinegrow-block/pinegrow-block” block. You can leave this block intact or remove it entirely.”

[Here’s a video with the test](https://ubr.link/uploads/Screen-Recording-2023-10-20-17-07-30/Screen-Recording-2023-10-20-17-07-30.mp4).

The issue is that `pg-blocks-controls.js` uses `lodash`, but WordPress [now removes it](https://github.com/WordPress/gutenberg/pull/52571).

I could make the block appear by adding `lodash` as a dependency in the `wp_register_script` function for the `pg-blocks-controls.js` file in `wp_pg_blocks_helpers.php`.

But probably this isn’t a proper solution, according [to this comment](https://github.com/WordPress/gutenberg/pull/52571#issuecomment-1634317618) from the Gutenberg repo.

```auto
wp_register_script('pg-blocks-controls',
                    $base_url . 'blocks/pg-blocks-controls.js',
                    array('wp-blocks', 'wp-block-editor', 'wp-server-side-render', 'wp-media-utils', 'wp-data', 'wp-element', 'lodash'), $reg_args['version']);

```

I thought you would like to know. WP 6.4 is coming next November, so there’s time for a fix.

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [October 21, 2023, 1:06pm UTC](https://forum.pinegrow.com/t/wordpress-blocks-not-working-on-wp-version-6-4-rc/8453/2 "2023-10-21T13:06:42Z")

</div>

@marc_io thanks for the report! We’ll publish an update for this next week.

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [October 23, 2023, 1:32pm UTC](https://forum.pinegrow.com/t/wordpress-blocks-not-working-on-wp-version-6-4-rc/8453/3 "2023-10-23T13:32:19Z")

</div>

@marc_io, you are a true hero! I’m not happy about the way WP is quietly deprecating things and I’m definitely not happy about having to re-export all my projects but I’m thankful that you found this and brought it to Pinegrow’s attention.

---

<div class="post-metadata">

**Author:** ![marc\_io](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/marc_io/32/3431_2.png) [@marc\_io](https://forum.pinegrow.com/u/marc_io)\
**Post date:** [October 23, 2023, 3:49pm UTC](https://forum.pinegrow.com/t/wordpress-blocks-not-working-on-wp-version-6-4-rc/8453/4 "2023-10-23T15:49:28Z")

</div>

@adamslowe Thanks, we’re all in the same boat here. It’s been a lot of work to keep up with these constant changes, it’s almost a full time job, really. Let’s hope things start to settle a bit more, and kudos for the Pinegrow team to stay in this unstable game.

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [October 24, 2023, 7:34am UTC](https://forum.pinegrow.com/t/wordpress-blocks-not-working-on-wp-version-6-4-rc/8453/5 "2023-10-24T07:34:46Z")

</div>

@marc_io @adamslowe we will have two ways to fix this:

1. By re-exporting projects with the next release of Pinegrow
2. By installing a simple WordPress plugin that will insure older blocks are compatible with WordPress 6.4. The plugin is available now, please try it if you can: [Release 1.0.0 · Pinegrow/LoadLodashForPinegrowBlocks · GitHub](https://github.com/Pinegrow/LoadLodashForPinegrowBlocks/releases/tag/1.0.0)

The plugin adds lodash as a dependency for the pg-blocks-controls script.

The option 2 is easy and quick, and gives you time to reexport existing projects without hurry.

Options 1 and 2 can be used together on a single site.

---

<div class="post-metadata">

**Author:** ![marc\_io](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/marc_io/32/3431_2.png) [@marc\_io](https://forum.pinegrow.com/u/marc_io)\
**Post date:** [October 24, 2023, 6:31pm UTC](https://forum.pinegrow.com/t/wordpress-blocks-not-working-on-wp-version-6-4-rc/8453/6 "2023-10-24T18:31:39Z")

</div>

Thanks for providing the plugin solution so quickly, @matjaz. I’ve tested it with WordPress version 4.6-RC2, and it works fine.
