Divi Loader Not Finishing Its Load
I am late to the game of loving the Divi page builder. It's really great-- or, it was until today.
Why did it jump the bridge and fail to load? Memory. As the site gets more elaborate, the Divi Builder got more encumbered; the code has conflicts and/or your environment doesn't have the breathing room it needs.
Untangling the Divi Loader Problem through PHP and Apache Changes
PHP VersionMy web host seems to love PHP 5.6 a little too much. They had the hosting account set to PHP 5.6. PHP 5.6 has long ago expired as the default PHP engine. In its place: PHP 7.x. Even the older the flavours of PHP 7 are being relegated to history. PHP 7.3 (as of this writing) is the minimum level your WordPress site should be running with. PHP 7 is much better with memory management. The downside: PHP 7 expired a long list of functions and sloppy code elements. That means older sites relying on even older code cannot run on today's servers.
Divi has some code requirements. These are are they should look like in the .htaccess file in the root of your website.
<IfModule php7_module> php_flag display_errors Off php_value max_execution_time 90 php_value max_input_time -1 php_value max_input_vars 3600 php_value memory_limit 256M php_value post_max_size 64M php_value session.gc_maxlifetime 2880 php_value session.save_path "/opt/alt/php73/var/lib/php/session" php_value upload_max_filesize 72M php_flag zlib.output_compression On </IfModule>
If your CPanel install allows for it, you can edit the php settings (the php.ini file) for your website. Otherwise, you will need to edit your .htaccess file.
Available MemoryBy default, web hosts allow 32 to 64 megabytes of PHP processing. That needs to be cranked up. Editing the PHP configuration and the Wordpress configuration will address that. What should it be at? It should be at least 256MB of room.
The wp-config.php file controls most of the configurations for your WordPress install. Adding a memory limit rule into the code will give your WordPress install more room to work with. In the figure below, CPanel and the file manage editor can be used to open the config file to made additions.
One gotcha is many how-tos-- they play fast and loose with the single quotes. In coding, a single ' is the only way to open and close quoted strings that use the single quote. Text editors overthink it and use open quotes then close quotes. Be careful: that will crash your WordPress install.
Builder Timeout with .htaccess fixIn my case, it just spun perpetually. You may actually see the popup named “Divi Builder Timeout” that prevents you from using the editor. Pop open the .htaccess file to tinker. The code below, added to .htaccess will resolve this Divi glitch in Apache
<IfModule mod_substitute.c> SubstituteMaxLineLength 10M </IfModule>