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 Problem build custom body

Discussion in 'Free Divi Community Forum' started by acellier, Jun 7, 2022.

  1. acellier

    acellier New Member

    Hello,

    I have had a problem for several hours. It is impossible to load "existing pages" in DIVI.

    I have tried everything :
    • disable all plugins
    • downgrade the DIVI version
    • update to the latest DIVI version.
    • directly use the parent theme without any modification (base theme)
    • enable debug mode and wordpress logs
    I get a 500 error in the request (screen: error_divi.png) when I click on "add custom body" (screen: add_custom_page.png) and the error message appears (screen: error_request.png).

    The WordPress logs only show an error when clicking "add custom body":
    [07-Jun-202208:07:38 UTC] PHP Fatalerror: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /home/mysite/public_html/wp-includes/wp-db.php on line 2135

    It's really the et_builder_library_get_layouts_data action that seems to be the problem. If I understood correctly, this action allows the loading of pages created in wordpress.

    I checked all the pages and there is nothing suspicious. I also put all the pages in the trash and the error still occurs. I'm using ACF fields in the pages but that shouldn't be a problem.

    I do not know what to do.

    Thank you for your help.
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Custom Divi Builder header on desktop + default slide in / fullscreen menu on mobile:Learn More
  2. acellier

    acellier New Member

    found where the problem comes from. In fact we have 27,000 articles and this function loads the pages AND articles hence the error. The problem is that I only need the pages and not the posts, I need to figure out how to modify the query.
     
  3. acellier

    acellier New Member

    Problem solved. We must edit the Library.php file and return only the types of pages that interest us. I only need the pages I have 5 of them while the 27000 articles I don't need and they are the ones that work bugger.
     

    Attached Files:

    Xiveno likes this.
    1. PRO MEMBER PERKS Divi Block Pro - Easy-to-use drag & drop interface to mix & match 456+ premade Divi blocks & export as json file:Learn More
  4. DLxx

    DLxx New Member

    Awesome, soo glad to have found this. Frustrated trying to determine if was the 18K posts and/or the much greater related post-meta.

    Filtering to pages only is the fix!

    Screenshot 2022-10-11 090245.jpg
     
    Timo L likes this.