Magento 未定义索引:url

发布于 2025-01-05 16:16:21 字数 213 浏览 1 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不一样的天空 2025-01-12 16:16:21

这意味着调用 Mage_Core_Model_Email_Template_Filter::mediaDirective()< 时,$params$construction[2] 中缺少 url 键/代码>。

我的猜测是,您使用 mediaDirective 获得了一些 CMS 块、电子邮件模板、翻译 .csv 文件等,但无法正确分配其 url 值。

扫描您的文件以

{{media url=

查看哪些文件未能分配其 url

正确的看起来类似于:

{{media url="path/to/image.jpg"}}

Which means there is the url key missing in $params and $construction[2] when calling Mage_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 its url value correctly.

Scan your files for

{{media url=

occurrences to see, which one fails to assign its url.

A proper one looks similiar to this:

{{media url="path/to/image.jpg"}}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文