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

unknown magento connect error on updating
 
bown
Jr. Member
 
Total Posts:  24
Joined:  2009-03-31
 

Hey everybody,

im working on a server with php 5.3 and I have the new version of magento.
If I try to update something or install an magento theme I got an error I can’t understand.

Exception caught:

WarningParameter 3 to PEAR_Task_Replace::validateXml() expected to be a referencevalue given in /var/www/html/bikes/downloader/pearlib/php/PEAR/PackageFile/v2/Validator.php on line 1143

Backtrace
:

#0 [internal function]: mageCoreErrorHandler(2, 'Parameter 3 to ...', '/var/www/html/b...', 1143, Array)
#1 /var/www/html/bikes/downloader/pearlib/php/PEAR/PackageFile/v2/Validator.php(1143): call_user_func(Array, Object(PEAR_PackageFile_v2), Array, Object(PEAR_Config), Array)
#2 /var/www/html/bikes/downloader/pearlib/php/PEAR/PackageFile/v2/Validator.php(1216): PEAR_PackageFile_v2_Validator->_validateFilelist(Array, false, '')
#3 /var/www/html/bikes/downloader/pearlib/php/PEAR/PackageFile/v2/Validator.php(252): PEAR_PackageFile_v2_Validator->_validateFilelist()
#4 /var/www/html/bikes/downloader/pearlib/php/PEAR/PackageFile/v2.php(1920): PEAR_PackageFile_v2_Validator->validate(Object(PEAR_PackageFile_v2), 3)
#5 /var/www/html/bikes/downloader/pearlib/php/PEAR/Registry.php(1226): PEAR_PackageFile_v2->validate()
#6 /var/www/html/bikes/downloader/pearlib/php/PEAR/Registry.php(1619): PEAR_Registry->_addPackage2(Object(PEAR_PackageFile_v2))
#7 /var/www/html/bikes/downloader/pearlib/php/PEAR/Installer.php(1366): PEAR_Registry->addPackage2(Object(PEAR_PackageFile_v2))
#8 /var/www/html/bikes/downloader/pearlib/php/PEAR/Command/Install.php(666): PEAR_Installer->install(Object(PEAR_Downloader_Package), Array)
#9 /var/www/html/bikes/downloader/pearlib/php/PEAR/Command/Common.php(285): PEAR_Command_Install->doInstall('install', Array, Array)
#10 /var/www/html/bikes/downloader/Maged/Pear.php(234): PEAR_Command_Common->run('install', Array, Array)
#11 /var/www/html/bikes/downloader/Maged/Pear.php(301): Maged_Pear->run('install', Array, Array)
#12 /var/www/html/bikes/downloader/Maged/Model/Pear.php(245): Maged_Pear->runHtmlConsole(Array)
#13 /var/www/html/bikes/downloader/Maged/Controller.php(128): Maged_Model_Pear->installPackage('magento-core/Ma...')
#14 /var/www/html/bikes/downloader/Maged/Controller.php(355): Maged_Controller->pearInstallPackagePostAction()
#15 /var/www/html/bikes/downloader/Maged/Controller.php(170): Maged_Controller->dispatch()
#16 /var/www/html/bikes/downloader/index.php(35): Maged_Controller::run()
#17 {main}

maybe someome can help me
thx

bown

 
Magento Community Magento Community
Magento Community
Magento Community
 
imaginarytrout
Jr. Member
 
Avatar
Total Posts:  2
Joined:  2009-09-25
NoPho, AZ
 

anyone else ever get this error?  I should have known better running Magento Commerce on PHP 5.3…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Silvan1
Jr. Member
 
Total Posts:  2
Joined:  2009-09-29
 

Same error here… :(!
Is there a fix for it yet?

 
Magento Community Magento Community
Magento Community
Magento Community
 
imaginarytrout
Jr. Member
 
Avatar
Total Posts:  2
Joined:  2009-09-25
NoPho, AZ
 

Slivan1,

First I can only assume you are running php5.3 or 6.

We resolved the error by following the instructions here:

http://www.magentocommerce.com/boards/viewthread/54158/#t172284
http://spikomoko.wordpress.com/2009/08/19/magento-not-working-on-php-5-3/

Specifically disabling DEPRECATED error messages…

These error messages are only a advice that this string is not allowed in php6!
So at this time we don’t need this deprecated messages (we are using php 5.3).

2. Disable the DEPRECATED messages in Fronend and download manager
open
index.php

change
error_reporting(E_ALL | E_STRICT);

to
error_reporting(E_ALL & E_STRICT & ~E_DEPRECATED);

open
downloader/Maged/Pear.php

change
error_reporting(E_ALL & ~E_NOTICE);

to
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

open
lib/Varien/Pear.php

change
error_reporting(E_ALL & ~E_NOTICE);

to
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

 
Magento Community Magento Community
Magento Community
Magento Community
 
Silvan1
Jr. Member
 
Total Posts:  2
Joined:  2009-09-29
 

Thanks for your fast reply!

But it’s still not working :(.. I tryed it over and over again…
I’m using “Magento ver 1.4.0.0-alpha2” + php 5.3.

Am I missing something? Or is there another solution?

Help is appreciated..!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Freud
Jr. Member
 
Total Posts:  1
Joined:  2008-10-15
 
Silvan1 - 01 October 2009 05:10 AM

Thanks for your fast reply!

But it’s still not working :(.. I tryed it over and over again…
I’m using “Magento ver 1.4.0.0-alpha2” + php 5.3.

Am I missing something? Or is there another solution?


Help is appreciated..!

Add & ~E_WARNING to the above statements, that’ll work.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Armino
Jr. Member
 
Total Posts:  1
Joined:  2009-05-28
 

The value needs to be a reference. Just change the 1443 line in validator.php:
$ret = call_user_func(array($tagClass, ‘validateXml’), $this->_pf, $v, $this->_pf->_config, $save);

to

$ret = call_user_func(array($tagClass, ‘validateXml’), $this->_pf, $v, array(&$this->_pf->_config), $save);

This should solve your problem.

 
Magento Community Magento Community
Magento Community
Magento Community
 
galalala
Jr. Member
 
Total Posts:  15
Joined:  2009-07-15
 

I just made the above change and while I don’t get the error message anymore, now my downloader just freezes.

 
Magento Community Magento Community
Magento Community
Magento Community
 
lausianne
Sr. Member
 
Total Posts:  82
Joined:  2010-03-23
 

Armino’s solution works fine for me. Thanks a lot! (only the line number is 1143, not 1443)

(1.4.0.1, php 5.3)

 
Magento Community Magento Community
Magento Community
Magento Community
 
NetDome
Jr. Member
 
Total Posts:  2
Joined:  2010-04-13
 

well.. I got an error message:

Fatal error: Call to a member function getKeys() on a non-object in Z:\home\localhost\www\magento\downloader\pearlib\php\PEAR\Task\Replace.php on line 65

 
Magento Community Magento Community
Magento Community
Magento Community
 
NetDome
Jr. Member
 
Total Posts:  2
Joined:  2010-04-13
 

well.. I got an error message:

Fatal error: Call to a member function getKeys() on a non-object in Z:\\home\\localhost\\www\\magento\\downloader\\pearlib\\php\\PEAR\\Task\\Replace.php on line 65

 
Magento Community Magento Community
Magento Community
Magento Community
 
Smokersroom
Member
 
Total Posts:  63
Joined:  2007-09-04
 
Freud - 28 October 2009 01:56 PM

Silvan1 - 01 October 2009 05:10 AM
Thanks for your fast reply!

But it’s still not working :(.. I tryed it over and over again…
I’m using “Magento ver 1.4.0.0-alpha2” + php 5.3.

Am I missing something? Or is there another solution?


Help is appreciated..!

Add & ~E_WARNING to the above statements, that’ll work.

I did this, it all worked fine, then when I hit refresh in the downloader…

Fatal error: Method Varien_Object::__tostring() cannot take arguments in H:\XAMPP\xampplite\htdocs\lib\Varien\Object.php on line 488

Bugger…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bayview
Jr. Member
 
Total Posts:  12
Joined:  2007-09-07
 
NetDome - 25 April 2010 01:39 PM

well.. I got an error message:

Fatal error: Call to a member function getKeys() on a non-object in Z:\home\localhost\www\magento\downloader\pearlib\php\PEAR\Task\Replace.php on line 65

I have the same problem, and started a new thread for this specific error here:
http://www.magentocommerce.com/boards/viewthread/185922/

 
Magento Community Magento Community
Magento Community
Magento Community
 
nico5
Sr. Member
 
Avatar
Total Posts:  214
Joined:  2008-02-19
France
 

@Armino

for me it works with :

$ret call_user_func(array($tagClass'validateXml'), $this->_pf$v, &$this->_pf->_config$save);
 
Magento Community Magento Community
Magento Community
Magento Community
 
Bayview
Jr. Member
 
Total Posts:  12
Joined:  2007-09-07
 

Thanks nico5,
I had edited line 1143 as Armino suggested to avoid an error with PHP 5.3.2 originally,
but now cannot remember the exact sequence of problems.

Whatever the case, editing it back to the original as your post indicated now ran fine.

Thanks again, -Ken-

 
Magento Community Magento Community
Magento Community
Magento Community
 
wasa1977
Jr. Member
 
Avatar
Total Posts:  16
Joined:  2008-06-07
Brignoles, France
 

Thanks a lot nico5,

It works also perfect for me with your last suggestion!

Best regards,
Terence

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