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

Magento upgrade from 1.4.1 to 1.5
 
fga-daniel
Jr. Member
 
Total Posts:  7
Joined:  2010-04-27
 

Hi,

I upgraded my local server yesterday to test how smoothly the transition would be (prior to rolling out the changes to our live server).

Overall, things went quite well. However, I am now getting an error while logged into the Admin panel when attempting to view the PayPal settings (under Sales). On the browser front, I receive a 500 internal server error.

After burrowing through my logs, I have traced it down to the following PHP fatal error:

[01-Jun-2011 04:52:10] PHP Fatal error:  Call to undefined method Mage_Paypal_Model_Config::getApiAuthenticationMethods() in \app\code\core\Mage\Adminhtml\Block\System\Config\Form.php on line 394
Looking at the relevant section of code didn’t reveal any startling details for me. I was hoping some one could take a glance and see if they are able to see any issues. I have included the surrounding code below and pointed out line 394.
if ($e->source_model{
                    
// determine callback for the source model
                    
$factoryName = (string)$e->source_model;
                    
$method false;
                    if (
preg_match('/^([^:]+?)::([^:]+?)$/'$factoryName$matches)) {
                        array_shift
($matches);
                        list(
$factoryName$method) = array_values($matches);
                    
}

                    $sourceModel 
Mage::getSingleton($factoryName);
                    if (
$sourceModel instanceof Varien_Object{
                        $sourceModel
->setPath($path);
                    
}
                    
if ($method{
                        
if ($fieldType == 'multiselect'{
                            $optionArray 
$sourceModel->$method();
                        
else {
                            $optionArray 
= array();
                            foreach (
$sourceModel->$method() as $value => $label{      <-- Line 394
                                $optionArray[] 
= array('label' => $label'value' => $value);
                            
}
                        }
                    } 
else {
                        $optionArray 
$sourceModel->toOptionArray($fieldType == 'multiselect');
                    
}
                    $field
->setValues($optionArray);
                
}
If anyone can provide any sort of insight into why this error may be occurring, I would be extremely grateful.

Thank you,
Dan.

 
Magento Community Magento Community
Magento Community
Magento Community
 
magentoabel3420
Jr. Member
 
Avatar
Total Posts:  9
Joined:  2010-02-09
 
fga-daniel - 31 May 2011 08:15 PM

Hi,

I upgraded my local server yesterday to test how smoothly the transition would be (prior to rolling out the changes to our live server).

Overall, things went quite well. However, I am now getting an error while logged into the Admin panel when attempting to view the PayPal settings (under Sales). On the browser front, I receive a 500 internal server error.

After burrowing through my logs, I have traced it down to the following PHP fatal error:

[01-Jun-2011 04:52:10] PHP Fatal error:  Call to undefined method Mage_Paypal_Model_Config::getApiAuthenticationMethods() in \app\code\core\Mage\Adminhtml\Block\System\Config\Form.php on line 394
Looking at the relevant section of code didn’t reveal any startling details for me. I was hoping some one could take a glance and see if they are able to see any issues. I have included the surrounding code below and pointed out line 394.
if ($e->source_model{
                    
// determine callback for the source model
                    
$factoryName = (string)$e->source_model;
                    
$method false;
                    if (
preg_match('/^([^:]+?)::([^:]+?)$/'$factoryName$matches)) {
                        array_shift
($matches);
                        list(
$factoryName$method) = array_values($matches);
                    
}

                    $sourceModel 
Mage::getSingleton($factoryName);
                    if (
$sourceModel instanceof Varien_Object{
                        $sourceModel
->setPath($path);
                    
}
                    
if ($method{
                        
if ($fieldType == 'multiselect'{
                            $optionArray 
$sourceModel->$method();
                        
else {
                            $optionArray 
= array();
                            foreach (
$sourceModel->$method() as $value => $label{      <-- Line 394
                                $optionArray[] 
= array('label' => $label'value' => $value);
                            
}
                        }
                    } 
else {
                        $optionArray 
$sourceModel->toOptionArray($fieldType == 'multiselect');
                    
}
                    $field
->setValues($optionArray);
                
}
If anyone can provide any sort of insight into why this error may be occurring, I would be extremely grateful.

Thank you,
Dan.

Hi, did you able to solve it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
fga-daniel
Jr. Member
 
Total Posts:  7
Joined:  2010-04-27
 

Unfortunately I was not able to solve the issue and eventually rolled back to 1.4. I plan to attempt another upgrade at a later date—this time I will upgrade to 1.4.2 prior to the 1.5 upgrade. I’ll update if I have more success doing it that way.

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