简体   繁体   English

Magento补丁6788之后结帐/单页错误

[英]Error in checkout/onepage after Magento patch 6788

I am a newbie in the Magento programming and I have the following problem: 我是Magento编程的新手,并且遇到以下问题:

When I applied the Magento Patch 6788 I can't reach the www.siteurl.com/checkout/onepage/ anymore. 当我应用Magento补丁6788时,我再也无法访问www.siteurl.com/checkout/onepage/

I think it has something to do with the following: 我认为这与以下方面有关:

<?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;
 }
}
?>

In the logfile there was something said about ->addFieldToFilter('UNIX_TIMESTAMP(ddate)' 在日志文件中有关于->addFieldToFilter('UNIX_TIMESTAMP(ddate)'

I think the UNIX_TIMESTAMP is deprecated when I did the patch. 我认为在执行补丁时不建议使用UNIX_TIMESTAMP

Does anyone knows how I can solve this problem? 有谁知道我该如何解决这个问题?

EDIT: The plugin which I use on the onepage is the Delivery Date from MageWorld 编辑:我在一页上使用的插件是MageWorld的交货日期

Contact MageWorld and ask them? 联系MageWorld并询问他们? If they don't support it anymore; 如果他们不再支持它; test the module with SUPEE-6788 developer toolbox . 使用SUPEE-6788开发人员工具箱测试模块。 The toolbox can also fix compatibility issues with modules and the SUPEE-6788 patch. 该工具箱还可以解决模块和SUPEE-6788补丁程序的兼容性问题。 Also have a look at the technical details of the SUPEE-6788 patch at the "APPSEC-1063, addressing possible SQL injection" section. 也可以在“ APPSEC-1063,解决可能的SQL注入”部分中查看SUPEE-6788补丁技术细节

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM