Domain Mapping Fatal Error — Check for Upfront fails


I have been working on a multi-user site with Domain Mapping and Upfront for the past several days. I have encountered a number of problems, but for the most part have been able to make do. When logging in recently, I was shown a PHP fatal error from the Domain Mapping plugin:

[Tue Oct 18 12:14:43.402213 2016] [php7:warn] [pid 1221] [client] PHP Warning:  Parameter 1 to wp_default_styles() expected to be a reference, value given in /var/www/ on line 600

[Tue Oct 18 12:14:43.503647 2016] [php7:error] [pid 1221] [client] PHP Fatal error: Uncaught Error: Call to a member function get() on boolean in /var/www/ trace:n#0 /var/www/ Domainmap_Module_Mapping->redirect_upfront_to_mapped_domain()n#1 /var/www/ Domainmap_Module_Mapping->redirect_front_area('')n#2 /var/www/ do_action('template_redire...')n#3 /var/www/ require_once('/var/www/better...')n#4 /var/www/ require('/var/www/better...')n#5 {main}n thrown in /var/www/ on line 1117

This line reads as follows:

* Decide if upfront should be redirected to mapped domain
* @since
* @return bool
function redirect_upfront_to_mapped_domain(){

if( class_exists("Upfront") && "upfront" === strtolower( wp_get_theme()->parent()->get("Name") ) && isset( $_GET[ "editmode" ] ) )
return "mapped" === $this->_get_current_mapping_type( 'map_admindomain' );
return true;

Line 1117 begins with ” if( class_exists(“Upfront”:wink: … “.

Domain mapping had to be disabled in order to access the Dashboard. (It’s folder has a few x’s after it now to rename it.)

Rather than chase the smoking stack trace into oblivion, it would be much nicer to have someone on your team who is familiar with this plugin. Let me know what you make of it.



  • Vaughan
    • Support/SLS MockingJay

    Hi Jeremy,

    Hope you’re well?

    This is a known issue with upfront builder & domain mapping. The developers are currently working onthis and hopefully it should be fixed for the next release.

    Currently you need to disable domain mapping plugin, then do all your work in builder using the original URLs, once done and exported as a theme, you should then be able to re-enable domain mapping again.

    Hope this helps

  • Vaughan
    • Support/SLS MockingJay

    Hi Lewis,

    I believe this issue has recently been fixed in the dev branch, is it the exact same error you receive? Though the developers are working on other Incompatibility issues between DM & Upfront, hopefully, we will have a complete fix in the next update of Upfront & DM.


  • zspri
    • Design Lord, Child of Thor


    Has the problem been fixed? When attempting to create a custom theme on upfront with domain mapping activated, I keep getting the same error.

    Fatal error: Call to a member function get() on boolean in…/wp-content/plugins/domain-mapping/classes/Domainmap/Module/Mapping.php on line 1117

  • Vaughan
    • Support/SLS MockingJay


    This only seems to happen to me when you 1st create a theme if you don’t have an Upfront theme activated, and if you don’t hit the save button before closing the editor.

    Try editing the theme again, the 2nd time and make sure to hit the green save button, then close the editor. Hopefully, that should fix the issue.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.