views:

137

answers:

3

Hello, I just installed Magento 1.4.1.1 on my Ubuntu Apache server and everything is working just fine aside from one thing: The Magento Connect Manager simply brings up a blank page. In Firebug it is just <html><body></body></html>. I read that it might be permissions but I gave 777 permissions to the Magento directory and all subdirectories and still the blank page. Any ideas?

+1  A: 

Alright, for some reason it was looking for a PEAR file in a non-existant location. Magento included this in line 27 of PEAR.php:

$_pearDir = dirname(dirname(dirname(__FILE__))) . DS . 'downloader' . DS . 'pearlib';

However, this led it to a directory that included "/includes", which wasn't correct. I ended up just putting

$_pearDir = dirname(dirname(dirname(__FILE__))) . DS . '../downloader' . DS . 'pearlib';

Notice the only difference is the "../" in front of downloader to remove the "/includes" directory from the path. But my real question would be why Magento would have this error in the first place. This couldn't have happened to everyone who installed Magento on an Ubuntu server, right?

F_C
worked for me... thanks
WalterJ89
A: 

I got the same error today without changing anything (no updates etc.) ... blank page when trying to access Magento Connect from backend.

With the help of the answer above I was able to get it to work again. So in Magento base directory go to /includes/src/Varien/ and make the change in Pear.php (include ../ before download) in line 12.

It still would be nice to know what really caused this problem.

Cheebong
A: 

F_C's solution does not work for me, if I've followed it correctly.

I have a fresh install of Magento 1.4.1.1 on Mac OS X Snow Leopard running MAMP. Immediately after the install completes, I log in to the backend and click on System > Magento Connect > Magento Connect Manager. I see a blank white screen. The Safari Activity window tells me the status of the page is "internal server error."

The OP's comments are vague about the location of PEAR.php, but based on his capitalization of the filename, I assume it's here: magento/lib/PEAR/PEAR.php. Opening this file, I looked for line 27, which is an empty line using TextMate. In fact, the code shown in F_C's comment is not found in this file at all.

Cheebong's post says to edit the Pear.php file in the /includes/src/Varien directory, which doesn't exist. However, /lib/Varien/ has a Pear.php file. Opening the file reveals the OP's code snippet, which I edited based on his recommendation by adding "../" before "downloader". Saving the file, reloading the Magento backend and clicking System > Magento Connect > Magento Connect Manager brings me to the same result: a blank white screen.

Any other suggestions for how I might solve this problem?

Nathan Roberts