Magento模板發行管理面板中SUPEE補丁

我有Magento的CE 1.9.2.4一起安裝的補丁(5377,1533,4788等幾乎所有的補丁)。

這個問題也揭示可能/肯定會出現在涉及圖像上傳自己定製的部分,而不僅僅是核心的Magento問題的任何自定義模塊的問題。

wKiom1ghQZmhdyXWAAAze-SEjO8054.jpg-wh_50

  1. 現在,當我安裝了最新的補丁8788通過命令行,我無法打開“添加/編輯”我的自定義模塊,這是之前8788的安裝做工精細的頁面。

我收到以下錯誤,當我嘗試打開我的模塊中的“添加新旗幟”頁面:

致命錯誤:調用一個成員函數setUrl()一個非對象在/home/site_user/public_html/app/code/community/My/Module/Block/Adminhtml/Banner/Add/Tab/Image.php在線57

罪魁禍首線如下:

$this->getUploader()->getConfig()->setUrl(Mage::getModel('adminhtml/url')->addSessionParam()->getUrl('*/*/image'))
  1. 我也看不到管理員已上傳產品圖片Catalog > Manage Products > Any product > Images部分。

下面是核心Mage_Adminhtml_Block_Media_Uploader被稱爲類。

<?php/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    Mage
 * @package     Mage_Adminhtml
 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 *//**
 * Adminhtml media library uploader
 *
 * @category   Mage
 * @package    Mage_Adminhtml
 * @author      Magento Core Team <[email protected]>
 *//**
 * @deprecated
 * Class Mage_Adminhtml_Block_Media_Uploader
 */class Mage_Adminhtml_Block_Media_Uploader extends Mage_Uploader_Block_Multiple{
    /**
     * Constructor for uploader block
     */
    public function __construct()
    {
        parent::__construct();
        $this->getUploaderConfig()->setTarget(Mage::getModel('adminhtml/url')->addSessionParam()->getUrl('*/*/upload'));
        $this->getUploaderConfig()->setFileParameterName('file');
    }}

任何人都讓我知道如何用最少的代碼更改儘可能解決這個問題。


麥進鬥科技:http://www.maijindou.com.cn/


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章