hi, we are facing the mentioned error
Fatal error: Class 'Mage_Payment_Model_Method_Cc' not found in /home/host/public_html/app/code/core/Mage/Payment/Model/Method/Ccsave.php on line 29
we have just taken the code from our main server and hosted the same into our testing server and now we are getting this error and we have not changed any code.(The testing server is a new server)
Hi @sgminte,
Which specific version of Magento are you using?
Did you check if file /app/code/core/Mage/Payment/Model/Method/Cc.php exists into your code ?
its Magento 1.9x
we have verified the code and it is working in live server, but not working in testing server
I understand but can you check if the file /app/code/core/Mage/Payment/Model/Method/Cc.php is on your Testing server?
please find the code
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magento.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magento.com for more information.
*
* @category Mage
* @package Mage_Payment
* @copyright Copyright (c) 2006-2014 X.commerce, Inc. (http://www.magento.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Mage_Payment_Model_Method_Ccsave extends Mage_Payment_Model_Method_Cc
{
protected $_code = 'ccsave';
protected $_canSaveCc = true;
protected $_formBlockType = 'payment/form_ccsave';
protected $_infoBlockType = 'payment/info_ccsave';
}
I am also facing same error with same file. Any help? my version is also 1.9.3.3
After looking into the caus ei found along with Ccsave.php there is another file. Cc.php which was missing in this same folder./app/code/core/Mage/Payment/Model/Method/cc.php.
This file had class defination of all the required code to show on order details and invoice page.