[英]Error in checkout/onepage after Magento patch 6788
我是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;
}
}
?>
在日志文件中有关于->addFieldToFilter('UNIX_TIMESTAMP(ddate)'
is deprecated when I did the patch. 我认为在执行补丁时不建议使用 。
有谁知道我该如何解决这个问题?
编辑:我在一页上使用的插件是MageWorld的交货日期
联系MageWorld并询问他们? 如果他们不再支持它; 使用SUPEE-6788开发人员工具箱测试模块。 该工具箱还可以解决模块和SUPEE-6788补丁程序的兼容性问题。 也可以在“ APPSEC-1063,解决可能的SQL注入”部分中查看SUPEE-6788补丁的技术细节 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.