Magento 和维特纳夫扩展

发布于 2024-08-04 16:26:15 字数 969 浏览 3 评论 0原文

我正在开发一个 magento 项目(v1.3.2.3)并且我已经安装了 vertnav 扩展。

内容 vertnav.xml:

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="left">
            <block type="vertnav/navigation" name="catalog.vertnav" template="vertnav/left.phtml" before="-" />
        </reference>
    </default>
</layout>

这应该在每个页面上显示 vertnav(如果我错了,请纠正我)

将错误报告从 "E_ALL | E_STRICT" 更改为 "E_ALL | ~E_STRICT 时,会发生一些奇怪的情况" 在 index.php 中

设置为 E_ALL | 时E_STRICT vertnav 未显示在左侧栏中。

当设置为 E_ALL | 时~E_STRICT vertnav 变得可见。

我认为这是非常奇怪的行为,希望有人了解更多。

其他块的行为与正常情况一样。

我们遇到的另一个问题可能与此相关。当访问管理目录(仅在实时服务器上)时,我们收到严格警告(只有变量可以通过引用传递;类似的东西),这就是为什么我们考虑将 error_reporting 设置为 ~E_STRICT

当然,我们的目标是将 error_reporting 设置为 E_ALL | E_STRICT 但 vertnav 应该可见并且管理员可以访问。

发疯了:-)

// 罗兰

I'm working on a magento project (v1.3.2.3) and i've installed the vertnav extension.

Contents vertnav.xml:

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="left">
            <block type="vertnav/navigation" name="catalog.vertnav" template="vertnav/left.phtml" before="-" />
        </reference>
    </default>
</layout>

This should show the vertnav on every page (correct me if im wrong)

Something weird is happening when changing error reporting from "E_ALL | E_STRICT" to "E_ALL | ~E_STRICT" in index.php

When set to E_ALL | E_STRICT the vertnav is NOT showed in the left bar.

When set to E_ALL | ~E_STRICT vertnav becomes visible.

I think this is really weird behaviour, hoping someone knows more about it.

Other blocks behave like normal.

Another issue we run into, and proberly related to this. We get a strict warning (only variables can be passed by reference; something like that) when accessing the admin directory (only on the live server), this is why we're considering to set error_reporting to ~E_STRICT.

Offcourse our goal is to leave error_reporting set to E_ALL | E_STRICT but vertnav should be visible and admin accessible.

Going crazy :-)

// Roland

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

梦初启 2024-08-11 16:26:16

我完全不确定这与此有何关系。

但只有一个快速提示:如果您想将错误报告设置为 E_ALL 而不是 E_STRICT,请使用:

E_ALL & ~E_STRICT

而不是:

E_ALL | ~E_STRICT

它可能没有任何区别,但这是使用位掩码的正确方法(有关更多信息,请参阅 )。

您还检查过 Magento 日志文件的内容吗?

路径:install_dir/var/log/system.log

I'm not sure how this could be related to this at all.

But just one quick hint: if you want to set error reporting to E_ALL but not E_STRICT use:

E_ALL & ~E_STRICT

instead of:

E_ALL | ~E_STRICT

It might not make any difference, but that's the proper way to work with bitmasks(for more informations see this).

Also have you checked the contents of the Magento log file?

Path: install_dir/var/log/system.log

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