Re: Cake Bake Fatal Error
My experience is that this issue is caused because you screwed up slightly with your naming conventions (ie, left a foreign key column pluralized). Try checking those. On Oct 21, 12:32 pm, mdunham wrote: > Me to: > > Brooksides-MacBook-Pro:app brooksidestudios$ cake bake model all > > Welcome to CakePHP v2.0.0 Console > --- > App : app > Path: /Users/brooksidestudios/Sites/grticket2/app/ > --- > > You can download PHPUnit fromhttp://phpunit.de > Baking Customer > > Baking model class for Customer... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ > Customer.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/Customer.php` > > Baking test fixture for Customer... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ > CustomerFixture.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ > CustomerFixture.php` > Bake is detecting possible fixtures... > > Baking test case for Customer Model ... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Case/ > Model/CustomerTest.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Case/Model/ > CustomerTest.php` > Baking Device > > Baking model class for Device... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ > Device.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/Device.php` > > Baking test fixture for Device... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ > DeviceFixture.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ > DeviceFixture.php` > Bake is detecting possible fixtures... > > Baking test case for Device Model ... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Case/ > Model/DeviceTest.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Case/Model/ > DeviceTest.php` > Baking Group > > Baking model class for Group... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ > Group.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/Group.php` > > Baking test fixture for Group... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ > GroupFixture.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ > GroupFixture.php` > Bake is detecting possible fixtures... > > Baking test case for Group Model ... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Case/ > Model/GroupTest.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Case/Model/ > GroupTest.php` > Baking Inventory > > Baking model class for Inventory... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ > Inventory.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/ > Inventory.php` > > Baking test fixture for Inventory... > > Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ > InventoryFixture.php > Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ > InventoryFixture.php` > Bake is detecting possible fixtures... > > Fatal error: Cannot redeclare class Inventory in /Users/ > brooksidestudios/Sites/grticket2/app/Model/inventory.php on line 186 > > On Oct 18, 7:23 pm, ludo monster > wrote: > > > > > > > > > I'm trying to run "cake bake model all" but it dies. > > > Here's a snippet from when I try to bake the table that blows up: > > > > > --- > > Please select one of the following validation options: > > --- > > 1 - alphanumeric > > 2 - between > > ... > > 30 - uuid > > 31 - Do not do any validation on this field. > > ... or enter in a valid regex validation string. > > > [31] > > > Would you like to define model associations > > (hasMany, hasOne, belongsTo, etc.)? (y/n) > > [y] > > > One moment while the associations are detected. > > --- > > Please confirm the following associations: > > --- > > Game hasMany GameEffect? (y/n) > > [y] > > > Game hasMany GameItem? (y/n) > > [y] > > > Game hasMany GameMob? (y/n) > > [y] > > > Would you like to define some additional model associations? (y/n) > > [n] > > > > --- > > The following Model will be created: > > --- > > Name: Game > > DB Table: `games` > > Associations: > > Game hasMany GameEffect > > Game hasMany GameItem > > Game hasMany GameMob > > --- > > Look okay? (y/n) > > [y] > > > > Baking model class for Game... > > > Creating file C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Model > > \Game.php > > Wrote `C:\Zend\Ap
Re: Cake Bake Fatal Error
Me to: Brooksides-MacBook-Pro:app brooksidestudios$ cake bake model all Welcome to CakePHP v2.0.0 Console --- App : app Path: /Users/brooksidestudios/Sites/grticket2/app/ --- You can download PHPUnit from http://phpunit.de Baking Customer Baking model class for Customer... Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ Customer.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/Customer.php` Baking test fixture for Customer... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ CustomerFixture.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ CustomerFixture.php` Bake is detecting possible fixtures... Baking test case for Customer Model ... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Case/ Model/CustomerTest.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Case/Model/ CustomerTest.php` Baking Device Baking model class for Device... Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ Device.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/Device.php` Baking test fixture for Device... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ DeviceFixture.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ DeviceFixture.php` Bake is detecting possible fixtures... Baking test case for Device Model ... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Case/ Model/DeviceTest.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Case/Model/ DeviceTest.php` Baking Group Baking model class for Group... Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ Group.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/Group.php` Baking test fixture for Group... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ GroupFixture.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ GroupFixture.php` Bake is detecting possible fixtures... Baking test case for Group Model ... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Case/ Model/GroupTest.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Case/Model/ GroupTest.php` Baking Inventory Baking model class for Inventory... Creating file /Users/brooksidestudios/Sites/grticket2/app/Model/ Inventory.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Model/ Inventory.php` Baking test fixture for Inventory... Creating file /Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ InventoryFixture.php Wrote `/Users/brooksidestudios/Sites/grticket2/app/Test/Fixture/ InventoryFixture.php` Bake is detecting possible fixtures... Fatal error: Cannot redeclare class Inventory in /Users/ brooksidestudios/Sites/grticket2/app/Model/inventory.php on line 186 On Oct 18, 7:23 pm, ludo monster wrote: > I'm trying to run "cake bake model all" but it dies. > > Here's a snippet from when I try to bake the table that blows up: > > > --- > Please select one of the following validation options: > --- > 1 - alphanumeric > 2 - between > ... > 30 - uuid > 31 - Do not do any validation on this field. > ... or enter in a valid regex validation string. > > [31] > > Would you like to define model associations > (hasMany, hasOne, belongsTo, etc.)? (y/n) > [y] > > One moment while the associations are detected. > --- > Please confirm the following associations: > --- > Game hasMany GameEffect? (y/n) > [y] > > Game hasMany GameItem? (y/n) > [y] > > Game hasMany GameMob? (y/n) > [y] > > Would you like to define some additional model associations? (y/n) > [n] > > > --- > The following Model will be created: > --- > Name: Game > DB Table: `games` > Associations: > Game hasMany GameEffect > Game hasMany GameItem > Game hasMany GameMob > --- > Look okay? (y/n) > [y] > > > Baking model class for Game... > > Creating file C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Model > \Game.php > Wrote `C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Model > \Game.php` > PHPUnit is not installed. Do you want to bake unit test files anyway? > (y/n) > [y] > > > You can download PHPUnit fromhttp://phpunit.de > > Baking test fixture for Game... > > File `C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Test\Fixture > \GameFixture > .php` exists > Do you want to overwrite? (y/n/q) > [n] > > Skip `C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Test\Fixture > \GameFixture > .php` > >
Cake Bake Fatal Error
I'm trying to run "cake bake model all" but it dies. Here's a snippet from when I try to bake the table that blows up: --- Please select one of the following validation options: --- 1 - alphanumeric 2 - between ... 30 - uuid 31 - Do not do any validation on this field. ... or enter in a valid regex validation string. [31] > Would you like to define model associations (hasMany, hasOne, belongsTo, etc.)? (y/n) [y] > One moment while the associations are detected. --- Please confirm the following associations: --- Game hasMany GameEffect? (y/n) [y] > Game hasMany GameItem? (y/n) [y] > Game hasMany GameMob? (y/n) [y] > Would you like to define some additional model associations? (y/n) [n] > --- The following Model will be created: --- Name: Game DB Table: `games` Associations: Game hasMany GameEffect Game hasMany GameItem Game hasMany GameMob --- Look okay? (y/n) [y] > Baking model class for Game... Creating file C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Model \Game.php Wrote `C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Model \Game.php` PHPUnit is not installed. Do you want to bake unit test files anyway? (y/n) [y] > You can download PHPUnit from http://phpunit.de Baking test fixture for Game... File `C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Test\Fixture \GameFixture .php` exists Do you want to overwrite? (y/n/q) [n] > Skip `C:\Zend\Apache2\htdocs\Eclipse\MVCBattle\cake\app\Test\Fixture \GameFixture .php` Bake is detecting possible fixtures... Fatal error: Cannot redeclare class Game in C:\Zend\Apache2\htdocs \Eclipse\MVCBa ttle\cake\app\Model\Game.php on line 67 Any suggestions? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: Cake Bake Fatal error in Linux
Thanks a lot Brian Brother. At last got my problem solved Thanks 4 leading me to the right path. This web forum helped me to configure Mysql... http://forums.mysql.com/read.php?11,3355,8588#msg-8588 :) On Nov 30, 10:52 pm, brian <[EMAIL PROTECTED]> wrote: > This has nothing to do with CakePHP. You need to sort out your MySQL > installation, > first. The error you're seeing is, again, quite common. Google will show you > the way. > > On Sun, Nov 30, 2008 at 8:57 AM, nithinalex <[EMAIL PROTECTED]> wrote: > > > Now I am getting a new error... > > > Warning: mysql_connect(): Can't connect to local MySQL server through > > socket '/var/run/mysqld/mysqld.sock' (2) in /usr/share/php/cake1.2/ > > libs/model/datasources/dbo/dbo_mysql.php on line 100 > > > I am getting confusedI installed php cli,Cake1.2 Scripts,php5- > > mysql...( Working in Xampp environment in ubuntu ) > > > I am getting the above error when i try to bake model,controllers & > > views...only able to configure database. > > > Can anyone tell how to configure Cake Bake in Ubuntu under Xampp > > Environment. > > > brian wrote: > > > It appears that you do not have the PHP MySQL libs installed. > > > > *apt*-get install php-*mysql* > > > > On Sat, Nov 29, 2008 at 10:21 AM, nithinalex <[EMAIL PROTECTED]> wrote: > > > > > Hello Friends > > > > > When i am using Cake Bake I am getting an error like this... > > > > > Fatal error: Call to undefined function mysql_connect() in /usr/share/ > > > > php/cake1.2/libs/model/datasources/dbo/dbo_mysql.php on line 100 > > > > > I am using XAMPP, Cake 1.2 in Ubuntu. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cake Bake Fatal error in Linux
Thanks a lot Brian Brother. At last got my problem solved Thanks 4 leading me to the right path. This web forum helped me to configure Mysql...http://forums.mysql.com/ read.php?11,3355,8588#msg-8588 :) On Nov 30, 10:52 pm, brian <[EMAIL PROTECTED]> wrote: > This has nothing to do with CakePHP. You need to sort out your MySQL > installation, > first. The error you're seeing is, again, quite common. Google will show you > the way. > > On Sun, Nov 30, 2008 at 8:57 AM, nithinalex <[EMAIL PROTECTED]> wrote: > > > Now I am getting a new error... > > > Warning: mysql_connect(): Can't connect to local MySQL server through > > socket '/var/run/mysqld/mysqld.sock' (2) in /usr/share/php/cake1.2/ > > libs/model/datasources/dbo/dbo_mysql.php on line 100 > > > I am getting confusedI installed php cli,Cake1.2 Scripts,php5- > > mysql...( Working in Xampp environment in ubuntu ) > > > I am getting the above error when i try to bake model,controllers & > > views...only able to configure database. > > > Can anyone tell how to configure Cake Bake in Ubuntu under Xampp > > Environment. > > > brian wrote: > > > It appears that you do not have the PHP MySQL libs installed. > > > > *apt*-get install php-*mysql* > > > > On Sat, Nov 29, 2008 at 10:21 AM, nithinalex <[EMAIL PROTECTED]> wrote: > > > > > Hello Friends > > > > > When i am using Cake Bake I am getting an error like this... > > > > > Fatal error: Call to undefined function mysql_connect() in /usr/share/ > > > > php/cake1.2/libs/model/datasources/dbo/dbo_mysql.php on line 100 > > > > > I am using XAMPP, Cake 1.2 in Ubuntu. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cake Bake Fatal error in Linux
This has nothing to do with CakePHP. You need to sort out your MySQL installation, first. The error you're seeing is, again, quite common. Google will show you the way. On Sun, Nov 30, 2008 at 8:57 AM, nithinalex <[EMAIL PROTECTED]> wrote: > > Now I am getting a new error... > > Warning: mysql_connect(): Can't connect to local MySQL server through > socket '/var/run/mysqld/mysqld.sock' (2) in /usr/share/php/cake1.2/ > libs/model/datasources/dbo/dbo_mysql.php on line 100 > > I am getting confusedI installed php cli,Cake1.2 Scripts,php5- > mysql...( Working in Xampp environment in ubuntu ) > > I am getting the above error when i try to bake model,controllers & > views...only able to configure database. > > Can anyone tell how to configure Cake Bake in Ubuntu under Xampp > Environment. > > > > > brian wrote: > > It appears that you do not have the PHP MySQL libs installed. > > > > *apt*-get install php-*mysql* > > > > On Sat, Nov 29, 2008 at 10:21 AM, nithinalex <[EMAIL PROTECTED]> wrote: > > > > > > > > Hello Friends > > > > > > When i am using Cake Bake I am getting an error like this... > > > > > > Fatal error: Call to undefined function mysql_connect() in /usr/share/ > > > php/cake1.2/libs/model/datasources/dbo/dbo_mysql.php on line 100 > > > > > > I am using XAMPP, Cake 1.2 in Ubuntu. > > > > > > > > > > > > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cake Bake Fatal error in Linux
Now I am getting a new error... Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /usr/share/php/cake1.2/ libs/model/datasources/dbo/dbo_mysql.php on line 100 I am getting confusedI installed php cli,Cake1.2 Scripts,php5- mysql...( Working in Xampp environment in ubuntu ) I am getting the above error when i try to bake model,controllers & views...only able to configure database. Can anyone tell how to configure Cake Bake in Ubuntu under Xampp Environment. brian wrote: > It appears that you do not have the PHP MySQL libs installed. > > *apt*-get install php-*mysql* > > On Sat, Nov 29, 2008 at 10:21 AM, nithinalex <[EMAIL PROTECTED]> wrote: > > > > > Hello Friends > > > > When i am using Cake Bake I am getting an error like this... > > > > Fatal error: Call to undefined function mysql_connect() in /usr/share/ > > php/cake1.2/libs/model/datasources/dbo/dbo_mysql.php on line 100 > > > > I am using XAMPP, Cake 1.2 in Ubuntu. > > > > > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cake Bake Fatal error in Linux
It appears that you do not have the PHP MySQL libs installed. *apt*-get install php-*mysql* On Sat, Nov 29, 2008 at 10:21 AM, nithinalex <[EMAIL PROTECTED]> wrote: > > Hello Friends > > When i am using Cake Bake I am getting an error like this... > > Fatal error: Call to undefined function mysql_connect() in /usr/share/ > php/cake1.2/libs/model/datasources/dbo/dbo_mysql.php on line 100 > > I am using XAMPP, Cake 1.2 in Ubuntu. > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Cake Bake Fatal error in Linux
Hello Friends When i am using Cake Bake I am getting an error like this... Fatal error: Call to undefined function mysql_connect() in /usr/share/ php/cake1.2/libs/model/datasources/dbo/dbo_mysql.php on line 100 I am using XAMPP, Cake 1.2 in Ubuntu. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---