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.