Look in /app/tmp/logs. There should be both error and debug logs. Make sure the webserver owns the tmp dir and all files within.
Unless it's a fatal error, Cake will generate a 404 if debug is set to 0. This is to keep error messages from being displayed publicly. If it's fatal, you'll generally see the White Screen of Death (WSoD). On Mon, May 4, 2009 at 11:38 PM, japaniel <[email protected]> wrote: > > Where does cake log the errors? I've kinda poked around for them but > in anything that seemed like where logs would be kept there were files > that were named empty and as you could imagine, were empty. > > While I would like to know what type of errors are being thrown, as it > should help me trouble shoot the problem; the code should be good > seeing as how I copied it from the plain text view given in the cook > book. > > But in an attempt to swallow pride, namely mine, I will go through and > replace the posts controller, model, and views to be in line with the > code given in an attempt to correct this problem. > > On May 4, 6:22 am, DuncanBrown <[email protected]> wrote: >> It sounds like it is an error in your code. >> >> If you set Configure::write('debug', 2); in config/core.php to1 or 2 >> cake will give you the error that is causing the problem. >> >> On May 4, 6:06 am, japaniel <[email protected]> wrote: >> >> > I have been reading through the posts here and there were some older >> > posts that didn't seem to help me. >> >> > I am getting a 404 Not Found error when going to the myserver.local/ >> > posts/index in the blog tutorial. >> >> > I have a mac running leopard, but that shouldn't matter seeing as how >> > i have all the needed things (apache, mysql, etc.) installed and are >> > running fine. >> >> > when i go to myserver.local (which is a virtual host pointing to the >> > cake/app/webroot dir i have the default cake page there with >> > stylesheets and all. >> >> > but after going so far in the tutorial as to get to section 10.1.8 >> > Creating Post Views and it says >> >> > "At this point, you should be able to point your browser >> > tohttp://www.example.com/posts/index. You should see your view, >> > correctly formatted with the title and table listing of the posts." >> >> > That is where i get the error. >> >> > I assumed that it was my apache config going all screwy. And, I >> > suppose it still very well could. >> >> > The kicker is that the tab with my cake_blog/tutorial still has the >> > cakephp favicon there not the apache feather. >> >> > here are a few sections of my httpd.conf file to show that it should >> > be working >> >> > LoadModule alias_module libexec/apache2/mod_alias.so >> > LoadModule rewrite_module libexec/apache2/mod_rewrite.so >> > LoadModule bonjour_module libexec/apache2/mod_bonjour.so >> > LoadModule php5_module libexec/apache2/libphp5.so >> >> > <Directory /> >> > Options FollowSymLinks >> > AllowOverride All >> > Order allow,deny >> > Allow from all >> > </Directory> >> >> > I am aware of the security risk of this last part but i was trying to >> > see if this would fix it. >> >> > I am using virtual hosts and am not sure if that has anything to do >> > with the setting of AllowOverride and am having troubles locating that >> > anywhere on the "interwebs". >> >> > P.S. I do restart apache after each change to the httpd.conf file and >> > then check to see if it is working. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
