Magento Forum

maintenance.flag ignored? 
 
sandbagsteve
Newbie
 
Total Posts:  0
Joined:  2013-02-23
 

Hi,

I am just helping a client move some magento sites (v 1.6.2)

I have placed maintenance.flag in the virtual root, but no beans - the site just loads as normal. Any idea why this might be?

The file is loadable via a URL, so it’s not being killed by mod_rewrite anywhere.

==== UPDATE ====

Feel free to delete this post if you feel it won’t benefit anyone, but I found that the index.php file had been modified. The code relating to $maintenanceFile had been commented out:

$compilerConfig 'includes/config.php';
if (
file_exists($compilerConfig)) {
    
include $compilerConfig;
}

$mageFilename 
'app/Mage.php';

// $maintenanceFile = 'maintenance.flag'; 

if (!file_exists($mageFilename)) {
    
if (is_dir('downloader')) {
        header
("Location: downloader");
    
else {
        
echo $mageFilename." was not found";
    
}
    
exit;
}

/* if (file_exists($maintenanceFile)) {
    include_once dirname(__FILE__) . '/errors/503.php';
    exit;
} */
 
Magento Community Magento Community
Magento Community
Magento Community
 
netleaftech
Jr. Member
 
Avatar
Total Posts:  16
Joined:  2013-02-17
 

Thread removed

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top