Re: Max number of save()'s in a loop

2008-05-08 Thread Kyle Decot

It's now getting anywhere from 2000-2400 loops into it and then I get:

Warning (2): Invalid argument supplied for foreach() [CORE/cake/libs/
model/datasources/dbo_source.php, line 544]
Warning (2): Invalid argument supplied for foreach() [CORE/cake/libs/
model/datasources/dbo_source.php, line 543]
Notice (8): Undefined property:  tablePrefix [CORE/cake/libs/model/
datasources/dbo_source.php, line 456]
Notice (8): Undefined property:  table [CORE/cake/libs/model/
datasources/dbo_source.php, line 456]

Fatal error: Call to a member function on a non-object in /home/
content/a/f/f/affinit3/html/cake/libs/model/datasources/dbo_source.php
on line 568
Warning (0rray  =   array()): Unknown(): Unable to call  () - function
does not exist [Unknown, line ??]

on rare occasions it will get to the 16,000's and then just stop. I'm
really confused by this.
--~--~-~--~~~---~--~~
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: Max number of save()'s in a loop

2008-05-08 Thread Samuel DeVore

http://us3.php.net/manual/en/function.set-time-limit.php

reset it every n times through a really long loop if you think that is
your issue, each time you set it it rolls the timer back to 0

Sam D

On Thu, May 8, 2008 at 4:13 AM, Kyle Decot <[EMAIL PROTECTED]> wrote:
>
> I'm not sure how to do that. Any suggestions?
> >
>



-- 
-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/

--~--~-~--~~~---~--~~
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: Max number of save()'s in a loop

2008-05-08 Thread Kyle Decot

I'm not sure how to do that. Any suggestions?
--~--~-~--~~~---~--~~
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: Max number of save()'s in a loop

2008-05-08 Thread Dr. Tarique Sani
On Thu, May 8, 2008 at 2:48 PM, Kyle Decot <[EMAIL PROTECTED]> wrote:

>
> I have a loop that I am running a $this->Word->save() in, and I need
> to be able to do the maximum of loops possible but it gets through
> about 4000 loops and then just stops. I've instructed the loop to go
> until it reaches 50,000 so I'm not sure why it's doing this. Any
> ideas ?


Have you handled all the timeouts?

Tarique

-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

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