Re: Clone Site Error
I find the more I sit there saying "I know this was working 10 minutes ago, nothing can be wrong" the less likely I am to find the solution. I would, leave debug on, strip all joins out of the first model you access then slowly add them back in till you find the model that has your rougue call. HTH, Paul @phpMagpie On Sep 4, 10:21 am, Ryan Schmidt wrote: > On Sep 3, 2011, at 20:36, Krissy Masters wrote: > > > Its already maxed at 64M > > > Both sites are small. 3 tables mostly all statc pages, not heavy at all. > > Very little sql calls and what ever calls are cached anyways so there is no > > demand what so ever. And it only appears on 1 site. Why does it not show on > > both if there was a memory problem? > > I agree it is odd that you see the problem with the clone, and not with the > original, if they're running on the same server, and that therefore the > memory setting is probably not relevant. > > However, note that the default max memory allocation for PHP 5.3.x is 128MB, > so you're running at half that and it's therefore not surprising some things > would fail. > > http://us3.php.net/ini.core#ini.sect.resource-limits -- 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: Clone Site Error
On Sep 3, 2011, at 20:36, Krissy Masters wrote: > Its already maxed at 64M > > Both sites are small. 3 tables mostly all statc pages, not heavy at all. Very > little sql calls and what ever calls are cached anyways so there is no demand > what so ever. And it only appears on 1 site. Why does it not show on both if > there was a memory problem? I agree it is odd that you see the problem with the clone, and not with the original, if they're running on the same server, and that therefore the memory setting is probably not relevant. However, note that the default max memory allocation for PHP 5.3.x is 128MB, so you're running at half that and it's therefore not surprising some things would fail. http://us3.php.net/ini.core#ini.sect.resource-limits -- 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: Clone Site Error
Deleted everything inside all tmp folders, nothing is hardcoded. Checked debug and error logs just for the hell of it, Cleared the logs and went thru every link on the site and check the logs after doing so and everything is at zero so nothing it tripping up any where I can see. Stripped everything out of app_controller , site still runs but still that memory issue. I will double check again for hardcoded files but I can't think of anything off hand as I said the site is so small and basically 95% all static "pages" I write into the ctp files. Keep you all posted, Thanks again for the tips. K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Dr. Loboto Sent: Sunday, September 04, 2011 3:45 AM To: CakePHP Subject: Re: Clone Site Error Clear caches at /app/tmp - it's first that should be done on clone. Look at site code - is there any hardcoded file path or URL of site? Any of this can create hidden infinite loop as Jeremy suspected. On 4 сен, 13:09, "Krissy Masters" wrote: > On site 1 (no problem / original site) I turn debug on and I don't see any > errors no memory crash on any of the pages. > > Site 2 ( the clone) every page has the memory error. If I turn debug off the > site runs fine, but with debug on I see the error. I dumped the cache, > session db. It still makes no sense why an exact copy of a site throws this > error. If they were feeding of the same memory why would it only show on 1 > site. Would it not be like a tug of war between the sites and whoever gets > the memory first would win and the other would show the error so you would > think it would appear on both back and forth type thing no? > > I will give your suggestion a try and see what happens. > > Server > > Site1/app (no problems) > > Site2/app(memory exhausted) > > Might just delete everything and go to bed.. > > K > > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf > Of Jeremy Burns | Class Outfit > Sent: Sunday, September 04, 2011 3:10 AM > To: cake-php@googlegroups.com > Subject: Re: Clone Site Error > > Most times I have seen that error it is some sort of infinite loop, either a > redirect or foreach around bad data. Is there something that is supposed to > be in session that isn't? I'd start by doing some die(debug()) stuff until I > find the line that causes it to explode. > > Jeremy Burns > > Class Outfit > > http://www.classoutfit.com > > On 4 Sep 2011, at 02:13, Almacenamiento Almacenamiento wrote: > > Configure php.ini in part memory for more size > > 2011/9/3 Krissy Masters > > I have 1 site up and running no problems. > > I copied the site app folder, created a folder on my machine so perfect copy > of the site. Create new folder on the server uploaded the copy so I have 2 > exact sites. Coped the original db onto a new db so the cloned site has it > own db. All is good except the cloned version is throwing > > Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to > allocate 40961 bytes) in /home4 /libs/1.3.11/cake/libs/view/view.php on line > 728 (numbers changes on every refresh even down to 4 bytes) > > And no idea why 1 would and 1 would not when they are exactly the same. Same > server. > > Does anyone have any kind of idea why? > > Thanks > > K > > -- > Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org<http://tv.cakephp.org/> > Check out the new CakePHP Questions sitehttp://ask.cakephp.org > <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 > <mailto:cake-php%2bunsubscr...@googlegroups.com> For more options, visit > this group athttp://groups.google.com/group/cake-php > > -- > Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org<http://tv.cakephp.org/> > Check out the new CakePHP Questions sitehttp://ask.cakephp.org > <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 athttp://groups.google.com/group/cake-php > > -- > Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 athttp://groups.google.com/group/cake-php -- Our newest site for the commun
Re: Clone Site Error
Clear caches at /app/tmp - it's first that should be done on clone. Look at site code - is there any hardcoded file path or URL of site? Any of this can create hidden infinite loop as Jeremy suspected. On 4 сен, 13:09, "Krissy Masters" wrote: > On site 1 (no problem / original site) I turn debug on and I don't see any > errors no memory crash on any of the pages. > > Site 2 ( the clone) every page has the memory error. If I turn debug off the > site runs fine, but with debug on I see the error. I dumped the cache, > session db. It still makes no sense why an exact copy of a site throws this > error. If they were feeding of the same memory why would it only show on 1 > site. Would it not be like a tug of war between the sites and whoever gets > the memory first would win and the other would show the error so you would > think it would appear on both back and forth type thing no? > > I will give your suggestion a try and see what happens. > > Server > > Site1/app (no problems) > > Site2/app(memory exhausted) > > Might just delete everything and go to bed.. > > K > > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf > Of Jeremy Burns | Class Outfit > Sent: Sunday, September 04, 2011 3:10 AM > To: cake-php@googlegroups.com > Subject: Re: Clone Site Error > > Most times I have seen that error it is some sort of infinite loop, either a > redirect or foreach around bad data. Is there something that is supposed to > be in session that isn't? I'd start by doing some die(debug()) stuff until I > find the line that causes it to explode. > > Jeremy Burns > > Class Outfit > > http://www.classoutfit.com > > On 4 Sep 2011, at 02:13, Almacenamiento Almacenamiento wrote: > > Configure php.ini in part memory for more size > > 2011/9/3 Krissy Masters > > I have 1 site up and running no problems. > > I copied the site app folder, created a folder on my machine so perfect copy > of the site. Create new folder on the server uploaded the copy so I have 2 > exact sites. Coped the original db onto a new db so the cloned site has it > own db. All is good except the cloned version is throwing > > Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to > allocate 40961 bytes) in /home4 /libs/1.3.11/cake/libs/view/view.php on line > 728 (numbers changes on every refresh even down to 4 bytes) > > And no idea why 1 would and 1 would not when they are exactly the same. Same > server. > > Does anyone have any kind of idea why? > > Thanks > > K > > -- > Our newest site for the community: CakePHP Video > Tutorialshttp://tv.cakephp.org<http://tv.cakephp.org/> > Check out the new CakePHP Questions sitehttp://ask.cakephp.org > <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 > <mailto:cake-php%2bunsubscr...@googlegroups.com> For more options, visit > this group athttp://groups.google.com/group/cake-php > > -- > Our newest site for the community: CakePHP Video > Tutorialshttp://tv.cakephp.org<http://tv.cakephp.org/> > Check out the new CakePHP Questions sitehttp://ask.cakephp.org > <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 > athttp://groups.google.com/group/cake-php > > -- > Our newest site for the community: CakePHP Video > Tutorialshttp://tv.cakephp.org > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 > athttp://groups.google.com/group/cake-php -- 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: Clone Site Error
On site 1 (no problem / original site) I turn debug on and I don't see any errors no memory crash on any of the pages. Site 2 ( the clone) every page has the memory error. If I turn debug off the site runs fine, but with debug on I see the error. I dumped the cache, session db. It still makes no sense why an exact copy of a site throws this error. If they were feeding of the same memory why would it only show on 1 site. Would it not be like a tug of war between the sites and whoever gets the memory first would win and the other would show the error so you would think it would appear on both back and forth type thing no? I will give your suggestion a try and see what happens. Server Site1/app (no problems) Site2/app(memory exhausted) Might just delete everything and go to bed.. K From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Jeremy Burns | Class Outfit Sent: Sunday, September 04, 2011 3:10 AM To: cake-php@googlegroups.com Subject: Re: Clone Site Error Most times I have seen that error it is some sort of infinite loop, either a redirect or foreach around bad data. Is there something that is supposed to be in session that isn't? I'd start by doing some die(debug()) stuff until I find the line that causes it to explode. Jeremy Burns Class Outfit http://www.classoutfit.com On 4 Sep 2011, at 02:13, Almacenamiento Almacenamiento wrote: Configure php.ini in part memory for more size 2011/9/3 Krissy Masters I have 1 site up and running no problems. I copied the site app folder, created a folder on my machine so perfect copy of the site. Create new folder on the server uploaded the copy so I have 2 exact sites. Coped the original db onto a new db so the cloned site has it own db. All is good except the cloned version is throwing Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 40961 bytes) in /home4 /libs/1.3.11/cake/libs/view/view.php on line 728 (numbers changes on every refresh even down to 4 bytes) And no idea why 1 would and 1 would not when they are exactly the same. Same server. Does anyone have any kind of idea why? Thanks K -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org <http://tv.cakephp.org/> Check out the new CakePHP Questions site http://ask.cakephp.org <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 <mailto:cake-php%2bunsubscr...@googlegroups.com> For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org <http://tv.cakephp.org/> Check out the new CakePHP Questions site http://ask.cakephp.org <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 -- 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 -- 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: Clone Site Error
Most times I have seen that error it is some sort of infinite loop, either a redirect or foreach around bad data. Is there something that is supposed to be in session that isn't? I'd start by doing some die(debug()) stuff until I find the line that causes it to explode. Jeremy Burns Class Outfit http://www.classoutfit.com On 4 Sep 2011, at 02:13, Almacenamiento Almacenamiento wrote: > Configure php.ini in part memory for more size > > 2011/9/3 Krissy Masters > I have 1 site up and running no problems. > > I copied the site app folder, created a folder on my machine so perfect copy > of the site. Create new folder on the server uploaded the copy so I have 2 > exact sites. Coped the original db onto a new db so the cloned site has it > own db. All is good except the cloned version is throwing > > > > Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to > allocate 40961 bytes) in /home4 /libs/1.3.11/cake/libs/view/view.php on line > 728 (numbers changes on every refresh even down to 4 bytes) > > > > And no idea why 1 would and 1 would not when they are exactly the same. Same > server. > > > > Does anyone have any kind of idea why? > > > > Thanks > > > > K > > > -- > 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 > > > -- > 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 -- 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: Clone Site Error
Its already maxed at 64M Both sites are small. 3 tables mostly all statc pages, not heavy at all. Very little sql calls and what ever calls are cached anyways so there is no demand what so ever. And it only appears on 1 site. Why does it not show on both if there was a memory problem? Thanks for the replay all the same. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Almacenamiento Almacenamiento Sent: Saturday, September 03, 2011 10:44 PM To: cake-php@googlegroups.com Subject: Re: Clone Site Error Configure php.ini in part memory for more size 2011/9/3 Krissy Masters I have 1 site up and running no problems. I copied the site app folder, created a folder on my machine so perfect copy of the site. Create new folder on the server uploaded the copy so I have 2 exact sites. Coped the original db onto a new db so the cloned site has it own db. All is good except the cloned version is throwing Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 40961 bytes) in /home4 /libs/1.3.11/cake/libs/view/view.php on line 728 (numbers changes on every refresh even down to 4 bytes) And no idea why 1 would and 1 would not when they are exactly the same. Same server. Does anyone have any kind of idea why? Thanks K -- 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 <mailto:cake-php%2bunsubscr...@googlegroups.com> For more options, visit this group at http://groups.google.com/group/cake-php -- 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 -- 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: Clone Site Error
Configure php.ini in part memory for more size 2011/9/3 Krissy Masters > I have 1 site up and running no problems. > > I copied the site app folder, created a folder on my machine so perfect > copy of the site. Create new folder on the server uploaded the copy so I > have 2 exact sites. Coped the original db onto a new db so the cloned site > has it own db. All is good except the cloned version is throwing > > ** ** > > *Fatal error*: Allowed memory size of 67108864 bytes exhausted (tried to > allocate 40961 bytes) in */home4 /libs/1.3.11/cake/libs/view/view.php* on > line *728* (numbers changes on every refresh even down to 4 bytes) > > ** ** > > And no idea why 1 would and 1 would not when they are exactly the same. > Same server. > > ** ** > > Does anyone have any kind of idea why? > > ** ** > > *Thanks* > > * * > > *K* > > -- > 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 > -- 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