wp-admin on subsite with mix content errors

On the subdomain, https://sub.domain.com/wp-admin users can’t log in because of the Mix Content error.

The login form is pointing to the HTTP. All links on a site are set as HTTPS.

  • Ivan
    • Developer

    Hi Menno !

    It happened because there was some bug in Domain Mapping for the main site with www. I fixed it on your site. If you have the same issue on another site – you can replace this code

    $is_original_domain = $domain === $this->get_original_domain()
    || strpos($domain, "." . $this->get_original_domain())
    || $domain === str_replace("www.", "", $this->get_original_domain() );

    to this one

    $original_domain = str_replace( "www.", "", $this->get_original_domain() );
    $is_original_domain = $domain === $original_domain
    || strpos($domain, "." . $original_domain );

    into {wordpress_folder}/wp-content/plugins/domain-mapping/classes/Domainmap/Utils.php file via FTP.

    Also, I’ll provide this change for implementing to the next versions of the plugin.

    Best,

    Ivan.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.