移植到新服务器后,Magento 1.702致命错误

时间:2016-03-07 22:36:37

标签: php magento-1.7

刚刚完成将Magento网站迁移到新服务器。使用以下步骤:

-Backup the database in the backend
-Import the database on new server
-Copy all files from old server to new server
-Set correct file permissions
-Update /app/etc/local.xml
-Update secure and unsecure base_url in database
-Remove cache and session files

网站本身运作良好,但现在似乎在订单按钮上出现致命错误(请参阅screenshot of source

这是错误引用的代码块:

/**
 * Product type instance factory
 *
 * @param   Mage_Catalog_Model_Product $product
 * @param   bool $singleton
 * @return  Mage_Catalog_Model_Product_Type_Abstract
 */
public static function factory($product, $singleton = false)
{
    $types = self::getTypes();
    $typeId = $product->getTypeId();

    if (!empty($types[$typeId]['model'])) {
        $typeModelName = $types[$typeId]['model'];
    } else {
        $typeModelName = self::DEFAULT_TYPE_MODEL;
        $typeId = self::DEFAULT_TYPE;
    }

    if ($singleton === true) {
        $typeModel = Mage::getSingleton($typeModelName);
    }
    else {
        $typeModel = Mage::getModel($typeModelName);
        $typeModel->setProduct($product);
    }
    $typeModel->setConfig($types[$typeId]); /**this is line 80**/
    return $typeModel;
}

我还尝试进行全新安装并复制所需的文件,但这也无效。

这是我第一次与Magento合作,在线搜索解决方案并没有对我有用。有人能指出我正确的方向吗?

0 个答案:

没有答案