If possible, you should try and fix the cause of this error – invalid SSL certificates. But there are some instances where this is not possible or desirable. One obvious one being development sites using a self-signed SSL certs.
One way around this is to set $ssl_verify to false before line 1161 of wp-includes/class-http.php:
curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( $ssl_verify === true ) ? 2 : false )
The way I’ve done this in the past is by adding:
$ssl_verify = false;
To line 1159, before doing a multi-site upgrade and removing it afterwards. It looks like there should be much more sophisticated way of doing this. It looks from the code around it that judging by the code around it that you should be able to parse paramater sslverify=false but that doesn’t appear to work (probably because the upgrade wrapper doesn’t pass through the parameters).
To avoid making changes to Core I would un-do this change once you have completed the upgrade.
Related Posts:
- “Upgrade Network” error: stuck with SSL certificate verification
- Is there a way to run upgrade.php for one blog?
- HTTPS Warning and Certificate Error when Updating Network
- How does WP decide how to evaluate database integrity
- Can I replace the “Upgrade Network” with SQL query?
- Multi-site database upgrade claims success, but db_version not updated
- Getting 404 after Update in Multisite
- How can I trust switch_to_blog()?
- DB connection error after copying a WordPress Multisite instance to a second location
- Switching MultiSite installation from HTTP to HTTPS
- Add WordPress MU Network Admin via Database
- How to tell which database tables belongs to which multisite site
- what are pmxi tables? [closed]
- Anyone figured out how to use WordPress MultiSite with Domain Mapping & SSL?
- Multisite Domain Mapping with SSL
- Shared table across network
- SSL wildcard issue for wp multisite subdomains
- How to use WordPress multisite with mixed HTTP and HTTPS sites?
- find a random blogid across my multisite network that has at least one post published
- WP-CLI methods for get_current_blog_id, get_blog_details or $wpdb->prefix
- Multisite: How to store global options vs. site options?
- At MultiSite Network Update “Can’t Resolve host”, override and continue updating
- Uploading/Deploying a Multi Site Install
- Updating WordPress – the best approach (updating wp core, plugins and db)
- Configure WordPress to read from database only, never write
- How do I fix problems with users not being able to publish and only submit for review after upgrade of Multisites installation?
- Timeout While Upgrading Network in Multi-site
- Prevent changing the length of post_name column on WordPress Update
- Multiple Domains and Subdomains Using Multisite Installation
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- SSL for mapped subdomains in multisite (no plugins)
- Is it possible to fix/repair all Index, Primary Key, Unique (and all other) structure of a WordPress MS Database
- Migrating WPMS from apache to IIS7 causes Database Error
- Synchronizing Two WordPress Sites Content
- Make default new sites https (multisite)
- How to clone and locally run a network for testing
- Why wordpress multisite redirect to wp-signup if site exists?
- Two WordPress sites sharing the same database
- Multisite without .htaccess
- Help with updating a wp_get_sites to get_sites and sorting by alphebetical order
- Is Partial SSL Possible? ( multisite )
- Is it possible to import a wordpress backup from a single site in to a multi-site configuration?
- Split a database will improve performance?
- How to Move Local Singlesite Database to Remote Multsite Database?
- Multisite Subdomain Using More Resources Than Others?
- wp-admin redirect loop with ssl
- How to properly force https and www on multisite with Apache HTAccess
- How to change the database prefix in multisite (WPMU) install
- Importing Multiple DB to one MU database
- Make WordPress Search for Both Main Domain and Subdomain
- Does WordPress MultiSite use separate MySql databases?
- WordPress DATABASE Update Manually?
- Bootstrapping WordPress MultiSite Outsite of WordPress – No $wpdb
- Multisite setup creating custom table
- Forcing SSL Protocol for Multisite Subdomain Child Sites + cPanel Configuration
- Within the database, where is the flag which says that a user has Super Admin rights?
- Bulk activate a theme on multisite
- Migrating Multisite – Database error, missing wp_blogs table
- How to store custom user data on the database?
- WPML tables not deleted when removing multisite subsite, need help clearing up my sql-file! [closed]
- Force Load https WordPress Plugins
- SELinux security vs WordPress updates
- Database Tables Lost Indexes? How to Recover?
- How to get the SQL of the changes made to the database from an update or upgrade?
- Installed domain-based Multisite but can’t access wp-admin (redirect loop)
- Multiple multisite instances connecting to the same database
- How to use a Wildcard SSL with WordPress Network?
- WordPress Multisite – can I somehow merge the tables?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- Multisite: cloning, but also updating too
- Multisite with subfolders- can’t access main site- Error establishing a database connection
- Is this the right set of records for Route53 domain to point to a mapped domain in a multisite? [closed]
- Nginx Wildcard SSL with WordPress Multisite Subdomains
- Create a database for each site created in multisite?
- Use WordPress MultiSite (WPMS) with a remote database for each created site
- Will changing the folder name two directories above a fresh wordpress installation break the site?
- WordPress Multisite blogs not working after domain swap
- Least expensive way to get table prefix in multisite installation
- 2 website 1 database… Local to online
- new multisite, old db
- Removing Mutlisite lines stop DB connection
- Multisite, domain mapping and SSL?
- MU/Subdomains + Domain Mapping + SSL?
- Issue with Multisite and SSL
- Network Admin URL is shown to anyone before accessing a blog
- Domain Mapping for WordPress MU and https redirection – How to?
- how to migrate wpmu from one host to the other?
- Share DB tables between two blogs on the same WP Multisite installation
- How can I create blog specific database table in multisite?
- Generate HTTPS Urls in multisite
- How many databases do I need?
- Locking one blog of many in a multi user/blog WordPress installation
- WordPress Multisites or Multiple WP Single sites?
- $wpdb->update prefixes database name to table when executing query
- WP MultiSite: Can’t select database error after changing to new domain
- Combining user database tables while keeping all other data in seperate for multiple sites?
- How to make multi site with single Database?
- Update WP install to WP network & it broke the DB connection
- Multisite network admin – User’s role not showing up
- WordPress Multisite URLs and Multiple Updates