Google 網上論壇首頁
說明 | 登入
Not found error with DEBUG 0
目前本群組有太多主題設為優先顯示。 要優先顯示這個主題,請將其他主題的這個選項取消。
在處理您的要求時發生錯誤。 請再試一次。
標幟
  5 個訊息 - 全部摺疊
您要留言的群組是 Usenet 群組。在此群組留言,網際網路上的任何使用者將可以看到您的電郵地址。
您的回覆郵件尚未寄出。
您已成功留言
MrTRAP  
檢視個人資料
 更多選項 2006年10月29日, 下午12時49分
寄件者: "MrTRAP" <mrt...@gmail.com>
日期: Sat, 28 Oct 2006 21:49:45 -0700
當地時間: 2006年10月29日(星期日) 下午12時49分
主旨: Not found error with DEBUG 0
Hi everyone!

I'm having some troubles in development with CakePHP. I've created a
menu controller, view and model. When I set DEBUG > 0 in
app/config/core.php I can access all my actions in menu controller
without problems, but when I set DEUBG 0 I always get a 404 not found
page:

---
Not found

The requested address was not found on this server.
---

If I try to access a controller that doesn't exist, I get the message:
The requested address <controllername + controlleraction> was not found
on this server.
If I change the $useTable in menu model to another table in my db, I
can see the rendered action with no data, obviously.

Does anyone know what could happening?

Thanks!
Luiz Carlos Junior.

PS: sorry for my poor english :(


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
luputski  
檢視個人資料
 更多選項 2006年11月5日, 下午5時40分
寄件者: "luputski" <luput...@gmail.com>
日期: Sun, 05 Nov 2006 09:40:36 -0000
當地時間: 2006年11月5日(星期日) 下午5時40分
主旨: Re: Not found error with DEBUG 0
I had the same problem (switching debug to 0 returned 404 where it
shouldn't) after moving some files between computers. Seemed to be some
permission issues so I just made sure everything in the app folder is
set to read/write and it works fine now.

On Oct 29, 12:49 pm, "MrTRAP" <mrt...@gmail.com> wrote:


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
luputski  
檢視個人資料
 更多選項 2006年11月5日, 下午5時46分
寄件者: "luputski" <luput...@gmail.com>
日期: Sun, 05 Nov 2006 09:46:29 -0000
當地時間: 2006年11月5日(星期日) 下午5時46分
主旨: Re: Not found error with DEBUG 0
I had the same problem (debug = 0 returning 404 where it shouldn't)
after moving some files between computers. Seemed like a permission
issue so I just made sure everything in the app folder is set to
read/write and it's fine now.

    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
Vanchuck  
檢視個人資料
(1 位使用者)  更多選項 2006年11月6日, 下午6時32分
寄件者: "Vanchuck" <vanch...@gmail.com>
日期: Mon, 06 Nov 2006 10:32:34 -0000
當地時間: 2006年11月6日(星期一) 下午6時32分
主旨: Re: Not found error with DEBUG 0
I think this has been posted in several threads before, but just in
case someone goes searching groups for this in the future, and the
above solution doesn't work...

Instead of setting permissions, try deleting the model cache files.
They'll be re-created next time around with the proper permissions
automatically (much lazier and easier). They're in
/app/tmp/cache/models . They aren't read from in DEBUG > 0, so that is
why it's only happening with DEBUG=0.

I think I also read once that if the database table changes, the cached
model file will of course be wrong, and it can cause similar or other
errors. The app/tmp/cache/models directory holds the results of the
"DESC" database queries, IIRC. If you have $persistModel = true; for
any of your models, then you might also have some problems if the
permissions are off in your /app/tmp/cache/persistent directory

I once accidentally checked in the model cache files in my versioning
software without realizing, so for a while, every time I did an update
of the project files I kept on getting this error, as the files were
being replaced with old and broken versions! Don't forget to exclude
that directory from your project if you are using version control
software (cvs/svn).


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
MrTRAP  
檢視個人資料
 更多選項 2006年11月6日, 下午10時51分
寄件者: "MrTRAP" <mrt...@gmail.com>
日期: Mon, 06 Nov 2006 06:51:41 -0800
當地時間: 2006年11月6日(星期一) 下午10時51分
主旨: Re: Not found error with DEBUG 0
Wow! I was getting crazy! lol!
Thanks a lot! This solved my problem :)

    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
主題尾端
« 返回討論主題 « 較新的主題     較舊的主題 »

建立群組 - Google 網上論壇 - Google 首頁 - 服務條款 - 隱私權政策
©2008 Google