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

Install failure V1.0 Invalid argument supplied for foreach()
 
rolade
Jr. Member
 
Total Posts:  15
Joined:  2008-03-16
 

Hi, I tried to install Magento on Unix hosting but the second page, after the License Agreement, i get the first error…

WarningInvalid argument supplied for foreach() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Model/Locale.php on line 241
[0] in Mage_Core_Model_Locale
->getOptionCurrencies() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Install/Block/Locale.php on line 134
[1] in Mage_Install_Block_Locale
->getCurrencySelect() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/design/install/default/default/template/install/locale.phtml on line 50
[2] in 
include("/home/glaifa/domains/glaifasupplies.com/public_html/magento/app/design/install/default/default/templ"in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Template.php on line 120
[3] in Mage_Core_Block_Template
->fetchView("install/default/default/template/install/locale.phtml"in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Template.php on line 152
[4] in Mage_Core_Block_Template
->renderView() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Template.php on line 169
[5] in Mage_Core_Block_Template
->_toHtml() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php on line 553
[6] in Mage_Core_Block_Abstract
->toHtml() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Text/List.php on line 36
[7] in Mage_Core_Block_Text_List
->_toHtml() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php on line 553
[8] in Mage_Core_Block_Abstract
->toHtml() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php on line 430
[9] in Mage_Core_Block_Abstract
->_getChildHtml("content"1in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php on line 407
[10] in Mage_Core_Block_Abstract
->getChildHtml("content"in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/design/install/default/default/template/page.phtml on line 94
[11] in 
include("/home/glaifa/domains/glaifasupplies.com/public_html/magento/app/design/install/default/default/templ"in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Template.php on line 120
[12] in Mage_Core_Block_Template
->fetchView("install/default/default/template/page.phtml"in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Template.php on line 152
[13] in Mage_Core_Block_Template
->renderView() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Template.php on line 169
[14] in Mage_Core_Block_Template
->_toHtml() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php on line 553
[15] in Mage_Core_Block_Abstract
->toHtml() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Model/Layout.php on line 505
[16] in Mage_Core_Model_Layout
->getOutput() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php on line 318
[17] in Mage_Core_Controller_Varien_Action
->renderLayout() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Install/controllers/WizardController.php on line 143
[18] in Mage_Install_WizardController
->localeAction() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php on line 341
[19] in Mage_Core_Controller_Varien_Action
->dispatch("locale"in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php on line 150
[20] in Mage_Core_Controller_Varien_Router_Standard
->match(Mage_Core_Controller_Request_Httpin /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php on line 147
[21] in Mage_Core_Controller_Varien_Front
->dispatch() in /home/glaifa/domains/glaifasupplies.com/public_html/magento/app/Mage.php on line 424
[22] in Mage
::run("default"in /home/glaifa/domains/glaifasupplies.com/public_html/magento/index.php on line 40

Server configuration:
Apache/1.3.37 (Unix)
PHP/5.2.3
mod_ssl/2.8.28
OpenSSL/0.9.8a
mod_perl/1.29
MyCript 2.5.8
SQL 4.2.21

I already tried the PDOMYSQL and ZEND hack, but then I got an error, because I’m not on PHP 5.2.5, but on 5.2.3

 
Magento Community Magento Community
Magento Community
Magento Community
 
rolade
Jr. Member
 
Total Posts:  15
Joined:  2008-03-16
 

anybody, i"m out of options…

info.php here

 
Magento Community Magento Community
Magento Community
Magento Community
 
rolade
Jr. Member
 
Total Posts:  15
Joined:  2008-03-16
 

OKay, i’ve fixed it… although, fix is a big word. I trashed everything and used the magento auto-installer. That worked out just fine. Installed it in less then 10 min.

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