Re: Some errors with scaffolding
davide wrote: > What can I do? Should I have to open a bug? Can someone try to verify if > he has the same error? Problem solved. I've removed mysql, apache2, php and installed xampp for windows in the version 1.4.16. What is drastically changed is the php version: from 4.3.10 to 5.0.5. Thanks a lot for the help Davide signature.asc Description: OpenPGP digital signature
Re: Some errors with scaffolding
davide wrote: > - > Notice: Undefined property: primaryKey in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 > > Notice: Undefined index: in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 > View > Notice: Undefined property: primaryKey in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 114 > > Notice: Undefined index: in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 114 > Edit > Notice: Undefined property: primaryKey in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 115 > > Notice: Undefined index: in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 115 > Delete > - Ok, here I am again. Actually I'm using the cake_nightly_16.05.2006, fresh install without multiple applications. The table structure, model and controller are as simpler as possible (follow in the mail). The problem still remain, so I trace down some logs from the cake_nightly_16.05.2006/cake/libs/view/templates/scaffolds/list.thtml file. The code I added (before line 113) is: controller->\$model);\n"); fwrite($fp,print_r($this->controller->$model,true)); fwrite($fp,"\n##\n"); fclose($fp); ?> and attached there is a gzip of part of the file. What can I do? Should I have to open a bug? Can someone try to verify if he has the same error? Thanks in advance Davide CREATE TABLE `expenses` ( `id` int(8) unsigned NOT NULL auto_increment, `dx` varchar(250) default NULL, `created` datetime default NULL, `modified` datetime default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 log.txt.gz Description: GNU Zip compressed data signature.asc Description: OpenPGP digital signature
Re: Some errors with scaffolding
Larry E. Masters aka PhpNut wrote: > We have a site where bugs are reported and you can search to see it this has > been fixed: > > https://trac.cakephp.org/ Oh, yes. I forgot the trac. Sorry. > ... > With that said, grab the latest nightly, this should be corrected. However I have downloaded this[1] nightly, commented all the controller actions enabled the scaffolding, but the problem still remain (following). Maybe I've downloaded the wrong nightly. Thanks and bye Davide 1. http://cakephp.org/files/nightly/1.x.x.x/cake_nightly_15.05.2006.tar.gz - Notice: Undefined property: primaryKey in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 Notice: Undefined index: in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 View Notice: Undefined property: primaryKey in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 114 Notice: Undefined index: in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 114 Edit Notice: Undefined property: primaryKey in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 115 Notice: Undefined index: in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 115 Delete - signature.asc Description: OpenPGP digital signature
Re: Some errors with scaffolding
Just a thought, but you might want to configure the listserv to include that link after every post. I've found that sort of information works well as listserv mix-ins. David >>> [EMAIL PROTECTED] 05/16/06 8:57 AM >>> We have a site where bugs are reported and you can search to see it this has been fixed: https://trac.cakephp.org/ This list is not a bug tracker and I will say it again, any bus reported here are more then likely not going to be fixed because I use the trac site for tracking the work on the core code. With that said, grab the latest nightly, this should be corrected. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On 5/16/06, davide <[EMAIL PROTECTED]> wrote: > > davide wrote: > > I've also tried downgrading to cake_0.10.9.2378_final and simplifying > > the table with a structure like this > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Some errors with scaffolding
We have a site where bugs are reported and you can search to see it this has been fixed:https://trac.cakephp.org/This list is not a bug tracker and I will say it again, any bus reported here are more then likely not going to be fixed because I use the trac site for tracking the work on the core code. With that said, grab the latest nightly, this should be corrected.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access public */On 5/16/06, davide <[EMAIL PROTECTED]> wrote: davide wrote:> I've also tried downgrading to cake_0.10.9.2378_final and simplifying> the table with a structure like this --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Some errors with scaffolding
davide wrote: > I've also tried downgrading to cake_0.10.9.2378_final and simplifying > the table with a structure like this > > CREATE TABLE `expenses` ( > `id` int(8) unsigned NOT NULL auto_increment, > `dx` varchar(250) default NULL, > `created` datetime default NULL, > `modified` datetime default NULL, > PRIMARY KEY (`id`) > ) ENGINE=MyISAM DEFAULT CHARSET=utf8 > > but the problem still remain. Actually I have re-upgraded to the stable version and kept the simple table. I've avoided the use of scaffolding implementing the index, view and add functions. Everything works out fine. What it could be? Do you have any advice of code I can use for checking? Follows the controller and views Thanks a lot Davide set('expenses',$this->Expense->findAll()); } function view($id = null){ $this->Expense->id = $id; $this->set("expense",$this->Expense->read()); } function add(){ if(!empty($this->data)){ if($this->Expense->save($this->params["data"])){ $this->flash("saved!","/expenses"); } } } } ?> list "; foreach ($expenses as $expense){ echo "" . $html->link($expense['Expense']['dx'], "/expenses/view/" . $expense['Expense']['id']) . ""; } echo ""; ?> add new Add formTag("/expenses/add")?> dx:input("Expense/dx")?> tagErrorMsg('Expense/dx', 'dx is required.') ?> submit('Save') ?> signature.asc Description: OpenPGP digital signature
Re: Some errors with scaffolding
davide wrote: > ... > -- > Notice: Undefined property: primaryKey in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 > > Notice: Undefined index: in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 > View > Notice: Undefined property: primaryKey in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 114 > > Notice: Undefined index: in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 114 > Edit > Notice: Undefined property: primaryKey in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 115 > > Notice: Undefined index: in > H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 115 > Delete > -- > ... I've also tried downgrading to cake_0.10.9.2378_final and simplifying the table with a structure like this CREATE TABLE `expenses` ( `id` int(8) unsigned NOT NULL auto_increment, `dx` varchar(250) default NULL, `created` datetime default NULL, `modified` datetime default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 but the problem still remain. I don't know what to search. Maybe something wrong in the apache/mysql/php installation? What can I check? Thanks a lot Davide signature.asc Description: OpenPGP digital signature
Some errors with scaffolding
Hello people. I'm trying to scaffold a table like this mysql> desc expenses; +--+---+--+-++---+ | Field| Type | Null | Key | Default| Extra | +--+---+--+-++---+ | id | mediumint(8) unsigned | | PRI | NULL | auto_increment | | dt | date | | | 1900-01-01 | | | dx | varchar(250) | YES | | NULL | | | amount | decimal(8,2) | | | 0.00 | | created | datetime | YES | | NULL | | modified | datetime | YES | | NULL | +--+---+--+-++---+ on windows 2000, apache 2.0.55, mysql 4.1.18-nt and cake_1.0.1.2708. When I try to insert a new record, apache goes to crash with a "memory could not be read", but this could be another problem. So to bypass this, I tried to add via mysql a record and retrieve it. When I list the table, I get in the action column these errors -- Notice: Undefined property: primaryKey in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 Notice: Undefined index: in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 113 View Notice: Undefined property: primaryKey in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 114 Notice: Undefined index: in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 114 Edit Notice: Undefined property: primaryKey in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 115 Notice: Undefined index: in H:\www\multi-cake\cake\libs\view\templates\scaffolds\list.thtml on line 115 Delete -- and when I try the view I get an empty data page (only labels and buttons) and a warning on top of page -- Warning: array_search(): Wrong datatype for second argument in H:\www\multi-cake\cake\libs\controller\controller.php on line 702 -- maybe I wrong something with the table. Can someone help me? Thanks a lot. Davide signature.asc Description: OpenPGP digital signature