From … 3.3.3? We’re on 3.4.1 now. Usually that error happens due to a theme or plugin on the site where it failed.
Thread Starter
JoPo
(@jopo)
Im going from 3.2.1 to 3.3.3. I checked my server settings to make sure the allow fopen is on and it was… I can upgrade and update the database by going out to the site’s wp-admin and adding upgrade.php to the URL. But when I try to click the network upgrade I get the error I mentioned above.
So I am assuming it is not a theme or plugin issue, because it allows me to upgrade and update the site that it claims is causing the error…
Thread Starter
JoPo
(@jopo)
And a side-note when I click on the URL in the error message, the wp-admin/upgrade.php?step-upgrade_db. I get a page that displays a “0”. I looked into wp-admin/upgrade.php and found this code:
delete_site_transient('update_core');
if ( isset( $_GET['step'] ) )
$step = $_GET['step'];
else
$step = 0;
// Do it. No output.
if ( 'upgrade_db' === $step ) {
wp_upgrade();
die( '0' );
}
$step = (int) $step;
$php_version = phpversion();
$mysql_version = $wpdb->db_version();
$php_compat = version_compare( $php_version, $required_php_version, '>=' );
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
$mysql_compat = true;
else
$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' );
Why would $step = 0? How can I make it not equal 0?
So I am assuming it is not a theme or plugin issue, because it allows me to upgrade and update the site that it claims is causing the error…
Understandable assumption 🙂 But. Did you know that all plugins and themes on your main site impact the updater? And that any plugins or themes on a subsite will impact when that site is being updated?
This is a case where you can either keep doing it by hand and hope it goes away when you make the next upgrade, or disable your plugins and try again.
Hi, I have the exact problem when upgrade my site from 3.4.2 to 3.5, I disabled all plugins but still got
Your server may not be able to connect to sites running on it. Error message: Could not open handle for fopen() to http://my_url/wordpress/my_site/wp-admin/upgrade.php?step=upgrade_db
I can upgrade the site using http://my_url/wordpress/my_site/wp-admin/upgrade.php
Is it a bug or other problem?
Thanks!
fredlim – Please make your own topic.
You can use /upgrade.php though.