Magento 未定义索引:url
我在 Magento 1.5.1 安装中遇到错误,我不知道如何查找。
它说:“未定义索引:第 283 行 /app/code/core/Mage/Core/Model/Email/Template/Filter.php 中的 url”
我检查了所有电子邮件模板,但一切似乎都正常。即使删除了所有电子邮件模板,错误仍然出现。
有什么提示吗?
提前致谢
I got an error in my Magento 1.5.1 installation, that I don't know how to track down.
It says: "undefined index: url in /app/code/core/Mage/Core/Model/Email/Template/Filter.php on line 283"
I checked all email templates, but everything seems ok. Even with all email templates removed, the error still comes up.
Any hints on that?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这意味着调用
Mage_Core_Model_Email_Template_Filter::mediaDirective()< 时,
$params
和$construction[2]
中缺少url
键/代码>。我的猜测是,您使用
mediaDirective
获得了一些 CMS 块、电子邮件模板、翻译 .csv 文件等,但无法正确分配其url
值。扫描您的文件以
查看哪些文件未能分配其
url
。正确的看起来类似于:
Which means there is the
url
key missing in$params
and$construction[2]
when callingMage_Core_Model_Email_Template_Filter::mediaDirective()
.My guess would be that you got some CMS block, email template, translation .csv file, etc. using a
mediaDirective
which fails to assign itsurl
value correctly.Scan your files for
occurrences to see, which one fails to assign its
url
.A proper one looks similiar to this: