Domain Mapping update is breaking my Multisite

This morning (Feb 24th) I upgrade Domain Mapping following the warning I had. After the upgrade, Site was unusuable. It looks like a constant loop was going on. I had to shutdown, download back an older (2014) version and install it to get it back working.

  • denis_grenier

    Error log:

    [24-Feb-2015 10:35:16 UTC] Erreur de la base de données WordPress Lost connection to MySQL server during query pour la requête SELECT option_value FROM wp_4_options WHERE option_name = '_transient_timeout_yoast_notifications' LIMIT 1 faite par do_action('admin_init'), call_user_func_array, load_yoast_notifications, Yoast_Notification_Center::get, Yoast_Notification_Center->__construct, Yoast_Notification_Center->get_notifications_from_transient, get_transient, get_option
    [24-Feb-2015 10:35:16 UTC] Erreur de la base de données WordPress Lost connection to MySQL server during query pour la requête insert into wp_wfLeechers (eMin, IP, hits) values (floor(unix_timestamp() / 60), '3324637994', 1) ON DUPLICATE KEY update hits = IF(@wfcurrenthits := hits + 1, hits + 1, hits + 1) faite par require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), call_user_func_array, wordfence::templateRedir, wordfence::doEarlyAccessLogging, wfLog->logLeechAndBlock, wfDB->queryWrite
    [24-Feb-2015 10:35:16 UTC] Erreur de la base de données WordPress Lost connection to MySQL server during query pour la requête UPDATE wp_sitemeta SET meta_value = '0' WHERE site_id = 1 AND meta_key = '_site_transient_domainmapping-www.creativitephoto.com-health' faite par do_action('admin_init'), call_user_func_array, Domainmap_Module_Mapping->redirect_admin_area, Domainmap_Module_Mapping->_redirect_to_area, Domainmap_Module_Mapping->redirect_to_mapped_domain, Domainmap_Module->set_valid_transient, set_site_transient, update_site_option
    [24-Feb-2015 10:35:16 UTC] Erreur de la base de données WordPress Lost connection to MySQL server during query pour la requête UPDATE wp_sitemeta SET meta_value = '0' WHERE site_id = 1 AND meta_key = '_site_transient_domainmapping-www.creativitephoto.com-health' faite par do_action('admin_init'), call_user_func_array, Domainmap_Module_Mapping->redirect_admin_area, Domainmap_Module_Mapping->_redirect_to_area, Domainmap_Module_Mapping->redirect_to_mapped_domain, Domainmap_Module->set_valid_transient, set_site_transient, update_site_option
    [24-Feb-2015 10:35:16 UTC] Erreur de la base de données WordPress Lost connection to MySQL server during query pour la requête UPDATE wp_sitemeta SET meta_value = '0' WHERE site_id = 1 AND meta_key = '_site_transient_domainmapping-www.clubphotoblainville.com-health' faite par do_action('admin_init'), call_user_func_array, Domainmap_Module_Mapping->redirect_admin_area, Domainmap_Module_Mapping->_redirect_to_area, Domainmap_Module_Mapping->redirect_to_mapped_domain, Domainmap_Module->set_valid_transient, set_site_transient, update_site_option
    [24-Feb-2015 10:35:16 UTC] Erreur de la base de données WordPress Lost connection to MySQL server during query pour la requête SELECT option_value FROM wp_35_options WHERE option_name = '_transient_timeout_yoast_notifications' LIMIT 1 faite par do_action('admin_init'), call_user_func_array, load_yoast_notifications, Yoast_Notification_Center::get, Yoast_Notification_Center->__construct, Yoast_Notification_Center->get_notifications_from_transient, get_transient, get_option

    Using nginx with wordfence and some redirect rules:

    # WORDFENCE FALCON ENGINE CODE
    #Match on gzip first because ordering matters.
    location ~ "/wp-content/wfcache/.*gzip$" {
    gzip off;
    types {}
    default_type text/html;
    add_header Vary "Accept-Encoding, Cookie";
    add_header Content-Encoding gzip;

    }
    location ~ /wp-content/wfcache/.* {
    add_header Vary "Accept-Encoding, Cookie";
    }
    set $wordfenceCacheOn 1;

    #Don't cache form submissions.
    if ($request_method = POST) {
    set $wordfenceCacheOn 0;
    }

    #Allow caching of /?123=123 because this is a common DDoS to override caches.
    if ($query_string !~ "^(?:\d+=\d+)?$") {
    set $wordfenceCacheOn 0;
    }

    #Only cache URL's ending in /
    if ($request_uri !~ \/$) {
    set $wordfenceCacheOn 0;
    }
    #Don't cache any cookies with this in their names e.g. users who are logged in.
    if ($http_cookie ~* "(comment_author|wp\-postpass|wf_logout|wordpress_logged_in|wptouch_switch_toggle|wpmp_switcher)") {
    set $wordfenceCacheOn 0;
    }
    set $wordfenceEncoding "";
    #Oh, you want gzipped content?
    if ($http_accept_encoding ~ gzip) {
    set $wordfenceEncoding _gzip;
    }
    set $wordfenceHTTPS "";
    if ($scheme = 'https'){
    #If you want to ENABLE HTTPS caching, comment out the next line.
    set $wordfenceCacheOn 0; #Comment this line out to enable HTTPS caching.

    set $wordfenceHTTPS '_https'; #Uncomment this line to enable HTTPS caching.
    }
    #The main purpose of this line is to capture the URL components into variables.
    if ($request_uri !~ "^\/*(?<wfone>[^\/]*)\/*(?<wftwo>[^\/]*)\/*(?<wfthree>[^\/]*)\/*(?<wffour>[^\/]*)\/*(?<wffive>[^\/]*)(?<wfsix>.*)$"){
    set $wordfenceCacheOn 0;
    }
    #If the file doesn't exist then don't serve from cache.
    if (!-f "$document_root/site/wp-content/wfcache/${http_host}_${wfone}/${wftwo}~${wfthree}~${wffour}~${wffive}~${wfsix}_wfcache${wordfenceHTTPS}.html${wordfenceEncoding}") {
    set $wordfenceCacheOn 0;
    }
    if ($wordfenceCacheOn = 1) {
    rewrite .* "/site/wp-content/wfcache/${http_host}_${wfone}/${wftwo}~${wfthree}~${wffour}~${wffive}~${wfsix}_wfcache${wordfenceHTTPS}.html${wordfenceEncoding}" last;
    }

    # WORDFENCE FALCON ENGINE CODE
    # WORDPRESS Recommended NGINX config statements
    location / {
    try_files $uri $uri/ /index.php?$args;
    }
    location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
    return 444;
    }
    location ~* \.(pl|cgi|py|sh|lua)\$ {
    return 444;
    }
    location ~* (roundcube|webdav|smtp|http\:expressionless:soap|w00tw00t) {
    return 444;
    }
    location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
    access_log off; log_not_found off; expires max;
    }
    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
    expires 24h;
    log_not_found off;
    }
    # WORDPRESS Recommended NGINX config statements
    # Yoast SEO Recommended NGINX Config Statements
    rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
    rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
    rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
    rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;
    # Yoast SEO Recommended NGINX Config Statements

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.