【问题标题】:Error in checkout/onepage after Magento patch 6788Magento 补丁 6788 后结帐/单页出错
【发布时间】:2015-11-26 11:08:28
【问题描述】:

我是 Magento 编程的新手,遇到以下问题:

当我应用 Magento 补丁 6788 时,我无法再访问 www.siteurl.com/checkout/onepage/

我认为这与以下几点有关:

<?php

class MW_Ddate_Model_Ddate extends Mage_Core_Model_Abstract
{
  private $inexedDdates = null;

public function _construct()
{
    parent::_construct();
    $this->_init('ddate/ddate');
}

public function getNumberOrderFromNow() {
    if(is_null($this->inexedDdates)) {
        $timeFilter = strtotime('- 1 day');
        $collection = $this->getCollection()
            ->addFieldToFilter('UNIX_TIMESTAMP(ddate)', array('gteq' => $timeFilter));
        $ddateArray = array();
        foreach ($collection as $ddate) {
            $ddateArray[$ddate->getDtime()][$ddate->getDdate()] = $ddate;
        }

       $this->inexedDdates = $ddateArray;
    }

    return $this->inexedDdates;
 }
}
?>

在日志文件中提到了-&gt;addFieldToFilter('UNIX_TIMESTAMP(ddate)'

我认为 UNIX_TIMESTAMP 在我打补丁时已被弃用。

有谁知道我该如何解决这个问题?

编辑: 我在 onepage 上使用的插件是 MageWorld 的交货日期

【问题讨论】:

    标签: php magento magento-1.9


    【解决方案1】:

    联系 MageWorld 并询问他们?如果他们不再支持它;使用SUPEE-6788 developer toolbox 测试模块。该工具箱还可以修复模块和 SUPEE-6788 补丁的兼容性问题。还可以查看“APPSEC-1063,解决可能的 SQL 注入”部分中的 technical details of the SUPEE-6788 patch

    【讨论】:

      猜你喜欢
      • 2016-02-04
      • 2016-02-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-12-19
      • 1970-01-01
      相关资源
      最近更新 更多