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

At least one column must be defined. 
 
aboutweb.dk
Jr. Member
 
Total Posts:  9
Joined:  2009-10-30
 

Running 1.4.1.0 ( a clean install ) There has been a tons of bugs so far, but i have been able to fix all of them. Suddenly (it worked before) When i go to

System - Configuration - Inventory i get this error

At least one column must be defined.

Trace:
#0 /home/action/public_html/app/code/core/Mage/Core/Model/Layout.php(564): Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract->__construct()
#1 /home/action/public_html/app/Mage.php(502): Mage_Core_Model_Layout->getBlockSingleton('cataloginventor...')
#2 /home/action/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(259): Mage::getBlockSingleton('cataloginventor...')
#3 /home/action/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(192): Mage_Adminhtml_Block_System_Config_Form->initFields(Object(Varien_Data_Form_Element_Fieldset), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#4 /home/action/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(91): Mage_Adminhtml_Block_System_Config_Form->initForm()
#5 /home/action/public_html/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(78): Mage_Adminhtml_Block_System_Config_Edit->initForm()
#6 /home/action/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
#7 /home/action/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('edit')
#8 /home/action/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(177): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#9 /home/action/public_html/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
#10 /home/action/public_html/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#11 /home/action/public_html/index.php(78): Mage::run('', 'store')
#12 {main}

Anyone with some ideas on how to fix this error ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Anton Makarenko
Magento Team
 
Avatar
Total Posts:  184
Joined:  2008-05-13
Los Angeles, CA
 

Can you please insert this code at the beginning of Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract::_toHtml():

var_dump(get_class($this));
exit;
It should specify the class name which causes the error. Is it Mage_CatalogInventory_Block_Adminhtml_Form_Field_Minsaleqty?
 
Magento Community Magento Community
Magento Community
Magento Community
 
kfritz
Jr. Member
 
Total Posts:  4
Joined:  2010-06-04
 

I’m getting the same problem.

Where’s the Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract::_toHtml(): ?

Thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kfritz
Jr. Member
 
Total Posts:  4
Joined:  2010-06-04
 

I forgot to mention that I received error from 1.4.0 to 1.4.1.0 but I never added Inventory before I upgraded.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Anthony Sousa
Jr. Member
 
Total Posts:  3
Joined:  2010-01-24
 

I found a way to fix this thread.

I was getting this and others errors(some with Grid.php in Admin > Sales) after I upload my version of magento.
I uploaded the Mage folder again( app > code > core > Mage) and everything was working again.

Backup the Mage folder before doing this.

Regards

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