I’m receiving the same error when clicking the “check for upgrades” button after attempting to upgrade to 1.3.2, but none of the solutions provided in the forum to date fix the problem (i.e. I tried ./pear upgrade-all , ./pear -f install magento-core/Mage_All_Latest). All of these commands run and report no problems but do nothing to fix the error.
Magento admin reports the Magento version as 1.2.1 but Magento connect says the core components are stable at version 1.3.2. What is happening here? How can I fix without reinstalling the site? Have lots of modules installed and this is a live shop, so a complete reinstall is not really an option.
The error message received when clicking Check for Upgrades is:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /public_html/downloader/pearlib/php/PEAR/REST/10.php on line 680
#0 /public_html/downloader/pearlib/php/PEAR/REST/10.php(680): mageCoreErrorHandler(2, ‘in_array() [listLatestUpgrades(’stable’, false)
#2 /public_html/downloader/pearlib/php/PEAR/Command/Common.php(271): PEAR_Command_Remote->doListUpgrades(’http://connect....’, ‘alpha’, Array, ‘connect.magento...’, Object(Maged_Pear_Registry))
#3 /public_html/downloader/Maged/Pear.php(234): PEAR_Command_Common->run(’list-upgrades’, Array, Array)
#4 /public_html/downloader/Maged/Model/Pear.php(100): Maged_Pear->run(’list-upgrades’, Array, Array)
#5 /public_html/downloader/template/pear/packages.phtml(49): Maged_Model_Pear->getAllPackages(’list-upgrades’, Array)
#6 /public_html/downloader/Maged/View.php(59): include(’/home/intimate/...’)
#7 /public_html/downloader/Maged/Controller.php(113): Maged_View->template()
#8 /public_html/downloader/Maged/Controller.php(350): Maged_Controller->pearPackagesAction(’pear/packages.p...’)
#9 /public_html/downloader/Maged/Controller.php(170): Maged_Controller->dispatch()
The actual code at this line in 10.php is
if (in_array($new_state, $this->betterStates($inst_state, true)))
I’m new to Magento so don’t really know what it is doing there or how to troubleshoot/debug this one. There is nothing in the site’s error log or the apache error log.
Can anyone help me with some information on how to troubleshoot this? Anything anyone can tell me would be MUCH appreciated.