[React-imported-component] TypeError: i.AllHtmlEntities is not a constructor after Divi Update

I use Divi with WPEngine and when I implement updates, I do it in their legacy staging environment. Often the update is applied and I test it without issue, but then when I push it to live I can’t seem to get the Divi editor to work.

For example, after updating a site to Divi Version: 4.9 I was not able to edit anything using the Divi editor once I pushed the updates from staging to live. When I clicked on the gear icon to edit a section, I would get the following errors in the developer console:

[React-imported-component] TypeError: i.AllHtmlEntities is not a constructor

as well as

Uncaught (in promise) TypeError: i.AllHtmlEntities is not a constructor

I updated the site by pulling it back to a staging site and then pushing it back to a live site. The editor was working on the staging site, but not once it was pushed back to live.

To fix the error, I had to rollback the Divi version on the live site, and then reinstall it. You can do this in the backend of WordPress.

  1. In the WordPress backend, in the side menu click on Divi -> Theme Options
  2. Click on Updates
  3. Click on Rollback to Previous Version.
  4. Now, go to Appearance -> Themes and apply the Divi updates again.

You may also need to make sure to clear the minified, cached, JS files:

  1. In the WordPress backend, in the side menu click on Divi -> Theme Options
  2. Scroll down to find the option Minify And Combine Javascript Files
  3. Disable the option and click on the save button
  4. Now enable the option and click on the save button

Your problem should be solved! While you are in there, it’s probably also prudent to do the same for the minified CSS file, especially if you used a staging site for your updates like I did.

If your site uses cloudflare or any sort of caching or CDN, also try clearing those caches to make sure all the changes are applied.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *