1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

ET_Builder is not defined

Discussion in 'Free Divi Community Forum' started by nsmaaron, Feb 11, 2020.

  1. nsmaaron

    nsmaaron New Member

    I'm trying to edit a new page on a brand new WordPress using Divi Child Theme.

    WordPress 5.3.2
    PHP 7.3.10
    MySQL 5.7
    server OS: Windows 10
    DIVI 4.3.1

    Permissions: write access to the website identity on wp-content. This blog is also installed as a subdirectory of a proprietary .Net CMS under /blog. We're able to access the blog and change settings, access and change DIVI settings.

    When I go to edit any page, I get this console error and the page just keeps spinning without loading the front-end editor. I changed the settings under Divi > Theme Options > Buider > Advanced to use Classic Editor and enabled the latest DIVI builder experience. I still cannot edit on the back or front end of the page.

    Uncaught ReferenceError: ET_Builder is not defined
    at Object.<anonymous> (bundle.js?ver=4.3.1:9)
    at a (bundle.js?ver=4.3.1:2)
    at Object.<anonymous> (bundle.js?ver=4.3.1:304)
    at Object.<anonymous> (bundle.js?ver=4.3.1:304)
    at a (bundle.js?ver=4.3.1:2)
    at Module.<anonymous> (bundle.js?ver=4.3.1:316)
    at Module.<anonymous> (bundle.js?ver=4.3.1:316)
    at a (bundle.js?ver=4.3.1:2)
    at bundle.js?ver=4.3.1:2
    at bundle.js?ver=4.3.1:2

    here is what the WP Debug log said under DIVI Support tab.

    [11-Feb-2020 20:49:24 UTC] .../cache/Directory.php:65 ET_Core_Cache_Directory::_initialize():
    Unable to write to filesystem. Please ensure that PHP has write access to one of the following directories:

    - WP_CONTENT_DIR
    - wp_upload_dir()
    - ET_CORE_CACHE_DIR.


    Has anyone else encountered this weird issue and is this a DIVI problem or our hosting platform?

    We've tried resaving the permalinks settings, allow full read and write access to the root folder (not just /blog), and even cleared the database to re-install WordPress. I've also tried clearing local and session storage in the browser and doing a hard refresh afterwards.
     
    Philip Battle likes this.
    1. PRO MEMBER PERKS Divi Ultimate Archive Plugin - Beautify your Divi archive / category page with 15 different premade blog designs:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

  3. etp

    etp New Member

    Hi I have the same issue. Were you able to resolve this? What was the fix?
     
    Philip Battle likes this.
    1. PRO MEMBER PERKS Divi Block Pro - Premade slide in bar design for your Divi site without using any plugins:View Demo
  4. Minty Hunter

    Minty Hunter New Member
    Pro Member (Support Expired)

    I have the same issue, on a Linux server. I have many other sites I maintain on many other platforms- this is the only one that is producing this exact same error. The debug log shows:


    .../cache/Directory.php:65 ET_Core_Cache_Directory::_initialize():
    Unable to write to filesystem. Please ensure that PHP has write access to one of the following directories:

    - WP_CONTENT_DIR
    - wp_upload_dir()
    - ET_CORE_CACHE_DIR.

    but there are correct write permissions to the wp-content directory.

    If I revert to Divi 3.29 then the builder loads fine. Any 4.x version of Divi produces the Uncaught ReferenceError: ET_Builder is not defined error.

    Were there any solutions?
     
    Philip Battle likes this.
  5. Divi.Help

    Divi.Help Administrator
    Staff Member

    For this type of issue, it's best for you to refer official Divi support directly: https://www.elegantthemes.com/members-area/help/
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade team carousel design for your Divi site without using any plugins:View Demo
  6. Minty Hunter

    Minty Hunter New Member
    Pro Member (Support Expired)

    Sure. I do have a support request in, and will report back.

    I just thought that either of the two other people here, who are reporting what looks like a very similar issue, had a solution, they might share...
     
  7. choroshin

    choroshin New Member

    in your wp-config, change the folowing line by setting the FS_METHOD to direct: define('FS_METHOD', 'direct');
     
    1. PRO MEMBER PERKS Divi Ultimate Footer Plugin - Custom global Divi footer (20 premade styles) + Revealing footer effect:Learn More
  8. decosys

    decosys New Member

    I had this problem, in my case i changed the permission of the proyect site in the linux server, the user is apache. I solved it.
     
  9. kodee

    kodee New Member

    Make sure your wp-content dir has 755 right permission.

    $ chmod -R 755 wp-content

    The above command resolved my issue in the builder.
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Beautifully crafted Divi layout packs for you to kick start your Divi sites:View Demo
  10. Philip Battle

    Philip Battle New Member

    Loving Divi, but we're now also suffering from this problem this "ET_Builder is not defined" bug.

    Have tried reinstalling Divi, "Safe Mode", ensuring the file and folder permissions are fine, and setting the 'FS_METHOD' to 'direct'. It's worth mentioning that all our other plugins are working ok.

    Interestingly, Divi Tech Support ascertained that the Divi builder does load for our Front Page, and also if Permalinks is set to Plain, posts also work just fine.

    Doing a little debugging, it seems that the Divi theme's bundle.js code contains the initialisation code for the ET_Builder (see attached), but this script isn't being added to the document <head /> with all the others for any of the broken pages. However, bundle.js is always added to the pages of posts that do work i.e the Front page or posts when Permalinks is set to Plain.

    So, why would the theme drop bundle.js from the list of injected scripts, leading to the error above and the Divi building failing to load?

    If anyone has solved this issue we'd love to know how. Thanks in advance.
     

    Attached Files: