Domain mapping after enom registration fail

Hi

After a successful registration via enom from my wordpress site, the user will map their website to their brand spanking new domain, then get white screen of death until the following happens:

- the multi site admin adds their user's new domain to their name server
- the enom reseller logs in to enom and points the domain name server entry to the multi site server

This may take 24 hours to do. Meanwhile the user still has a white screen of death at their website.

Is their anyway to fix this process?

Cheers,

Johnny

  • Ash

    Hello @johnnymestizo

    I hope you are well today and thanks for asking the question.

    The user should have access to their subsite using subdomain or subfolder (how you set it up) URL. Like if your network is network.com then he should have access using subsite.network.com url. Doesn't it work for him?

    Would you please post a screenshot of your Network Admin > Settings > Domain Mapping page?

    Cheers
    Ash

  • johnnymestizo

    My settings are as follows:

    Admin mapping - to mapped domain
    Login mapping - to mapped domain
    Verify domain DNS - yes

    My issue is that the customer looses connectivity to their site until the domain is registered and points to the multi site server.

    These are network wide settings and are applied to all blogs and is the ultimate configuration I want all domain mapped blogs to have.

    Is there some hook, where if DNS is invalid, then map back to the original (sub) domain?

    A preference system where the domain mapped domain had the greatest weight. If it fails, revert to original.

    There should be an 'auto' option.

    Any automatic fix for this?

    Cheers,

    Johnny

  • Ash

    Hello @johnnymestizo

    I hope you are well today.

    I am marking this as a feature request.

    Meantime, would you please go to /plugins/domain-mapping/classes/Domainmap/Module/Mapping.php line no 170 and change:

    private function _redirect_to_area( $redirect_to, $force_ssl = false ) {
    		switch ( $redirect_to ) {
    			case 'mapped':
    				$this->redirect_to_mapped_domain( $force_ssl );
    				break;
    			case 'original':
    				if ( defined( 'DOMAIN_MAPPING' ) ) {
    					$this->redirect_to_orig_domain( $force_ssl );
    				}
    				break;
    		}
    	}

    to

    private function _redirect_to_area( $redirect_to, $force_ssl = false ) {
    		switch ( $redirect_to ) {
    			case 'mapped':
    				if( Domainmap_Module_Ajax_Map::check_health_status() != 'valid' ){
    					if ( defined( 'DOMAIN_MAPPING' ) ) {
    						$this->redirect_to_orig_domain( $force_ssl );
    					}
    				}else{
    					$this->redirect_to_mapped_domain( $force_ssl );
    				}
    				break;
    			case 'original':
    				if ( defined( 'DOMAIN_MAPPING' ) ) {
    					$this->redirect_to_orig_domain( $force_ssl );
    				}
    				break;
    		}
    	}

    Let us know if that works. If it doesn't work, please roll back. If you see any error, please let us know the error.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.