Skip to content

emka.web.id

Menu
  • Home
  • Indeks Artikel
  • Tutorial
  • Tentang Kami
Menu

How to Cancelling Wordpress 3.0 Maintenance Mode?

Posted on April 17, 2012 by Syauqi Wiryahasana
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: [sourcecode language="php"] 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(); } } [/sourcecode] 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.
Seedbacklink

Recent Posts

TENTANG EMKA.WEB>ID

EMKA.WEB.ID adalah blog seputar teknologi informasi, edukasi dan ke-NU-an yang hadir sejak tahun 2011. Kontak: kontak@emka.web.id.

©2024 emka.web.id Proudly powered by wpStatically