- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的 Magento 安装遇到问题,在 CMS 中,当我使用 wysiwig 编辑器插入图像时,文件夹不断重复打开。
文件夹结构应为:
- infortis
- brands
- fortis
- ultimo
但是我得到的是:
-infortis
-infortis
-infortis
-infortis
-infortis
而且这种情况不断重复。
Magento 版本 1.8.1。任何帮助表示赞赏。
最佳答案
我发现以下编辑使其按预期工作,并且也适用于非符号链接(symbolic link)(开发)资源:
在与提到的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;
}
关于Magento 1.8.1 : media directory bug if using symlink,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21434859/
我尝试在 Localhost、XAMPP for PHP 5.6.32 和 Windows 8 上运行 Yii2 应用程序,但出现此错误: 我该如何解决这个问题。 谢谢 最佳答案 当您没有以管理权限在
我的代码总是打印符号链接(symbolic link)失败,即使它创建了符号链接(symbolic link),为什么会这样? 我正在编写我自己使用的所有核心实用程序,因为我想要体验并且不喜欢现有的实
我的同事认为他的想法很棒。他不喜欢包含许多点出现的路径(超过 2 或 3 个)。他的想法如下:使用 postinstall 命令创建指向 node_modules 中感兴趣的模块的符号链接(symbo
我几乎完全使用 WSL,并且只切换到主窗口来浏览和运行 Windows 原生程序。我有一个位于 /mnt/c/myrepo 的 git 存储库.为了“安装”/mnt/c/myrepo 中的代码我需要将
我正在尝试使用 pip 安装 ObsPy。 在下面的 cc 命令上安装失败: cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/usr/
我想知道是否有一些相当简单的 shell 咒语来计算目录的磁盘使用情况(使用 du 命令)但具有以下要求:指向目录内文件/子目录的符号链接(symbolic link)应该不遵循,但应该遵循到外部文件
我在 Windows 64 位上使用 Oracle Java 7。 当我使用 Files.createSymbolicLink 创建符号链接(symbolic link)时,我注意到这种行为: 如果目
关于我的另一个关于建模真实的面向用户的树结构的问题(Using firebase tree structure to represent a "document outline" structure
我正在尝试创建一个文件夹,该文件夹将包含另一个文件夹中的所有文件。 这是树形结构。我要符号链接(symbolic link) source至target . . ├── source-folder
我的应用程序使用 log4j 并将日志写入根目录中的目录 A。我想在不对应用程序进行任何更改的情况下将日志移出到已安装的驱动器。 我可以使用软符号链接(symbolic link)来做到这一点吗?我创
我有以下文件夹: 文件夹A 文件夹 B(这是指向文件夹 A 的符号链接(symbolic link)) 问题是,当我访问文件夹 B 时,我可以无限深入(即文件夹 A > 文件夹 B > 文件夹 B >
当我尝试使用 homebrew 安装库(brew install aLibrary)时,出现以下错误: Could not symlink lib/pkgconfig/aFile /usr/local
为什么会这样: #include #include #include int main(void) { const char filea[] = "../test/hunspel
在某些平台 (Windows) 上,File.symlink不受 Ruby 支持,引发 NotImplemented异常(exception)。我有一些代码可以使用或不使用符号链接(symbolic
我正在我的服务器上安装一个 PHP 脚本作为测试,但我遇到了这个错误。我无法理解脚本代码有什么问题。 我在应用程序上启用 Debug模式并收到此错误消息: Call to undefined func
当我在 lubridate 中运行 now() 时出现此错误。 Warning: Your system is mis-configured: ‘/etc/localtime’ is not a sy
这是一个测试: $ ln -nfs ~/.ssh ssh # Create a symlink in current dir. $ ack -g ssh # => nothing
我现在正试图弄清楚如何将一些数据备份到 S3。 我们有一个使用 rsnapshot 实现的本地备份系统,并且运行良好。我们正在尝试使用带有 --sync 选项的 s3cmd 来模仿 rsync 来传输
我有一个包含多个文件夹的网站,我试图在我的 .htaccess 中修复它们。过了一会儿,我有了一个很大的 .htaccess,其中包含有冲突的规则。 现在每次我想添加一个文件夹时,我都必须将它添加到
目前我使用的是 cabal-install 1.16.0我尝试更新 cabal-install 因为有人告诉我有更新版本的 ghc (7.6.1) 可用。除了这条消息之外,安装结果非常成功。 警告:无
我是一名优秀的程序员,十分优秀!