When I got to System >> COnfiguration >> Google API from my magento dashboard I get following error.
Fatal error: Call to a member function toOptionArray() on a non-object in /home/dev/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php on line 421
In Form.php on line 421 there is following code.
} else {
$optionArray = $sourceModel->toOptionArray($fieldType == 'multiselect');
}
Thanks
To solve the above error. Please open the above path file.
Replace above code with below:
Source: http://indianicorange.wordpress.com/2010/10/04/fatal-error-call-to-a-member-function-tooptionarray-on-a-non-object/