Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some problems that could cause Magento to redirect to /downloader/ (Installation wizard)

Tags:

magento

I have a site that has been running fine for awhile. Ran an SVN update after making some changes in the development environment. Now the site keeps redirecting to the Installation Wizard (/downloader/) No matter what I do. Checked and double checked database settings - all seems good. Can anyone tell me what other problems could have this result? I just wish it would give me a freaking error so I could more easily troubleshoot the actual problem.

like image 874
Aaron Lozier Avatar asked Jan 20 '12 16:01

Aaron Lozier


3 Answers

If you check the index.php file you will see the following...

$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;
}

That is to say, if there is no app/Mage.php file and there is a downloader folder, it will redirect to it.

like image 85
Peter O'Callaghan Avatar answered Nov 19 '22 20:11

Peter O'Callaghan


Check is your app/etc/local.xml file found and readable (644) by the webserver, this should solve the problem.

like image 35
Omar Alahmed Avatar answered Nov 19 '22 18:11

Omar Alahmed


I deleted both the /var/cache and /var/session directories. It appears to have solved the problem.

like image 22
Patrick Steenks Avatar answered Nov 19 '22 19:11

Patrick Steenks