Domain Mapping breaks DIVI visual editor

There appears to be a conflict between the Domain Mapping plugin and the DIVI themes new visual editor. Disabling the plugin allows the editor to load – enabled and it fails to load.

Multisite install

Word Press 4.6.1

DIVI Theme 3.0.15

  • Dimitris
    • Support Star

    Hey there Jon,

    hope you’re doing good and thanks for reaching us! :slight_smile:

    I presume that the Domain Mapping plugin is up and working as should be, is that right?

    The necessary steps that have to be made are detailed described in product’s usage page here

    Is this happening with all users? I mean, in case this is in a subsite, does that happening with admin and super-admin user? Please advise!

    As there’s no visible error message, some debugging information should reveal to us what’s wrong here. Could you please access your server through FTP, edit the wp-config.php file, find a line like

    define('WP_DEBUG', false);

    and replace it with the following (if the above line doesn’t exist, simply insert next snippet just above the /*That’s it! Stop editing… */ comment)

    // Enable WP_DEBUG mode
    define('WP_DEBUG', true);
    // Enable Debug logging to the /wp-content/debug.log file
    define('WP_DEBUG_LOG', true);
    // Disable display of errors and warnings
    define('WP_DEBUG_DISPLAY', false);
    @ini_set('display_errors', 0);

    Then go ahead and try to replicate the error by triggering the Divi editor and make it unresponsive. By doing so, a /wp-content/debug.log file should be created. Simply download it, rename it to debug.txt and attach it here in your next reply.

    After doing so, please grant us with support access to your website as described in our manual page here in order to have a better look.

    I look forward for your results!

    Warm regards,


  • J Burston
    • WPMU DEV Initiate

    Hi Dimitris,

    Log file attached, however I didn’t see anything in there relating to Domain Mapping or Divi. The Divi editor detected DEGUB mode and requested it be disabled – see attached screenshot.

    This is happening under a super admin account on a sub-site. The Domain Mapping plugin appears to be working fine for another sub-site.

    Support access has been granted.

    Thank you for looking into this.



  • Predrag Dubajic
    • Support

    Hi Jon,

    I had a look at your site and I'm not sure if I'm missing here but I was able to start Divi Builder on your subsite with mapped domain, you see it here:

    Can you tell me if I'm missing something here or provide us with some additional steps on how to replicate this?

    Best regards,


  • Predrag Dubajic
    • Support

    Hi Jon,

    Thanks for the additional info, after some further testing it seems that the issue is with the forced HTTPS in admin pages.

    Even though Divi builder is front end builder it still uses backend functions and since your site is using HTTPS on both front and back end it get’s confused and doesn’t load.

    If you go to your network admin section Settings > Domain Mapping panel and disable “Would you like to force https in login and admin pages” option you should be able to use the builder again.

    Let us know how it goes.

    Best regards,


  • J Burston
    • WPMU DEV Initiate

    Hi Predrag,

    Thanks for looking into this.

    The following options allow the DIVI theme and front end editor to work:-

    1. Disable Domain Mapping plugin

    2. Switch off https (back-end/front-end)

    3. Force https on both front-end and back-end.

    4. Do not use DIVI theme.

    I really need to use the Domain Mapping plugin as this is how I plan to build out the network.

    I don’t want to switch off https for the back-end admin pages.

    Forcing https for both front and back-end isn’t ideal.

    I’d like the option to use the DIVI theme.

    Can you tell me why the DIVI visual editor works when the domain mapping plugin is disabled, despite https being forced on for admin pages?

    Also, the visual editor loads fine for non DIVI sites – again despite the Https configuration?



  • David Thibault
    • The Incredible Code Injector

    This one appears to not be resolved. I’ve got a similar use case to Jon Burston (copied from above):

    I really need to use the Domain Mapping plugin as this is how I plan to build out the network.

    I don’t want to switch off https for the back-end admin pages.

    Forcing https for both front and back-end isn’t ideal.

    I’d like the option to use the DIVI theme.

    I’m using

    Divi 3.0.31

    Domain Mapping

    WP 4.7.2

    Any advice would be appreciated. I did discover that if I change your function et_fb_prepare_ssl_link to this:

    function et_fb_prepare_ssl_link( $link ) {

    // replace http:// with https:// if FORCE_SSL_ADMIN option enabled

    if ( defined( ‘FORCE_SSL_ADMIN’ ) && FORCE_SSL_ADMIN ) {

    $link = str_replace( ‘http://’, ‘https://’, $link );


    if (preg_match(“/https://(?!.*”, $link)) {

    $link = get_option(‘siteurl’:wink:;


    return $link;


    that at least it always creates the link to use (for which I have a wildcard certificate) instead of (for which I don’t have a cert and the browser complains about the insecure cert matchup).

    However, even with that code patch, for some reason even though hovering over the “Use Visual Builder” the link in the status bar shows (desired), after clicking on “Use Visual Builder” somehow it switches back to (which is what I don’t want…note now it’s not even https anymore).

    Your advice is much appreciated.



    Please advise.

  • Predrag Dubajic
    • Support

    Hi Dave,

    Thanks for posting in this thread, however since the thread is over a year old it might be best if you open your own, even if the issues seem closely related. That way it will remain independent of this one and ensure it doesn’t confuse issues here if this thread needs reopening again by the author.

    It also means the member who started this thread or anyone following it isn’t inundated with post notifications each time we respond to each other. A lengthy thread could annoy the original poster.

    This also allows us to better track and answer your questions to ensure we don’t miss any for you.

    You can start a new thread here:

    Thank you,


  • Lamarr
    • WPMU DEV Initiate

    I have complete faith in your team. You guys are atop of ever call that I make to the queue and provide rock solid support. I am fairly confident that a fix will be found quickly.

    It looks like there is a conflict between the parsing of parameters between the domainmapping plugin and divi core files. I haven’t completely ruled out the pro-sites plugin being the cause of part of the trouble as well.

    Thanks and standing by…


  • bOnline
    • New Recruit

    Hi there

    Has this issue been resolved, as I still am experiencing this problem with my install. We have a load balancer setup with multiple nodes. It is essential that Divi Visual Builder works using the original internal domain not the mapped domain as it is served from a different server. Please advise.


    – Tian

  • Predrag Dubajic
    • Support

    Hi Tian,

    We had a couple of updates since this issue was reported, including compatibility with Divi theme, I have tested Divi with my mapped domain now and I had no issues with page builder so it seems to be something specific to your installation.

    Please start a new chat or ticket with more information about your issue so we can investigate this further for you without spamming original poster with email notifications.

    Best regards,


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.