cancel
Showing results for 
Search instead for 
Did you mean: 

maintenance mode and password not working

maintenance mode and password not working

Hi to all,

I'm experiencing a weird problem on a site with magento 1.x.

Actually suddenly the site goes in maintenance mode and I'm not able to login administration panel anymore.

Any suggestion?

5 REPLIES 5

Re: How to Display a custom file while in Maintenance Mode

Login with FTP or the control panel of your hosting and remove the file maintenance.flag

Re: How to Display a custom file while in Maintenance Mode

Hi@angelo_palumbo,

You can keep open the website for your IP only in the maintenance mode.
You need to edit index.php file and edit code

$ip = $_SERVER['REMOTE_ADDR'];
$allowed = array('69.65.23.100'); // you need to add your IP here
 
if (!file_exists($mageFilename)) {
    if (is_dir('downloader')) {
        header("Location: downloader");
    } else {
        echo $mageFilename." was not found";
    }
    exit;
}
 
if (file_exists($maintenanceFile) && !in_array($ip, $allowed)) {
    include_once dirname(__FILE__) . '/errors/503.php';
    exit;
}

You can get your ip address from below website:
https://whatismyipaddress.com/


For more info:
https://www.siteground.com/tutorials/magento-1/maintenance-mode/

I hope it will help you!

Re: How to Display a custom file while in Maintenance Mode

Thanks for your answers but there is an error,

my problem is about an automatic maintenance mode and a maybe connected administration password not working.

It happened 3 times in last 2 days.

Re: How to Display a custom file while in Maintenance Mode

@angelo_palumboSeems like your site is crashing possibly due to lack of CPU or Mysql. Do you have a screenshot of what you seeing? Did you get chance to check var/report for error files or exception log file to see if you can see an error?

 

Site does not goes in maintenance mode by itself. There must be something else going on which might be throwing Magento default error page with looks very similar to maintenance mode page.

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: How to Display a custom file while in Maintenance Mode

Thanks guys, the problem was an error about an extension.