How to Cancelling WordPress 3.0 Maintenance Mode?

Tonight I’ve try to update my WordPress Plugins, the WP e-Commerce on my system is not the latest stable. But some problem happen when I try to update it. Apparently my hosting in the period don’t support any request of WordPress script. Astaghfirullah, so My WordPress system on Maintenance mode now.

Since WordPress 3.0 beta, the WordPress introducing a Maintenance mode while upgrading the Core or the Plugins. The built-in script on WordPress API is like this:

if ( file_exists(ABSPATH . '.maintenance') && !defined('WP_INSTALLING') ) {
	include(ABSPATH . '.maintenance');
	// If the $upgrading timestamp is older than 10 minutes, don't die.
	if ( ( time() - $upgrading ) < 600 ) {
		if ( file_exists( WP_CONTENT_DIR . '/maintenance.php' ) ) {
			require_once( WP_CONTENT_DIR . '/maintenance.php' );
			die();
		}

		$protocol = $_SERVER["SERVER_PROTOCOL"];
		if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol )
			$protocol = 'HTTP/1.0';
		header( "$protocol 503 Service Unavailable", true, 503 );
		header( 'Content-Type: text/html; charset=utf-8' );
		header( 'Retry-After: 600' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Maintenance</title>

</head>
<body>
	<h1>Briefly unavailable for scheduled maintenance. Check back in a minute.</h1>
</body>
</html>
<?php
		die();
	}
}

So, any method to canceling this mode? It’s quite easy, just remove the .maintenance file on your wordpress root directory. Login with your FTP account to your hosting, open the Web-based File manager and delete the .maintenance file.

Gotta error? Please discuss here.

1 thought on “How to Cancelling WordPress 3.0 Maintenance Mode?”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: