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

Solved Theme Builder does not load

Discussion in 'Free Divi Community Forum' started by Grant Senior, Apr 11, 2024.

  1. Grant Senior

    Grant Senior Member

    Hi there, hope somebody can help here.

    I can build page content using the Visual Builder but I can not use the Theme Builder, it doesn't load; all I get is the loading graphic for a while followed by an error message, 'An unknown error has occurred. Please try again later'. So, I am unable to create headers, footers, or templates.

    The max_execution_time value was set at 30 and the Diivi Status suggested increasing to 120, the host provider has changed this to 300.

    I've tried loading the builder in Safe Mode, it didn't fix the problem.
    WordPress version is the latest and the Divi Theme was downloaded a few days ago.

    I'm talking to Divi Support but they've not yet been able to help; hoping to get some suggestions here.

    Cheers
    Grant
     
    1. PRO MEMBER PERKS Divi Block Pro - Powerful Divi header builder for you to mix & match premade header design, mobile menu & more:Learn More
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Check this out: https://help.elegantthemes.com/en/a...t=If it works, return to,one plugin at a time.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade mega menu design for your Divi site without using any plugins:View Demo
  3. Grant Senior

    Grant Senior Member

    Divi Support got back to me just before I was about to remove/reinstall Divi Theme and having inspected my site, suggested that, 'the setting X-Frame-Options was set to DENY. That's too restrictive, it should be set to SAMEORIGIN. Please each out to their host ask them to check if X-Frame-Options set to SAMEORIGIN'.

    Here's their screenshot for future reference for anybody else experiencing the same issue.

    x-frame-options-adjustment.png



    The server host updated the setting and things are now working properly, so, problem solved! I have to say, the Divi Members support is very good. (So is the help provided from this forum!)

    Cheers for your help.
    Grant
     
  4. Trimedia

    Trimedia New Member

    I had a similar issue of Theme Builder not displaying in the menu and when trying to access it at /wp-admin/admin.php?page=et_theme_builder I just got an error message of you're not allowed to access this page.
    I tried everything to fix it. I tried safe mode, permalinks, re-installing divi, rolling back a version, and nothing helped. Reading through code and going through the database to see what roles were assigned and to make sure I was still an administrator I found that Divi checks for administrator as the first role. In building some things lately I had to create some new test roles and they were added to my ID. They were showing up like this in the database a:3:{s:13:"testa_manager";b:1;s:13:"administrator";b:1;s:14:"customer_testa";b:1;}

    In phpMyAdmin I ran this query to change the order. (You can hand code if you like)

    -- Find your user ID first
    SELECT ID FROM wpex_users WHERE user_login = 'admin';
    -- Reorder roles so administrator is the FIRST one reset() returns
    -- Replace 123 with your actual user ID
    UPDATE wpex_usermeta
    SET meta_value = 'a:3:{s:13:"administrator";b:1;s:13:"testa_manager";b:1;s:14:"customer_testa";b:1;}'
    WHERE user_id = 123 AND meta_key = 'wpex_capabilities';

    I was then able to get to the Theme Builder page (/wp-admin/admin.php?page=et_theme_builder) and it was once again visible in the Divi menu.

    Divi calls reset() on that array and gets testa_manager as my "role" and not administrator. Since testa_manager isn't in Divi's allowlist (administrator, et_support_elevated, et_support), Theme Builder is treated as a dangerous capability I wasn't allowed to use. The menu item never registered for me. That's the reason I didn't see Theme Builder in the Divi submenu and why I was getting the 403 error.

    Divi could use WordPress's get_role() to iterate all roles, OR
    Use user_can( 'administrator' ) (capability check), OR
    Store an explicit "primary role" meta separately.

    Any of these would have saved a couple of hours of frustration.

    Took almost 2 hours of trying things and reading through code to figure out what was happening.

    Hope this helps anyone else out there doing custom code on sites built in Divi.

    - Neil
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade team carousel design for your Divi site without using any plugins:View Demo