无法呈现模板“ideas/share.tt:文件错误 - 站点/包装器:找不到”

发布于 2024-10-08 18:39:19 字数 871 浏览 0 评论 0原文

这是 Catalyst 权威指南第 8 章中的示例,书中的示例以及 Apress 站点中的示例源代码实际上都可以工作。 我对 Catalyst 太陌生,甚至猜不出这是什么意思,因为我已经尝试了我能想到的一切,但没有任何效果。任何想法将不胜感激。

[info] SneakyCat powered by Catalyst 5.80029
You can connect to your server at http://linux-0lwf:3000
[debug] "GET" request for "/" from "127.0.0.2"
[debug] Path is "/"
[debug] Rendering template "ideas/share.tt"
[error] Couldn't render template "ideas/share.tt: file error - site/wrapper: not found"
[error] Caught exception in SneakyCat::Controller::Ideas->share "Can't call method "search" on an undefined value at /home/atomic/SneakyCat/script/../lib/SneakyCat/Controller/Ideas.pm line 48."
[error] Couldn't render template "ideas/share.tt: file error - site/wrapper: not found"
[debug] Response Code: 500; Content-Type: text/html; charset=utf-8; Content-Length: 9615
[info] Request took 0.038715s (25.830/s)

This is an example in Chapter 8 of The Definitive Guide to Catalyst and the example from the book nor the source code for the example from the Apress site actually work.
I too new to Catalyst to even guess what this is saying as I've tried everything I can think of and nothing works. Any ideas would be greatly appreciated.

[info] SneakyCat powered by Catalyst 5.80029
You can connect to your server at http://linux-0lwf:3000
[debug] "GET" request for "/" from "127.0.0.2"
[debug] Path is "/"
[debug] Rendering template "ideas/share.tt"
[error] Couldn't render template "ideas/share.tt: file error - site/wrapper: not found"
[error] Caught exception in SneakyCat::Controller::Ideas->share "Can't call method "search" on an undefined value at /home/atomic/SneakyCat/script/../lib/SneakyCat/Controller/Ideas.pm line 48."
[error] Couldn't render template "ideas/share.tt: file error - site/wrapper: not found"
[debug] Response Code: 500; Content-Type: text/html; charset=utf-8; Content-Length: 9615
[info] Request took 0.038715s (25.830/s)

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

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

发布评论

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

评论(1

勿忘初心 2024-10-15 18:39:19

您有文件 site/wrapper 吗?看起来它在哪里都找不到。

Do you have a file site/wrapper? Looks like it couldn't find one where it looked.

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