Struggled fo serveral days, but not solved.
get error when clicking magento connect manager in backend
PHP Fatal error: Class 'Mage' not found in "/abc/downloader/Maged/Controller.php on line 835"
The error also ocurred when just access http://domainname/downloader
The same code works for another host with OS Ubuntu. The error host is CentOS release 6.5
It is not a privilege problem. I run chmod -R a+rwx * to change privilege of all folders in testing environment, but error still exis.
By tracing /abc/downloader/Maged/Controller.php on line 835
It is invoking Mage::setIsDownloader();
Before that line is
Controller.php works. I add a line of output of he variable $this->getMageFilename();, it shows "/abc/app/Mage.php"
And I write a test php and put it in downloader folder. It works:
The test php works. When accessed by http://.../downloader/test.php It can output
I also tried to add include_once('/abc/app/Mage.php'); manually in index.php of downloader folder, but fails.
Any hint to further trace the peoblem?