Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 1 of 2
Fatal error: main() [function.require]: Failed opening required ‘/home/content/p/1/4/html/magento/includes/downloader/pearlib/php/PEAR.php’ (include_p
 
tronics
Jr. Member
 
Total Posts:  11
Joined:  2010-02-19
 

Unable to access :

Magento Connect Manyourager
or
Package Extensions

Error :

Fatal error: main() [function.require]: Failed opening required ‘/home/content/p/1/4/html/magento/includes/downloader/pearlib/php/PEAR.php’ (include_path=’/home/content/p/1/4/html/magento/includes/downloader/pearlib/php:/home/content/p/1/4/magento/includes/src:.:/usr/local/php5/lib/php’) in /home/content/p/1/4/magento/includes/src/Varien/Pear.php on line 265

Magento Version 1.4

There must be a way to access directly Magento Connect Manager without going through the admin ?

Please help…

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mana85
Jr. Member
 
Total Posts:  4
Joined:  2010-01-19
 

I have the same problem here… did you managed to solve it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
WebhostUK LTD
Sr. Member
 
Avatar
Total Posts:  163
Joined:  2009-08-27
UK
 

Hello,

This seems to be server end issue do you have PEAR installed on your server ..check if its installer or not?

 
Magento Community Magento Community
Magento Community
Magento Community
 
mana85
Jr. Member
 
Total Posts:  4
Joined:  2010-01-19
 

Tks WebhostUK LTD, I checked and I don’t have PEAR installed so this is it.
Tks for the tip.

 
Magento Community Magento Community
Magento Community
Magento Community
 
markus79
Jr. Member
 
Avatar
Total Posts:  16
Joined:  2009-02-17
Vienna
 

Hi,

ITDotCom - 22 February 2010 03:57 AM

Unable to access :

Magento Connect Manyourager
or
Package Extensions

Error :

Fatal error: main() [function.require]: Failed opening required ‘/home/content/p/1/4/html/magento/includes/downloader/pearlib/php/PEAR.php’ (include_path=’/home/content/p/1/4/html/magento/includes/downloader/pearlib/php:/home/content/p/1/4/magento/includes/src:.:/usr/local/php5/lib/php’) in /home/content/p/1/4/magento/includes/src/Varien/Pear.php on line 265

this error also appears when clearing the storage cache and the compile mode is still enabled.
I can connect now by deactivating the compile mode. But when activating the compile mode the error comes again.
Anyone able to fix this?

Markus

 
Magento Community Magento Community
Magento Community
Magento Community
 
LaSto
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2008-10-21
Bucharest, Romania
 

I have the same problem.
The problem is that the folder in witch pear resides IS NOT : /home/content/p/1/4/html/magento/includes/downloader/pearlib/php/PEAR.php
but
/home/content/p/1/4/html/magento/downloader/pearlib/php/PEAR.php

the INCLUDES is erronated put there

HOW can we get past this problem?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Fidelity
Member
 
Avatar
Total Posts:  49
Joined:  2007-09-20
 

Need a solution for this too… I have exactly the same as LaSto.

Pear is located in:
./downloader/pearlib/php/PEAR.php

Not in:
./includes/downloader/pearlib/php/PEAR.php

 
Magento Community Magento Community
Magento Community
Magento Community
 
okdl
Jr. Member
 
Total Posts:  3
Joined:  2010-03-12
 

I too have this exact problem when compiler is enabled.  It seems that nobody has any solution yet.  Maybe there aren’t many experts hangs out in this forum?  Can anyone recommends a good place to post magento questions?  Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
USA-Goods
Jr. Member
 
Total Posts:  2
Joined:  2010-03-28
 

Same issue…
Fatal error: main() [function.require]: Failed opening required…

Spent many hours searching without any real solutions. Checked permissions on various folders and files including php.ini within the Downloader folder.

Frustrated and could use some help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jaemszhen
Jr. Member
 
Avatar
Total Posts:  26
Joined:  2009-09-26
Adelaide, South Australia
 

The same problem.
And I am not sure the cause is the safe mode or not.

 
Magento Community Magento Community
Magento Community
Magento Community
 
saikku
Jr. Member
 
Total Posts:  11
Joined:  2008-09-20
 

If you’re under a linux server, you can go (by an ssh shell) to your “includes” directory and type :

ln -../downloaderdownloader

It will creat a link to the real path and then you’ll don’t have to modify a single line of code wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
jaemszhen
Jr. Member
 
Avatar
Total Posts:  26
Joined:  2009-09-26
Adelaide, South Australia
 

I found a easy method to fix this problem.

Just upload downloader folder to include/

 
Magento Community Magento Community
Magento Community
Magento Community
 
Farfieldmedia
Jr. Member
 
Total Posts:  1
Joined:  2010-05-11
 

Hi people,

we had the same problem - solved it by copying /downloads folder into /includes which worked fine. A few weeks later we deleted and re-installed the whole app (due to a separate issue) and it worked out the box, no tweaking needed.

However last night, out of the blue Magento Connect suddenly stopped working… Nothing had changed on the server in the mean time so dont understand what has changed. I ended up copying downloads into /includes again to get it working, but I’m not very happy about using this method…

Why does this keep happening?

What happens when there are updates to files within /downloads?

Is it a server issue or a Mage bug?

Anybody know?

 
Magento Community Magento Community
Magento Community
Magento Community
 
rbostan
Jr. Member
 
Total Posts:  25
Joined:  2007-09-12
Istanbul - Turkey
 

Hi folks,

Find below code (~line 12) in includes/src/Varien/Pear.php:

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

change it to :

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

and Ta Taaaa smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
wsisam
Jr. Member
 
Total Posts:  6
Joined:  2010-06-02
 
rbostan - 22 June 2010 04:38 AM

Hi folks,

Find below code (~line 12) in includes/src/Varien/Pear.php:

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

change it to :

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

and Ta Taaaa smile

After doing this I get the following error message:

Warning: include(pear.php) [function.include]: failed to open stream: No such file or directory in /var/www/vhosts/jsimonshirts.com/httpdocs/includes/src/Varien_Autoload.php on line 93

Trace:
#0 /var/www/vhosts/jsimonshirts.com/httpdocs/includes/src/Varien_Autoload.php(93): mageCoreErrorHandler(2, ‘include(pear.ph...’, ‘/var/www/vhosts...’, 93, Array)
#1 /var/www/vhosts/jsimonshirts.com/httpdocs/includes/src/Varien_Autoload.php(93): Varien_Autoload::autoload()
#2 [internal function]: Varien_Autoload->autoload(’pear’)
#3 [internal function]: spl_autoload_call(’pear’)
#4 /var/www/vhosts/jsimonshirts.com/httpdocs/includes/downloader/pearlib/php/PEAR.php(102): class_exists(’pear’)
#5 /var/www/vhosts/jsimonshirts.com/httpdocs/includes/src/Varien/Pear.php(27): require_once(’/var/www/vhosts...’)
#6 /var/www/vhosts/jsimonshirts.com/httpdocs/includes/src/Varien/Pear/Package.php(3): require_once(’/var/www/vhosts...’)
#7 /var/www/vhosts/jsimonshirts.com/httpdocs/app/code/core/Mage/Adminhtml/controllers/Extensions/LocalController.php(27): require_once(’/var/www/vhosts...’)
#8 /var/www/vhosts/jsimonshirts.com/httpdocs/includes/src/__default.php(15214): include(’/var/www/vhosts...’)
#9 /var/www/vhosts/jsimonshirts.com/httpdocs/includes/src/__default.php(15184): Mage_Core_Controller_Varien_Router_Standard->_includeControllerClass(’/var/www/vhosts...’, ‘Mage_Adminhtml_...’)
#10 /var/www/vhosts/jsimonshirts.com/httpdocs/includes/src/__default.php(15097): Mage_Core_Controller_Varien_Router_Standard->_validateControllerClassName(’Mage_Adminhtml’, ‘extensions_loca...’)
#11 /var/www/vhosts/jsimonshirts.com/httpdocs/includes/src/__default.php(14752): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#12 /var/www/vhosts/jsimonshirts.com/httpdocs/includes/src/__default.php(16949): Mage_Core_Controller_Varien_Front->dispatch()
#13 /var/www/vhosts/jsimonshirts.com/httpdocs/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#14 /var/www/vhosts/jsimonshirts.com/httpdocs/index.php(79): Mage::run(’’, ‘store’)
#15 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
xmroger
Jr. Member
 
Total Posts:  1
Joined:  2010-03-06
 

thanks to wsisam
i have solved this problem with your instruction.
thanks a lot!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 2