# Grapejs hangs on plugin enable

**URL:** <https://forum.mautic.org/t/grapejs-hangs-on-plugin-enable/20666>\
**Category:** Product Support\
**Created:** [August 31, 2021, 4:02pm UTC](https://forum.mautic.org/t/grapejs-hangs-on-plugin-enable/20666 "2021-08-31T16:02:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)\
**Post date:** [August 31, 2021, 4:02pm UTC](https://forum.mautic.org/t/grapejs-hangs-on-plugin-enable/20666/1 "2021-08-31T16:02:47Z")

</div>

**Your software**  
My Mautic version is: 4.0  
My PHP version is: 7.4  
My Database type and version is: tidb

**Your problem**

In the config/plugin screen, i see a greyed-out GrapeJS.  
I click it. The front-end hangs on ‘Loading’.

In the javascript console, i see:

[https://mautic.MYDOMAINs/plugins/config/grapesjsbuilder?\_=1630425430237&mauticUserLastActive=22&mauticLastNotificationId=](https://mautic.MYDOMAINs/plugins/config/grapesjsbuilder?_=1630425430237&mauticUserLastActive=22&mauticLastNotificationId=)

404

i do not see any error come out in the log

I also don’t see grapejs themes when composing email.

```auto
 mautic router:match /s/plugins/config/grapejsbuilder

                                                                                                                        
 [OK] Route "mautic_plugin_config" matches                                                                              
                                                                                                                        

+--------------+----------------------------------------------------------------------------+
| Property | Value |
+--------------+----------------------------------------------------------------------------+
| Route Name | mautic_plugin_config |
| Path | /s/plugins/config/{name}/{page} |
| Path Regex | #^/s/plugins/config/(?P<name>[^/]++)(?:/(?P<page>\d+))?$#sD |
| Host | ANY |
| Host Regex | |
| Scheme | https |
| Method | ANY |
| Requirements | page: \d+ |
| Class | Symfony\Component\Routing\Route |
| Defaults | _controller: Mautic\PluginBundle\Controller\PluginController::configAction |
| | page: 0 |
| Options | compiler_class: Symfony\Component\Routing\RouteCompiler |
+--------------+----------------------------------------------------------------------------+

```

I’m not sure how to debug this.

---

<div class="post-metadata">

**Author:** ![adiux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/adiux/32/5793_2.png) [@adiux](https://forum.mautic.org/u/adiux)\
**Post date:** [September 1, 2021, 6:38am UTC](https://forum.mautic.org/t/grapejs-hangs-on-plugin-enable/20666/2 "2021-09-01T06:38:18Z")

</div>

Hi @donbowman  
Are all the Grapesjs files available in the plugins folder? You can compare it to here:

> **[GitHub - mautic/plugin-grapesjs-builder: GrapesJS HTML and MJML integration...](https://github.com/mautic/plugin-grapesjs-builder)**
>
> GrapesJS HTML and MJML integration for Mautic. Contribute to mautic/plugin-grapesjs-builder development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)\
**Post date:** [September 1, 2021, 12:55pm UTC](https://forum.mautic.org/t/grapejs-hangs-on-plugin-enable/20666/3 "2021-09-01T12:55:00Z")

</div>

should it match mautic/plugin-grapesjs-builder? or mautic/plugins/grapesjsbuilder? its in tree in 4.0 now.

i used the one in tree (e.g. installed from git clone mautic/mautic)

diff -qr reports as below. no missing files. some difference in the built css.

```auto
Files ./Assets/library/js/dist/builder.css and /app/plugins/GrapesJsBuilderBundle/Assets/library/js/dist/builder.css differ
Files ./Assets/library/js/dist/builder.css.map and /app/plugins/GrapesJsBuilderBundle/Assets/library/js/dist/builder.css.map differ
Files ./Assets/library/js/dist/builder.js and /app/plugins/GrapesJsBuilderBundle/Assets/library/js/dist/builder.js differ
Files ./Assets/library/js/dist/builder.js.map and /app/plugins/GrapesJsBuilderBundle/Assets/library/js/dist/builder.js.map differ
Files ./package-lock.json and /app/plugins/GrapesJsBuilderBundle/package-lock.json differ
Files ./package.json and /app/plugins/GrapesJsBuilderBundle/package.json differ

```

---

<div class="post-metadata">

**Author:** ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)\
**Post date:** [September 1, 2021, 4:40pm UTC](https://forum.mautic.org/t/grapejs-hangs-on-plugin-enable/20666/4 "2021-09-01T16:40:14Z")

</div>

i have confirmed w/ strace that there are no ENOENT happening during the attempted load of this page (the plugin config).

the only difference between this (grapesjs) plugin and others that work I can see is the “Integration” directory: it has one, and e.g. MauticGmail does not.

---

<div class="post-metadata">

**Author:** ![donbowman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/donbowman/32/5702_2.png) [@donbowman](https://forum.mautic.org/u/donbowman)\
**Post date:** [September 1, 2021, 5:58pm UTC](https://forum.mautic.org/t/grapejs-hangs-on-plugin-enable/20666/5 "2021-09-01T17:58:55Z")

</div>

`update plugin_integration_settings set name = 'grapesjsbuilder' where name = 'GrapesJsBuilder';`

there is a case-sensitivity issue.  
when the plugin installs itself, it adds an entry to plugin\_integration\_settings w/ the UpperCase name, but, it looks for the lower - case name.

this resolves.
