Re: Blog tutorial - I get a blank page
This was resolved finally. the problem was that we still had an old rpm of mod_auth_mysql on our RedHat ES 3 server. Apparently this was causing some sort of conflict with php 5.2.9. I'm not entirely sure what the conflict is, but removing the rpm from our system resolved the problem and CakePHP is now working. -Charlie On Jun 2, 9:38 am, Marcelo Andrade mfandr...@gmail.com wrote: On Mon, Jun 1, 2009 at 12:43 PM, cshehadi csheh...@gmail.com wrote: For the record, yes, now that I check the server error logs (as opposed to the Virtual Host error logs) I see that there is a segmentation fault. Not sure I've got the stomach for an apache/php reinstall on a busy server however. Thanks for your help though. I don't know about your server profile to suppose what's the cause for that segmentation fault error. But, if you're on a *nix host, you could also check the ulimit parameters for your server. http://linux.about.com/library/cmd/blcmdl1_ulimit.htm Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
On Mon, Jun 1, 2009 at 12:43 PM, cshehadi csheh...@gmail.com wrote: For the record, yes, now that I check the server error logs (as opposed to the Virtual Host error logs) I see that there is a segmentation fault. Not sure I've got the stomach for an apache/php reinstall on a busy server however. Thanks for your help though. I don't know about your server profile to suppose what's the cause for that segmentation fault error. But, if you're on a *nix host, you could also check the ulimit parameters for your server. http://linux.about.com/library/cmd/blcmdl1_ulimit.htm Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
For the record, yes, now that I check the server error logs (as opposed to the Virtual Host error logs) I see that there is a segmentation fault. Not sure I've got the stomach for an apache/php reinstall on a busy server however. Thanks for your help though. On May 28, 9:49 pm, Marcelo Andrade mfandr...@gmail.com wrote: On Wed, May 27, 2009 at 7:54 PM, cshehadi csheh...@gmail.com wrote: (..) If you're using Apache web server, please check your error_log file to see if you've got a Segmentation fault error. If that's the case, you could fix it reinstalling your Apache+PHP webserver. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
Please confirm that your view directory is named views not view! John On May 28, 1:54 am, cshehadi csheh...@gmail.com wrote: Hi, I'm trying to get through the blog tutorial, and trying to view my first page at: http://server/post/index but I'm getting a blank page. I'm sure the rewrite engine's working correctly because if I try to access a nonexistent controller, such as: http://server/blah/index I get the appropriate error: Missing Controller - so this tells me it's finding the controller ok. But somehow it's not displaying index.ctp which I have confirmed is in: /app/view/posts/ When I view source on the page, I get nothing - not even a default layout, or even an HTML tag. It's just blank (in Firefox - just checked in it IE and I get Internet Explorer cannot display the webpage) I can reach the main cakephp page without any problems, it displays images and css and gives me the green light to proceed (database is configured, etc...) I've also confirmed that the permissions of /app/tmp are drwxrwxr-x and that it's in the same group as the web server. Without any error message at all, I'm at a complete loss as to how to debug this thing. debug setting in /app/config/core.php is at 2, so it should be barking at me if I've done something wrong. Anyone have a clue as to what to do next? -Charlie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
I apologize for the typo - I meant to write: /app/views/posts/ On May 28, 2:04 am, John Andersen j.andersen...@gmail.com wrote: Please confirm that your view directory is named views not view! John On May 28, 1:54 am, cshehadi csheh...@gmail.com wrote: Hi, I'm trying to get through the blog tutorial, and trying to view my first page at: http://server/post/index but I'm getting a blank page. I'm sure the rewrite engine's working correctly because if I try to access a nonexistent controller, such as: http://server/blah/index I get the appropriate error: Missing Controller - so this tells me it's finding the controller ok. But somehow it's not displaying index.ctp which I have confirmed is in: /app/view/posts/ When I view source on the page, I get nothing - not even a default layout, or even an HTML tag. It's just blank (in Firefox - just checked in it IE and I get Internet Explorer cannot display the webpage) I can reach the main cakephp page without any problems, it displays images and css and gives me the green light to proceed (database is configured, etc...) I've also confirmed that the permissions of /app/tmp are drwxrwxr-x and that it's in the same group as the web server. Without any error message at all, I'm at a complete loss as to how to debug this thing. debug setting in /app/config/core.php is at 2, so it should be barking at me if I've done something wrong. Anyone have a clue as to what to do next? -Charlie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
Start with a fresh install and go through the tutorial again? maybe you missed something. On May 28, 6:21 am, cshehadi csheh...@gmail.com wrote: I apologize for the typo - I meant to write: /app/views/posts/ On May 28, 2:04 am, John Andersen j.andersen...@gmail.com wrote: Please confirm that your view directory is named views not view! John On May 28, 1:54 am, cshehadi csheh...@gmail.com wrote: Hi, I'm trying to get through the blog tutorial, and trying to view my first page at: http://server/post/index but I'm getting a blank page. I'm sure the rewrite engine's working correctly because if I try to access a nonexistent controller, such as: http://server/blah/index I get the appropriate error: Missing Controller - so this tells me it's finding the controller ok. But somehow it's not displaying index.ctp which I have confirmed is in: /app/view/posts/ When I view source on the page, I get nothing - not even a default layout, or even an HTML tag. It's just blank (in Firefox - just checked in it IE and I get Internet Explorer cannot display the webpage) I can reach the main cakephp page without any problems, it displays images and css and gives me the green light to proceed (database is configured, etc...) I've also confirmed that the permissions of /app/tmp are drwxrwxr-x and that it's in the same group as the web server. Without any error message at all, I'm at a complete loss as to how to debug this thing. debug setting in /app/config/core.php is at 2, so it should be barking at me if I've done something wrong. Anyone have a clue as to what to do next? -Charlie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
Can I see your index actions code? And the view for it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
I've done this, no such luck, unfortunately. And I'm new to CakePHP, but not new to sys admin, or PHP programming, so I'm not in over my head here. On May 28, 12:54 pm, christo christia...@gmail.com wrote: Start with a fresh install and go through the tutorial again? maybe you missed something. On May 28, 6:21 am, cshehadi csheh...@gmail.com wrote: I apologize for the typo - I meant to write: /app/views/posts/ On May 28, 2:04 am, John Andersen j.andersen...@gmail.com wrote: Please confirm that your view directory is named views not view! John On May 28, 1:54 am, cshehadi csheh...@gmail.com wrote: Hi, I'm trying to get through the blog tutorial, and trying to view my first page at: http://server/post/index but I'm getting a blank page. I'm sure the rewrite engine's working correctly because if I try to access a nonexistent controller, such as: http://server/blah/index I get the appropriate error: Missing Controller - so this tells me it's finding the controller ok. But somehow it's not displaying index.ctp which I have confirmed is in: /app/view/posts/ When I view source on the page, I get nothing - not even a default layout, or even an HTML tag. It's just blank (in Firefox - just checked in it IE and I get Internet Explorer cannot display the webpage) I can reach the main cakephp page without any problems, it displays images and css and gives me the green light to proceed (database is configured, etc...) I've also confirmed that the permissions of /app/tmp are drwxrwxr-x and that it's in the same group as the web server. Without any error message at all, I'm at a complete loss as to how to debug this thing. debug setting in /app/config/core.php is at 2, so it should be barking at me if I've done something wrong. Anyone have a clue as to what to do next? -Charlie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
anything in the server error logs? #cakephp on irc.freenode.net for some real-time help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
sure, it's copied straight out of the tutorial: [u...@staging cakedir]# cat app/controllers/posts_controller.php ?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } } ? and: [r...@staging cakedir]# cat app/views/posts/index.ctp !-- File: /app/views/posts/index.ctp -- h1Blog posts/h1 table tr thId/th thTitle/th thCreated/th /tr !-- Here is where we loop through our $posts array, printing out post info -- ?php foreach ($posts as $post): ? tr td?php echo $post['Post']['id']; ?/td td ?php echo $html-link($post['Post'] ['title'], /posts/view/.$post['Post']['id']); ? /td td?php echo $post['Post']['created']; ?/td /tr ?php endforeach; ? /table * for what it's worth, I went into: /app/webroot/index.php and put in this debugging line, echo url: $url; exit; right before: $Dispatcher-dispatch($url); and the output in http://server/posts/index was: url: I don't know how CakePHP is supposed to work, but should this $url variable be set to a value other than ''? I can't tell from the code where this variable is supposed to be set in the first place. Unless it's supposed to be referencing $_GET['url'] but that would scare me a bit. On May 28, 1:22 pm, Miles J mileswjohn...@gmail.com wrote: Can I see your index actions code? And the view for it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
unfortunately no. When I check http headers, using Firefox plug-in I get: 200 OK When I use the command line browser links, locally, connecting to: http://localhost/cakedir/posts/index I get Error reading from socket On May 28, 1:37 pm, Gwoo gwoo.cake...@gmail.com wrote: anything in the server error logs? #cakephp on irc.freenode.net for some real-time help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog tutorial - I get a blank page
On Wed, May 27, 2009 at 7:54 PM, cshehadi csheh...@gmail.com wrote: (..) If you're using Apache web server, please check your error_log file to see if you've got a Segmentation fault error. If that's the case, you could fix it reinstalling your Apache+PHP webserver. Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Blog tutorial - I get a blank page
Hi, I'm trying to get through the blog tutorial, and trying to view my first page at: http://server/post/index but I'm getting a blank page. I'm sure the rewrite engine's working correctly because if I try to access a nonexistent controller, such as: http://server/blah/index I get the appropriate error: Missing Controller - so this tells me it's finding the controller ok. But somehow it's not displaying index.ctp which I have confirmed is in: /app/view/posts/ When I view source on the page, I get nothing - not even a default layout, or even an HTML tag. It's just blank (in Firefox - just checked in it IE and I get Internet Explorer cannot display the webpage) I can reach the main cakephp page without any problems, it displays images and css and gives me the green light to proceed (database is configured, etc...) I've also confirmed that the permissions of /app/tmp are drwxrwxr-x and that it's in the same group as the web server. Without any error message at all, I'm at a complete loss as to how to debug this thing. debug setting in /app/config/core.php is at 2, so it should be barking at me if I've done something wrong. Anyone have a clue as to what to do next? -Charlie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---