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

Bug in magento connect
 
Mitirapa
Jr. Member
 
Total Posts:  30
Joined:  2007-08-31
 

Hi, after the upgrade 1.1.6 to 1.1.7 i have this in magento connect :

<h2>Exception caught:</h2>
<
br/>
<
h3>WarningInvalid argument supplied for foreach()  in /home/web/domain.com/downloader/template/pear/packages.phtml on line 71</h3>
<
br/>
<
h4>Backtrace:</h4>
<
pre>#0 /home/web/domain.com/downloader/template/pear/packages.phtml(71): mageCoreErrorHandler(2, 'Invalid argumen...', '/home/web/dom...', 71, Array)
#1 /home/web/domain.com/downloader/Maged/View.php(53): include('/home/web/jbc-s...')
#2 /home/web/domain.com/downloader/Maged/Controller.php(107): Maged_View->template('pear/packages.p...')
#3 /home/web/domain.com/downloader/Maged/Controller.php(344): Maged_Controller->pearPackagesAction()
#4 /home/web/domain.com/downloader/Maged/Controller.php(164): Maged_Controller->dispatch()
#5 /home/web/domain.com/downloader/index.php(29): Maged_Controller::run()
#6 {main}</pre>

and in visual, i lost all package inside : Channel: connect.magentocommerce.com/community
(picture)

Image Attachments
bug.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
Mitirapa
Jr. Member
 
Total Posts:  30
Joined:  2007-08-31
 

solved

downloader/templates/pear/packages.phtml in line 71
change to

<?php if (isset ($pkg['actions'])) : foreach ($pkg['actions'as $k=>$v): ?>
                    
<option value="<?php echo $k ?>"><?php echo $v ?></option>
                    
<?php endforeach; endif; ?>

tks QDog !

 
Magento Community Magento Community
Magento Community
Magento Community
 
harkman
Member
 
Avatar
Total Posts:  60
Joined:  2008-01-06
Ravensburg, Germany
 

Or update your PHP.

Look here for more info.

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