On Thu, Apr 7, 2011 at 4:47 PM, Mariano C. <mariano.calan...@gmail.com> wrote:
> I starting developing my app on windows on Apache/MySQL/PHP
> environment, today i've copied my htdocs directory returned on my
> ubuntu, again under AMP environment (and paste my htdocs).
>
> Every things work quite good, but sometimes I have error like:
> Notice(8) Undefined index: id [CORE/cake/libs/model/model.php, line
> 1329]
> Warnign(2) Cannot modify header information - headers already sent by
> (output started at /opt/lampp/htdocs/cakephp/cake/libs/debugger.php:
> 673) [CORE/cake/libs/controller/controller.php, line 742]

Well, line 1329 is in save() method:
$fInfo = $this->_schema[$this->primaryKey];

It looks like you have some disparity in your table definitions.

> Database operetions work as usual but there's this little problem.
> Anyway if I set debug to 0 this error disappear.

That's because the notice is being suppressed.

-- 
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

Reply via email to