Daily Archives: March 27, 2013

Service Temporarily Unavailable In Magento Issue.

503 Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Yup  I Got The Solutions.

There are two main reasons why you may get this error.

1. There is an actual problem with the server, resulting in the 503 error response. In this case, you should contact your hosting provider.

2. Your store has been put in maintenance mode. If Magento sees a file named maintenance.flag in the root directory, it will automatically redirect all requests to the default 503 error page. This can be used during upgrades, etc. to prevent users from accessing the store. The solution is, as already mentioned, to delete/rename the maintenance.flag file.

There might also be a good idea to create a more user friendly “maintenance page” than the 503 error, which is kind of misleading for customers.

Magento

Issue in Accessing wamp magento no admin page.

When I try to open admin Page of Magento in Wamp server it will give me 404 Error.

Yup I got the Solution.

Solution 1

You have to just use below url and you can access you admin panel of Magento.

Try http://localhost/magento/index.php/admin

this should work. After that configure the rewrites in your server (enable mod_rewrite), so that everything works as intended.

Solution 2

The another solution is that you have to enable SEO setting for that follow below steps.

Step 1 : Open your Magento admin panel.

Step 2 : Go to System >> Configuration and click on that.

Step 3 : Then go to the  Configuration >> Web >> Search Engines Optimization

Step 4 : Make Use Web Server Rewrites to Yes.

Hope you got the proper Solutions.

Unable to log into the Admin Panel. After installation of new fresh magento.

Using localhost (WAMP, XAMP, AppServ etc)

magento-can't-login
magento-can’t-login

If you are running Magento on local server using the specific server applications (listed above) try to replace ‘localhost’ in the website URL with’127.0.0.1′. In other words link to the Magento admin panel login page will be ’127.0.0.1/magento/admin’

If this doesn’t help please proceed to other solutions

Edit Varien.php file

Open Magento installation directory and go to the ‘app/code/core/Mage/Core/Model/Session/Abstract’ folder. There open ‘Varien.php’ file with your editor (Adobe Dreamweaver, Notepad ++ etc).

Magento 1.4.x

Depending on your version of Magento the code can be different so I’ll show you several cases.

In the Varien.php file locate the code:

if (!$cookieParams['httponly'])
{
  unset($cookieParams['httponly']);
  if (!$cookieParams['secure'])
  {
       unset($cookieParams['secure']);
       if (!$cookieParams['domain'])
       {
          unset($cookieParams['domain']);
       }
   }
}
if (isset($cookieParams['domain']))
{
  $cookieParams['domain'] = $cookie->getDomain();
}

And comment it. Type /* before the code and */ after. Or just replace it with the code below:

/* if (!$cookieParams['httponly'])
   {
        unset($cookieParams['httponly']);
        if (!$cookieParams['secure'])
        {
            unset($cookieParams['secure']);
            if (!$cookieParams['domain'])
            {
                unset($cookieParams['domain']);
            }
         }
  }
  if (isset($cookieParams['domain']))
  {
      $cookieParams['domain'] = $cookie->getDomain();
  } */

Magento 1.5.x and Magento 1.6.x And Magento 1.7.x

In the Varien.php file locate the code:

$cookieParams = array(
    'lifetime' => $cookie->getLifetime(),
    'path'     => $cookie->getPath(),
    'domain'   => $cookie->getConfigDomain(),
    'secure'   => $cookie->isSecure(),
    'httponly' => $cookie->getHttponly()
);

and replace with

$cookieParams = array(
    'lifetime' => $cookie->getLifetime(),
    'path'     => $cookie->getPath(),
//  'domain'   => $cookie->getConfigDomain(),
//  'secure'   => $cookie->isSecure(),
//  'httponly' => $cookie->getHttponly()
);

The Another Way is better way for Magento.
Step 1 : When you installing magneto they ask for host name don’t write “localhost”.
Step 2 : you have to write 127.0.0.1 in place of “lcoalhost”
Step 3 : Now you can access your admin panel. Without change the varien.php file.