CakePHP / Segmentation Fault

View: New views
3 Messages — Rating Filter:   Alert me  

CakePHP / Segmentation Fault

by Jeremie-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

No question in this post, just a hint for a problem who took me a day.
For all the people like me searching "CakePHP Segmentation Fault" in
google unsuccessfully ...

After trying everything to understand why my application worked
perfectly in local (Windows) but gave a "Segmentation Fault" on a
production server, I just realised all my models had a first capital
letter. Which works good in Windows, of course ... but crashed my
linux server without any explication.

Hope it'll help.
Jérémie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CakePHP / Segmentation Fault

by Jon Bennett :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Jeremie,

> No question in this post, just a hint for a problem who took me a day.
> For all the people like me searching "CakePHP Segmentation Fault" in
> google unsuccessfully ...
>
> After trying everything to understand why my application worked
> perfectly in local (Windows) but gave a "Segmentation Fault" on a
> production server, I just realised all my models had a first capital
> letter. Which works good in Windows, of course ... but crashed my
> linux server without any explication.

your models should be:

class MyModel extends AppModel

but should be saved as: my_model.php

file names in windoze are case-insensitive, in linux/osx etc they are
case sensitive!

jb


--

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CakePHP / Segmentation Fault

by Duncan-35 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


The CakePHP cheat sheet covers all the naming conventions:
http://groups.google.com/group/cake-php/files

On Jul 9, 2:46 am, Jeremie <jeremie.c...@...> wrote:

> Hi,
>
> No question in this post, just a hint for a problem who took me a day.
> For all the people like me searching "CakePHP Segmentation Fault" in
> google unsuccessfully ...
>
> After trying everything to understand why my application worked
> perfectly in local (Windows) but gave a "Segmentation Fault" on a
> production server, I just realised all my models had a first capital
> letter. Which works good in Windows, of course ... but crashed my
> linux server without any explication.
>
> Hope it'll help.
> Jérémie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---