我發現,以下編輯使得它的工作如預期,並與非符號鏈接(DEV)資源工程,以及:
在同一個班mentiond Mage_Cms_Helper_Wysiwyg_Images
,應用這些補丁:
# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- <html>Images.php (<b>Today 4:14:50 PM</b>)</html>
+++ <html><b>Current File</b></html>
@@ -223,7 +223,7 @@
public function getCurrentUrl()
{
if (!$this->_currentUrl) {
- $path = str_replace(Mage::getConfig()->getOptions()->getMediaDir(), '', $this->getCurrentPath());
+ $path = str_replace(realpath(Mage::getConfig()->getOptions()->getMediaDir()), '', $this->getCurrentPath());
$path = trim($path, DS);
$this->_currentUrl = Mage::app()->getStore($this->_storeId)->getBaseUrl('media') .
$this->convertPathToUrl($path) . '/';
# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- <html>Images.php (<b>f47f0ff</b>)</html>
+++ <html><b>Current File</b></html>
@@ -68,7 +68,7 @@
*/
public function getStorageRoot()
{
- return Mage::getConfig()->getOptions()->getMediaDir() . DS . Mage_Cms_Model_Wysiwyg_Config::IMAGE_DIRECTORY
+ return realpath(Mage::getConfig()->getOptions()->getMediaDir()) . DS . Mage_Cms_Model_Wysiwyg_Config::IMAGE_DIRECTORY
. DS;
}
只是爲了驗證,你使用任何第三方擴展或插件爲你編輯或媒體瀏覽器?這是否也發生在其他PC /瀏覽器上? 「media/wysiwyg」目錄中的目錄結構是否正確?最後:打開編輯器或圖像上傳器時是否收到任何javascript錯誤?對不起,所有的問題,只是想獲得更好的問題:) –
@sandermangel我可以證實,這是一個問題,我們也有同樣的問題:(似乎'Mage_Cms_Helper_Wysiwyg_Images'不能很好地處理鏈接 – dmanners
同樣的問題在EE上確認1.13.1.0 –