您好,登錄后才能下訂單哦!
我有Magento的CE 1.9.2.4一起安裝的補丁(5377,1533,4788等幾乎所有的補?。?/strong>
這個問題也揭示可能/肯定會出現(xiàn)在涉及圖像上傳自己定制的部分,而不僅僅是核心的Magento問題的任何自定義模塊的問題。
現(xiàn)在,當我安裝了最新的補丁8788通過命令行,我無法打開“添加/編輯”我的自定義模塊,這是之前8788的安裝做工精細的頁面。
我收到以下錯誤,當我嘗試打開我的模塊中的“添加新旗幟”頁面:
致命錯誤:調(diào)用一個成員函數(shù)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('*/*/p_w_picpath'))
我也看不到管理員已上傳產(chǎn)品圖片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 license@magento.com 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 <core@magentocommerce.com> *//** * @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/
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。