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]
- Multisite Domain Mapping with SSL
- Shared table across network
- How to use WordPress multisite with mixed HTTP and HTTPS sites?
- 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
- 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
- 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
- Why wordpress multisite redirect to wp-signup if site exists?
- 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?
- wp-admin redirect loop with ssl
- How to change the database prefix in multisite (WPMU) install
- Importing Multiple DB to one MU database
- WordPress DATABASE Update Manually?
- Bootstrapping WordPress MultiSite Outsite of WordPress – No $wpdb
- Multisite setup creating custom table
- Bulk activate a theme on multisite
- Migrating Multisite – Database error, missing wp_blogs table
- How to store custom user data on the database?
- Force Load https WordPress Plugins
- Multiple multisite instances connecting to the same database
- 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
- 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
- how to migrate wpmu from one host to the other?
- How can I create blog specific database table in multisite?
- Locking one blog of many in a multi user/blog WordPress installation
- $wpdb->update prefixes database name to table when executing query
- WP MultiSite: Can’t select database error after changing to new domain
- 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
- Sharing users across multiple sites, each on their own database
- How long is “as long as possible” in wp_cache_set()?
- Questions about MU database schema and how to list all blogs
- How to use the same users table on multiple wordpress sites
- A database for each category?
- Media library links broken WordPress Multisite after SSL update
- Problems with WordPress multisite directories/url structures and admin access after migration
- Enable HTTPS for AWS hosted multisite domain (with AWS purchased SSL) on already created Load Balancer?
- allow multisite in the installation process
- Error establishing a database connection after moving local wordpressmultisite from one directory to another
- Will resetting my database affect other sites on my multisite WordPress install?
- How to convert multisite subdomain from http to https
- SSL for Mapped Domains with WordPress Multisite on AWS
- WordPress Database Cleanup
- Multisite domain mapping with SSL redirects to main domain
- Optimal setup for Multi Domain WordPress with Woocommerce
- User not staying logged into one of sub sites in multisite after SSL
- WordPress automatic Login on other page?
- How to reconnect database to existing wordpress multisite setup after changing site name
- Get multisite count without php?
- Sending SMTP mail using a server with self-signed SSL
- Problem in adding new site on WP multisite
- WordPress and SQL – Update and Insert from another table if column value doesn’t exist
- MySql Database In WordPress Multisite
- WP DB Location for “Next Post to Create” Index Value
- Error establishing a database connection – Multi-site with subsite don’t exisit [duplicate]
- Plugin data shared in Multisite
- Merging versions of wp_posts based on post_title
- WordPress multisite and one database
- WordPress Multisite platform for different city for single db
- Integrating WordPress for blog and other content pages in a web app
- Is there a full explanation on how to share a database with two WordPress sites on same server?
- HyperDB, Multisite – on new site creation put site’s tables to specific database
- Using WordPress multisite is there a way to force HTTPS on specific subsites and not others?