Magento Forum

   
Shipping Methods Blank Screen. Call to a member function toOptionArray() on a non-object in/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php
 
rt840
Jr. Member
 
Total Posts:  1
Joined:  2013-07-05
 

Hi,

This my first time using Magento I the install went fine and added some products. When I went to the shipping methods it had a blank screen. After turning on the errors I got the following error.

Fatal error: Call to a member function toOptionArray() on a non-object in/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php on line 463

I found various answers but nothing worked. I tried disabling compilation as was recommended but to no avail.

I found a line of code in a French forum and replaced line 463. I did allow me to access the shipping methods but then none of the drop downs worked in the configuration panel so it was useless.

if(is_object($sourceModel)){
                            $field
->setValues($sourceModel->toOptionArray($fieldType == 'multiselect'));
                            
else {
                            Mage
::log($e->source_model);
                            
}

Any help will be greatly appreciated.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
shopforspa
Jr. Member
 
Total Posts:  3
Joined:  2013-04-14
 

Did you find a solution for this? I have 2 fresh installs, both form the same .zip installer, running side by side — one has exactly this issue, the other does not?!

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