[英]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.