Re: Problem with bake
Ok, my problem was a bit different. It was solved by this post: http://groups.google.com/group/cake-php/browse_thread/thread/d649df95581d1db4/31982f76c9d9e50d?lnk=gst&q=bake+mysql#31982f76c9d9e50d On 18 Okt., 16:16, Jakobloekke <[EMAIL PROTECTED]> wrote: > Hi guys, > I'm new to cakephp, and I'm stuck with a problem using thebake > script: > > I canbakea DB configuration without problems. > When I try tobakea model, my terminal prints out some sql-errors, > but I can create a new model manually. > > When I try tobakea controller I get the following error, and: > Fatal error: ConnectionManager::getDataSource - Non-existent data > source default in /Library/WebServer/cake1.2.x.x/cake/libs/model/ > connection_manager.php on line 111 > Then thebakescript terminates. > > Can anyone tell me where I went wrong? > > thanks, > Jakob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Problem with bake
I am on a VPS server that I own. I have no indications that the mysql server is going down. The mysql server is very lightly loaded, only 35 total db's and some of those are seldom used, as they are for PHPList apps that are used only occasionally. Conrad On Oct 21, 10:16 pm, "Wayne Fay" <[EMAIL PROTECTED]> wrote: > I suspect, if you had a sufficiently high level of logging and tracing > in your network and on the various servers involved when that error > message popped up, that you'd discover something interesting, probably > timeouts to your Mysql instance. > > PHP doesn't just randomly report "server has gone away" -- there must > be a reason. I'll assume you're in a shared server environment and you > have no control over the load of your machines. > > Wayne > > On 10/20/07, Conrad <[EMAIL PROTECTED]> wrote: > > > > > Of which none appys the mysql server is working fine for all other > > applications > > > On Oct 19, 5:59 pm, "Wayne Fay" <[EMAIL PROTECTED]> wrote: > > > RTFM :-)http://dev.mysql.com/doc/refman/5.0/en/gone-away.html > > > > Wayne > > > > On 10/19/07, Conrad <[EMAIL PROTECTED]> wrote: > > > > > I am having the same problems - in trying to create controller for > > > > 'user' . > > > > I get the message > > > > 1. DESCRIBE `users` 2006: MySQL server has gone away > > > > BUT the controller is written. > > > > > in trying to create views I get this (index.thtml) > > > > > > > List Users > > > > > > > > > > > > >Created > > > >Actions > > > > > > > > > > > > > > > > > > > > > > > >link('View','/users/view/' . > > $user['User']['id'])? > > > > >link('Edit','/users/edit/' . > > $user['User']['id'])? > > > > >link('Delete','/users/delete/' . > > $user['User'] > > > > ['id'], null, 'Are you sure you want to delete id ' . $user['User'] > > > > ['id'])?> > > > > > > > > > > > > > > > > > > > --- > > > > Bake.php finds the tables or it would not display the names for > > > > choice. > > > > > Thanks, > > > > Conrad > > > > On Oct 18, 9:16 am, Jakobloekke <[EMAIL PROTECTED]> wrote: > > > > > Hi guys, > > > > > I'm new to cakephp, and I'm stuck with a problem using the bake > > > > > script: > > > > > > I can bake a DB configuration without problems. > > > > > When I try to bake a model, my terminal prints out some sql-errors, > > > > > but I can create a new model manually. > > > > > > When I try to bake a controller I get the following error, and: > > > > > Fatal error: ConnectionManager::getDataSource - Non-existent data > > > > > source default in /Library/WebServer/cake1.2.x.x/cake/libs/model/ > > > > > connection_manager.php on line 111 > > > > > Then the bake script terminates. > > > > > > Can anyone tell me where I went wrong? > > > > > > thanks, > > > > > Jakob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Problem with bake
I suspect, if you had a sufficiently high level of logging and tracing in your network and on the various servers involved when that error message popped up, that you'd discover something interesting, probably timeouts to your Mysql instance. PHP doesn't just randomly report "server has gone away" -- there must be a reason. I'll assume you're in a shared server environment and you have no control over the load of your machines. Wayne On 10/20/07, Conrad <[EMAIL PROTECTED]> wrote: > > Of which none appys the mysql server is working fine for all other > applications > > On Oct 19, 5:59 pm, "Wayne Fay" <[EMAIL PROTECTED]> wrote: > > RTFM :-)http://dev.mysql.com/doc/refman/5.0/en/gone-away.html > > > > Wayne > > > > On 10/19/07, Conrad <[EMAIL PROTECTED]> wrote: > > > > > > > > > I am having the same problems - in trying to create controller for > > > 'user' . > > > I get the message > > > 1. DESCRIBE `users` 2006: MySQL server has gone away > > > BUT the controller is written. > > > > > in trying to create views I get this (index.thtml) > > > > > > > List Users > > > > > > > > > > >Created > > >Actions > > > > > > > > > > > > > > > > > >link('View','/users/view/' . > $user['User']['id'])? > > > > >link('Edit','/users/edit/' . > $user['User']['id'])? > > > > >link('Delete','/users/delete/' . > $user['User'] > > > ['id'], null, 'Are you sure you want to delete id ' . $user['User'] > > > ['id'])?> > > > > > > > > > > > > > > > > --- > > > Bake.php finds the tables or it would not display the names for > > > choice. > > > > > Thanks, > > > Conrad > > > On Oct 18, 9:16 am, Jakobloekke <[EMAIL PROTECTED]> wrote: > > > > Hi guys, > > > > I'm new to cakephp, and I'm stuck with a problem using the bake > > > > script: > > > > > > I can bake a DB configuration without problems. > > > > When I try to bake a model, my terminal prints out some sql-errors, > > > > but I can create a new model manually. > > > > > > When I try to bake a controller I get the following error, and: > > > > Fatal error: ConnectionManager::getDataSource - Non-existent data > > > > source default in /Library/WebServer/cake1.2.x.x/cake/libs/model/ > > > > connection_manager.php on line 111 > > > > Then the bake script terminates. > > > > > > Can anyone tell me where I went wrong? > > > > > > thanks, > > > > Jakob > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Problem with bake
I had an issue similar earlier this weekend, where It wasn't finding data, and it had something to do with where I was actually doing my work (in a project directory or app directory), double check that the directory you are working on is the same directory you have your config/database.php settings set in. Tim Western On Oct 18, 11:16 am, Jakobloekke <[EMAIL PROTECTED]> wrote: > Hi guys, > I'm new to cakephp, and I'm stuck with a problem using the bake > script: > > I can bake a DB configuration without problems. > When I try to bake a model, my terminal prints out some sql-errors, > but I can create a new model manually. > > When I try to bake a controller I get the following error, and: > Fatal error: ConnectionManager::getDataSource - Non-existent data > source default in /Library/WebServer/cake1.2.x.x/cake/libs/model/ > connection_manager.php on line 111 > Then the bake script terminates. > > Can anyone tell me where I went wrong? > > thanks, > Jakob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Problem with bake
Of which none appys the mysql server is working fine for all other applications On Oct 19, 5:59 pm, "Wayne Fay" <[EMAIL PROTECTED]> wrote: > RTFM :-)http://dev.mysql.com/doc/refman/5.0/en/gone-away.html > > Wayne > > On 10/19/07, Conrad <[EMAIL PROTECTED]> wrote: > > > > > I am having the same problems - in trying to create controller for > > 'user' . > > I get the message > > 1. DESCRIBE `users` 2006: MySQL server has gone away > > BUT the controller is written. > > > in trying to create views I get this (index.thtml) > > > > List Users > > > > > > >Created > >Actions > > > > > > > > > > > >link('View','/users/view/' . > > $user['User']['id'])? > > >link('Edit','/users/edit/' . > > $user['User']['id'])? > > >link('Delete','/users/delete/' . > > $user['User'] > > ['id'], null, 'Are you sure you want to delete id ' . $user['User'] > > ['id'])?> > > > > > > > > > > --- > > Bake.php finds the tables or it would not display the names for > > choice. > > > Thanks, > > Conrad > > On Oct 18, 9:16 am, Jakobloekke <[EMAIL PROTECTED]> wrote: > > > Hi guys, > > > I'm new to cakephp, and I'm stuck with a problem using the bake > > > script: > > > > I can bake a DB configuration without problems. > > > When I try to bake a model, my terminal prints out some sql-errors, > > > but I can create a new model manually. > > > > When I try to bake a controller I get the following error, and: > > > Fatal error: ConnectionManager::getDataSource - Non-existent data > > > source default in /Library/WebServer/cake1.2.x.x/cake/libs/model/ > > > connection_manager.php on line 111 > > > Then the bake script terminates. > > > > Can anyone tell me where I went wrong? > > > > thanks, > > > Jakob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Problem with bake
RTFM :-) http://dev.mysql.com/doc/refman/5.0/en/gone-away.html Wayne On 10/19/07, Conrad <[EMAIL PROTECTED]> wrote: > > I am having the same problems - in trying to create controller for > 'user' . > I get the message > 1. DESCRIBE `users` 2006: MySQL server has gone away > BUT the controller is written. > > in trying to create views I get this (index.thtml) > > List Users > > > >Created >Actions > > > > > >link('View','/users/view/' . > $user['User']['id'])? > > >link('Edit','/users/edit/' . > $user['User']['id'])? > > >link('Delete','/users/delete/' . > $user['User'] > ['id'], null, 'Are you sure you want to delete id ' . $user['User'] > ['id'])?> > > > > > --- > Bake.php finds the tables or it would not display the names for > choice. > > Thanks, > Conrad > On Oct 18, 9:16 am, Jakobloekke <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I'm new to cakephp, and I'm stuck with a problem using the bake > > script: > > > > I can bake a DB configuration without problems. > > When I try to bake a model, my terminal prints out some sql-errors, > > but I can create a new model manually. > > > > When I try to bake a controller I get the following error, and: > > Fatal error: ConnectionManager::getDataSource - Non-existent data > > source default in /Library/WebServer/cake1.2.x.x/cake/libs/model/ > > connection_manager.php on line 111 > > Then the bake script terminates. > > > > Can anyone tell me where I went wrong? > > > > thanks, > > Jakob > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Problem with bake
I am having the same problems - in trying to create controller for 'user' . I get the message 1. DESCRIBE `users` 2006: MySQL server has gone away BUT the controller is written. in trying to create views I get this (index.thtml) List Users Created Actions link('View','/users/view/' . $user['User']['id'])? > link('Edit','/users/edit/' . $user['User']['id'])? > link('Delete','/users/delete/' . $user['User'] ['id'], null, 'Are you sure you want to delete id ' . $user['User'] ['id'])?> --- Bake.php finds the tables or it would not display the names for choice. Thanks, Conrad On Oct 18, 9:16 am, Jakobloekke <[EMAIL PROTECTED]> wrote: > Hi guys, > I'm new to cakephp, and I'm stuck with a problem using the bake > script: > > I can bake a DB configuration without problems. > When I try to bake a model, my terminal prints out some sql-errors, > but I can create a new model manually. > > When I try to bake a controller I get the following error, and: > Fatal error: ConnectionManager::getDataSource - Non-existent data > source default in /Library/WebServer/cake1.2.x.x/cake/libs/model/ > connection_manager.php on line 111 > Then the bake script terminates. > > Can anyone tell me where I went wrong? > > thanks, > Jakob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---