无法呈现模板“ideas/share.tt:文件错误 - 站点/包装器:找不到”
这是 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有文件
site/wrapper
吗?看起来它在哪里都找不到。Do you have a file
site/wrapper
? Looks like it couldn't find one where it looked.