pimcore调试

发布于 2025-01-04 03:51:44 字数 346 浏览 5 评论 0原文

目前我正在使用 PIMCore 来构建我的网站。我已经使用 php 5.3.3 在我的服务器上正确安装了它。我已经制作了所有不同的页面,到目前为止一切正常。加载网站时我只看到白屏。然而,管理面板工作正常。我对 PIMCore 很陌生,不太知道如何调试它。

我尝试做的事情: 在 pimcore/lib/pimcore.php 第 216 行启用 error_reporting(无) 放一个骰子('测试');在 pimcore.php 文件中查看它停止的位置。 当我将其放入函数 unsetAdminMode 中时,我可以在我的网站上看到测试,当我将其放入函数 inAdmin 中时,我看不到它。

有人可以帮助我吗?

提前致谢!

Currently I'm using PIMCore for building my website. I've installed it properly on my server with php 5.3.3. I've made all the different pages and everything worked fine till now. I only get white screens when loading the website. The admin-panel however is working fine. I'm quite new to PIMCore and don't really know how to debug this.

What I tried to do:
Enable error_reporting in pimcore/lib/pimcore.php line 216 (nothing)
Put a die('test'); in the pimcore.php file to see where it stops.
When I put it in the function unsetAdminMode I can see test on my website, when I put it in the function inAdmin, I don't see it.

Is there anybody who can help me?

Thanks in advance!

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

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

发布评论

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

评论(3

花海 2025-01-11 03:51:44

在“设置”->“系统”->“常规”中启用调试模式,然后您将看到所有错误消息;-)
http://www.pimcore.org/wiki/display/PIMCORE/System+Settings

Enable the debug-mode in Settings->System->General, then you'll see all error messages ;-)
http://www.pimcore.org/wiki/display/PIMCORE/System+Settings

对风讲故事 2025-01-11 03:51:44

从未使用过 pimcore,但要强制报告错误,您可以执行以下操作:

error_reporting(-1); // better than E_ALL

ini_set('display_errors', 1);
ini_set('html_errors', 1); // Pretty errors, even better with xdebug

restore_error_handler();

您还可以检查 apache_error 和 php_log 日志文件。

Never used pimcore but to force error reporting on you can do the following:

error_reporting(-1); // better than E_ALL

ini_set('display_errors', 1);
ini_set('html_errors', 1); // Pretty errors, even better with xdebug

restore_error_handler();

You can also check in your apache_error and php_log log files.

蝶…霜飞 2025-01-11 03:51:44

在管理 GUI 中,您可以启用调试模式:
设置>系统>调试

您可以在 Pimcore 中跟踪调试日志:
tail -f website/var/log/debug.log

我通常为我的开发环境启用 DEV 模式。

In the Admin GUI you can enable debug mode:
Settings > System > Debug

The you can tail the debug logs in Pimcore:
tail -f website/var/log/debug.log

I usually enable DEV-Mode for my development environment.

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