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

PEAR error with the install of magento 0.7.14800
 
Calliweb
Member
 
Avatar
Total Posts:  51
Joined:  2007-09-24
France - Paris
 

Hello,

I have a PEAR error trying to install magento-0.7.14800 on a distant server

The log is too long, so i only post a part :

pear/PEAR is already installed and is newer than detected release version 1.6.2
Cannot initialize 
'pear/PEAR-stable'invalid or missing package file
Attempting to discover channel 
"connect.magentocommerce.com/core"...

...

Warningfile_exists() [function.file-exists]open_basedir restriction in effectFile(/) is not within the allowed path(s): (.:/usr/share/pear:/var/www/vhosts/krapahute.comin /usr/share/pear/System.php on line 253
[0] in file_exists
("/"in /usr/share/pear/System.php on line 253
[1] in System
->mkDir(Array[2]in /usr/share/pear/System.php on line 381
[2] in System
->mktemp(Array[1]in /usr/share/pear/PEAR/Downloader.php on line 206
[3] in PEAR_Downloader
->discover("connect.magentocommerce.com/core"in /usr/share/pear/PEAR/Downloader/Package.php on line 1520
[4] in PEAR_Downloader_Package
->_fromString("connect.magentocommerce.com/core/Mage_Pear_Helpers"in /usr/share/pear/PEAR/Downloader/Package.php on line 180
[5] in PEAR_Downloader_Package
->initialize("connect.magentocommerce.com/core/Mage_Pear_Helpers"in /usr/share/pear/PEAR/Downloader.php on line 280
[6] in PEAR_Downloader
->download(Array[8]in /usr/share/pear/PEAR/Command/Install.php on line 597
[7] in PEAR_Command_Install
->doInstall("install"Array[1]Array[8]in /usr/share/pear/PEAR/Command/Common.php on line 285
[8] in PEAR_Command_Common
->run("install"Array[1]Array[8]in /var/www/vhosts/krapahute.com/httpdocs/lib/Varien/Pear.php on line 160
[9] in Varien_Pear
->run("install"Array[1]Array[8]in /var/www/vhosts/krapahute.com/httpdocs/lib/Varien/Pear.php on line 204
[10] in Varien_Pear
->runHtmlConsole(Array[6]in /var/www/vhosts/krapahute.com/httpdocs/app/code/core/Mage/Install/controllers/WizardController.php on line 241
[11] in Mage_Install_WizardController
->installAction() in /var/www/vhosts/krapahute.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php on line 332
[12] in Mage_Core_Controller_Varien_Action
->dispatch("install"in /var/www/vhosts/krapahute.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php on line 149
[13] in Mage_Core_Controller_Varien_Router_Standard
->match(Mage_Core_Controller_Request_Httpin /var/www/vhosts/krapahute.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php on line 166
[14] in Mage_Core_Controller_Varien_Front
->dispatch() in /var/www/vhosts/krapahute.com/httpdocs/app/Mage.php on line 411
[15] in Mage
::run("base"in /var/www/vhosts/krapahute.com/httpdocs/index.php on line 29



downloading channel
.xml ...
unknown channel "connect.magentocommerce.com/core" in "connect.magentocommerce.com/core/Interface_Install_Default"
invalid package name/package file "connect.magentocommerce.com/core/Interface_Install_Default"
Cannot initialize 'connect.magentocommerce.com/core/Interface_Install_Default'invalid or missing package file
Array
(
    
[data] => Array
        (
            
[0] => Array
                (
                    
[0] => Package "pear/PEAR-stable" is not valid
                
)

            
[1] => Array
                (
                    
[0] => Package "connect.magentocommerce.com/core/Mage_Pear_Helpers" is not valid
                
)

            
[2] => Array
                (
                    
[0] => Package "connect.magentocommerce.com/core/Lib_ZF" is not valid
                
)

            
[3] => Array
                (
                    
[0] => Package "connect.magentocommerce.com/core/Lib_Varien" is not valid
                
)

            
[4] => Array
                (
                    
[0] => Package "connect.magentocommerce.com/core/Mage_All" is not valid
                
)

            
[5] => Array
                (
                    
[0] => Package "connect.magentocommerce.com/core/Interface_Frontend_Default" is not valid
                
)

            
[6] => Array
                (
                    
[0] => Package "connect.magentocommerce.com/core/Interface_Adminhtml_Default" is not valid
                
)

            
[7] => Array
                (
                    
[0] => Package "connect.magentocommerce.com/core/Interface_Install_Default" is not valid
                
)

        )

    
[headline] => Install Errors
)


PEAR ERRORinstall failed

Thanks for your help,
Pierre

 
Magento Community Magento Community
Magento Community
Magento Community
 
Calliweb
Member
 
Avatar
Total Posts:  51
Joined:  2007-09-24
France - Paris
 

To resolve the problème, I’ve hasked my hoster to desinstall PEAR on the server and now i have that error :

Warning: include_once(Mage/Core/functions.php[function.include-once]failed to open streamNo such file or directory in /var/www/vhosts/krapahute.com/httpdocs/app/Mage.php on line 41

Warning
: include_once() [function.include]Failed opening 'Mage/Core/functions.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php'in /var/www/vhosts/krapahute.com/httpdocs/app/Mage.php on line 41

Warning
: include_once(Varien/Profiler.php[function.include-once]failed to open streamNo such file or directory in /var/www/vhosts/krapahute.com/httpdocs/app/Mage.php on line 42

Warning
: include_once() [function.include]Failed opening 'Varien/Profiler.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php'in /var/www/vhosts/krapahute.com/httpdocs/app/Mage.php on line 42

Fatal error
: Class 'Varien_Profiler' not found in /var/www/vhosts/krapahute.com/httpdocs/app/Mage.php on line 44
 
Magento Community Magento Community
Magento Community
Magento Community
 
Scott
Guru
 
Avatar
Total Posts:  333
Joined:  2007-08-31
Northwest Ohio
 

Try to chmod magento/lib/pear/php to 777

If still no luck, chmod magento/lib/pear directory to 777 recursively (-R) ... this worked for me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Calliweb
Member
 
Avatar
Total Posts:  51
Joined:  2007-09-24
France - Paris
 

Tanks but it didn’t work for me !!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

@lezebre: looks like files are missing from Magento installation.

You could try to install Magento without using PEAR - upload the complete package and click the top button on install wizard / download page “Continue SVN Installation”.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top