Re: PHP has encountered a Stack overflow

2008-02-08 Thread patcoll

I'm getting the same stack overflow and redefined path() errors
with the 6311 release too, FWIW

And apparently there's been no commits to 1.2.x.x trunk to the core
libs? So using a nightly wouldn't make a difference?

On Jan 16, 5:41 pm, PJ Hile [EMAIL PROTECTED] wrote:
 I was having those same problems, and had to delete the 'cake'
 directory completely and copy over the new one from the 6311 release.
 I guess there are some extra files that end up getting removed in this
 new version. Everything worked after that!

 On Jan 12, 5:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  I'm not getting stack overflow, but i'm getting the redeclare paths()
  error. Am downloading new version of basics.php now. Any other ideas
  on this? I don't think I'll be going into 300-something classes to
  search for duplicate aliases just now.

  M

  On Jan 11, 6:47 am, AD7six [EMAIL PROTECTED] wrote:

   On Jan 10, 10:32 pm, Adam Royle [EMAIL PROTECTED] wrote:

Hey AD,

Can you elaborate on why there shouldn't be duplicate aliases? I'm
pretty sure I've done this many times without issues.

   So have I, but with more recent 1.2 builds the configure class (in
   particular) relies on the alias being unique to give you an instance
   of the class you want, and the lookup is based only on the alias.

   hth,

   AD
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-16 Thread PJ Hile

I was having those same problems, and had to delete the 'cake'
directory completely and copy over the new one from the 6311 release.
I guess there are some extra files that end up getting removed in this
new version. Everything worked after that!


On Jan 12, 5:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I'm not getting stack overflow, but i'm getting the redeclare paths()
 error. Am downloading new version of basics.php now. Any other ideas
 on this? I don't think I'll be going into 300-something classes to
 search for duplicate aliases just now.

 M

 On Jan 11, 6:47 am, AD7six [EMAIL PROTECTED] wrote:

  On Jan 10, 10:32 pm, Adam Royle [EMAIL PROTECTED] wrote:

   Hey AD,

   Can you elaborate on why there shouldn't be duplicate aliases? I'm
   pretty sure I've done this many times without issues.

  So have I, but with more recent 1.2 builds the configure class (in
  particular) relies on the alias being unique to give you an instance
  of the class you want, and the lookup is based only on the alias.

  hth,

  AD



--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-13 Thread AD7six



On Jan 12, 11:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 I'm not getting stack overflow, but i'm getting the redeclare paths()
 error. Am downloading new version of basics.php now. Any other ideas
 on this?

I doubt downloading an updated basics.php file will do anything.
Updating your cake install might - but you'll probably find that,
given that basics is only (supposed to be) loaded once by the core,
there's an error somewhere in your app code.

 I don't think I'll be going into 300-something classes to search for 
 duplicate aliases

Do you have 300-something MODELS? Are you getting a stack overflow
error? Well you don't need to then ;). Why would the (suggested) fix
for one problem address something completely different?

hth,

AD
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-12 Thread [EMAIL PROTECTED]

I'm not getting stack overflow, but i'm getting the redeclare paths()
error. Am downloading new version of basics.php now. Any other ideas
on this? I don't think I'll be going into 300-something classes to
search for duplicate aliases just now.

M

On Jan 11, 6:47 am, AD7six [EMAIL PROTECTED] wrote:
 On Jan 10, 10:32 pm, Adam Royle [EMAIL PROTECTED] wrote:

  Hey AD,

  Can you elaborate on why there shouldn't be duplicate aliases? I'm
  pretty sure I've done this many times without issues.

 So have I, but with more recent 1.2 builds the configure class (in
 particular) relies on the alias being unique to give you an instance
 of the class you want, and the lookup is based only on the alias.

 hth,

 AD
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-12 Thread lordG

One thing that was true with this error was ensuring that all you
models are correctly called, so ensuring all the plugins requested
their models by PluginName.ModelName seemed to have addressed the
problem.

I also restored the model names and $name to the cake format, which
yes (perhaps studip for doing it in the first place) has also helped
solve the problem.

Learning by pushing the boundries! LOL :D painfull!
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-11 Thread AD7six



On Jan 10, 10:32 pm, Adam Royle [EMAIL PROTECTED] wrote:
 Hey AD,

 Can you elaborate on why there shouldn't be duplicate aliases? I'm
 pretty sure I've done this many times without issues.


So have I, but with more recent 1.2 builds the configure class (in
particular) relies on the alias being unique to give you an instance
of the class you want, and the lookup is based only on the alias.

hth,

AD


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread Chris Hartjes

On Jan 10, 2008 10:37 AM, lordG [EMAIL PROTECTED] wrote:

 Hi Guys,

 I just updated my core site to the latest 1.2.0.6311 release and I
 keep getting this error on every second or third request:

 PHP has encountered a Stack overflow


Imagine my shock when Google pointed out what the problem is.

Try increasing the amount of memory that PHP is using in your php.ini.
 Look for 'memory_limit' in there.  Sounds like you need to increase
it.

Hope that helps.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: Moving from herding elephants to handling snakes...
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

Also, when I hit refresh when this happens, I get this error:

Fatal error: Cannot redeclare paths() (previously declared in D:
\webserver\cake.1.2\dev.2\cake\cake\basics.php:60) in D:\webserver
\cake.1.2\dev.2\cake\cake\basics.php on line 100

Er, um, what? I haven't even redeclared it.

Seriously, ANYONE have ANY ideas?
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

Hey Chris,

Thanks, but mine is already set to 128M, which is far too high anyway.

My app was working 100% with release 1.2.0.5875, but now with the new
one, I get this error above.

Any further ideas?

G
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

Even tried the ini setting at 512MB, and still no luck...!

Like I mentioned, the app was working 100% before the update, and I
used to use loadModel, and switched it to the App::import... could
this be part of the memory usage error?

On Jan 10, 6:08 pm, lordG [EMAIL PROTECTED] wrote:
 Hey Chris,

 Thanks, but mine is already set to 128M, which is far too high anyway.

 My app was working 100% with release 1.2.0.5875, but now with the new
 one, I get this error above.

 Any further ideas?

 G
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l

I have upgraded my loadModel calls with App::inport without
problem..
STACK_OVERFLOW is symptomatic of a dead-end loop ... Is the
App::import the only code modified ? If you comment your
App::import, do you face the same overflow ?

On Jan 10, 5:25 pm, lordG [EMAIL PROTECTED] wrote:
 Even tried the ini setting at 512MB, and still no luck...!

 Like I mentioned, the app was working 100% before the update, and I
 used to use loadModel, and switched it to the App::import... could
 this be part of the memory usage error?

 On Jan 10, 6:08 pm, lordG [EMAIL PROTECTED] wrote:

  Hey Chris,

  Thanks, but mine is already set to 128M, which is far too high anyway.

  My app was working 100% with release 1.2.0.5875, but now with the new
  one, I get this error above.

  Any further ideas?

  G
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

Yeah, i've been trying that, but I am not sure if that is or isn't
related to the error.

The code I have that seems to get nailed is as soon as I do the
$MenuModel = new MenuModel();:

if (!is_object($this-MenuModel)) {
if (!ClassRegistry::isKeySet('MenuModel')) {
//get the language model
if (!class_exists('MenuModel')) {
App::import('Model','cms.MenuModel');
}
$MenuModel = new MenuModel();
ClassRegistry::addObject('MenuModel', 
$MenuModel);
}
$this-MenuModel = 
ClassRegistry::getObject('MenuModel');
}

AND stripped the MenuModel down to basics

class MenuModel extends CmsAppModel
{
public $name = 'MenuModel';
public $useTable = 'cms_menu';

}
And I still get the Stack overflow error.

I did print_r and exit test in between the code above and only hit the
error at $MenuModel = new MenuModel();

Side note: are there any other methods of retreiving the App:import
class files or any other way I should be doing the = new ...?
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l

$MenuModel =  new MenuModel(); ?

Is all the code in same function ? Maybe ahve a look to
ClassRegistry::Init('MenuModel', 'Model'), I think it does the add
object and returns the class ...(to verify)

On Jan 10, 5:54 pm, lordG [EMAIL PROTECTED] wrote:
 Yeah, i've been trying that, but I am not sure if that is or isn't
 related to the error.

 The code I have that seems to get nailed is as soon as I do the
 $MenuModel = new MenuModel();:

 if (!is_object($this-MenuModel)) {
 if (!ClassRegistry::isKeySet('MenuModel')) {
 //get the language model
 if (!class_exists('MenuModel')) {
 App::import('Model','cms.MenuModel');
 }
 $MenuModel = new MenuModel();
 ClassRegistry::addObject('MenuModel', 
 $MenuModel);
 }
 $this-MenuModel = 
 ClassRegistry::getObject('MenuModel');
 }

 AND stripped the MenuModel down to basics

 class MenuModel extends CmsAppModel
 {
 public $name = 'MenuModel';
 public $useTable = 'cms_menu';

 }

 And I still get the Stack overflow error.

 I did print_r and exit test in between the code above and only hit the
 error at $MenuModel = new MenuModel();

 Side note: are there any other methods of retreiving the App:import
 class files or any other way I should be doing the = new ...?
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l

Maybe yes, the Model in the init function should be prefix with plugin
name.
I think you only need this :

if (!is_object($this-MenuModel)) {
 $this-MenuModel = ClassRegistry::init('cms.MenuModel',
'Model');

Also what in your plugin, if you have relation between model integrate
the plugin name into the relation declarations

hth

On Jan 10, 6:21 pm, lordG [EMAIL PROTECTED] wrote:
 nope, if I remove the code, i dont get the error. The error only
 appears to be occuring when either running $MenuModel =
 ClassRegistry::init('MenuModel'); or $menuModel = new MenuModel();

 Some further notes, this model is within a plugin call Cms. Could the
 error be related to how Cake is hanlding the classes in plugins?
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

nope, if I remove the code, i dont get the error. The error only
appears to be occuring when either running $MenuModel =
ClassRegistry::init('MenuModel'); or $menuModel = new MenuModel();

Some further notes, this model is within a plugin call Cms. Could the
error be related to how Cake is hanlding the classes in plugins?
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

Yeah, still not. This is the updated code.

if (!is_object($this-MenuModel)) {
if (!ClassRegistry::isKeySet('MenuModel')) {
//get the language model
if (!class_exists('MenuModel')) {
App::import('Model','cms.MenuModel');
}

$MenuModel = ClassRegistry::init('MenuModel');
//$MenuModel-load();
}
$this-MenuModel = ClassRegistry::getObject('MenuModel');
}

Still get the error. Crazy!
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l

If you remove this block of code ? DO you get the error ?

On Jan 10, 6:12 pm, lordG [EMAIL PROTECTED] wrote:
 Yeah, still not. This is the updated code.

 if (!is_object($this-MenuModel)) {
 if (!ClassRegistry::isKeySet('MenuModel')) {
 //get the language model
 if (!class_exists('MenuModel')) {
 App::import('Model','cms.MenuModel');
 }

 $MenuModel = ClassRegistry::init('MenuModel');
 //$MenuModel-load();
 }
 $this-MenuModel = ClassRegistry::getObject('MenuModel');

 }

 Still get the error. Crazy!
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

Yeah, sorry about the code error, I forgot about the Plugin.ModelName
here. This has not fixed the problem though.

I've updated the code to:

if (!is_object($this-MenuModel)) {
if (!ClassRegistry::isKeySet('MenuModel')) {
$MenuModel = ClassRegistry::init('Cms.MenuModel', 'Model');
$MenuModel-load();
}
$this-MenuModel = ClassRegistry::getObject('MenuModel');
}

Still get the error!

Side note: I restart iis everytime before testing to ensure a clean
test.

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l

You do not need isKeySet and getObject, the init function will do the
addObject (unless you need to call your init function load the first
time) ... When tracing, where does fails ?
init, load or getObject ?

On Jan 10, 6:42 pm, lordG [EMAIL PROTECTED] wrote:
 Yeah, sorry about the code error, I forgot about the Plugin.ModelName
 here. This has not fixed the problem though.

 I've updated the code to:

 if (!is_object($this-MenuModel)) {
 if (!ClassRegistry::isKeySet('MenuModel')) {
 $MenuModel = ClassRegistry::init('Cms.MenuModel', 'Model');
 $MenuModel-load();
 }
 $this-MenuModel = ClassRegistry::getObject('MenuModel');

 }

 Still get the error!

 Side note: I restart iis everytime before testing to ensure a clean
 test.
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

Ok, I found the problem... In my controller I opted to switch the $ext
value back to '.thtml' so I didn't have to rename hundreds of view
files.

Now this is interesting though becasue what does the $ext of the
controller have to do with the App::import()? When debugging, I always
got to the ${$class} = new $class($options); line of the
ClassRegistry::init() function and it would run into this error above.

However, I have hit another problem with the App::import, which looks
like a bug. line 106 with the settings read:
$settings = array_merge(array('id' = false, 'table' = null, 'ds' =
null, 'alias' = null, 'name' = null), $settings);

Shouldn't table = false? Otherwise it ends up trying to use a table
off the class's name because $table != false?
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

though, whilst looking through the code of the constructor function of
the model, there is no way around this...
model class:
00349 if ($table === false) {
00350 $this-useTable = false;
00351 } elseif ($table) {
00352 $this-useTable = $table;
00353 }

which this means that any ClassRegistry::init() call must have the
tables name if it is different from the model's class name. Is this
correct? Er, that's not so nice.
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread francky06l

I have a model load with App::import and having no table. It does not
generate any problem ...
Actually I have never loaded a plugin.model, but I am doing
plugin.helper, plugin.component without problem..

On Jan 10, 8:32 pm, lordG [EMAIL PROTECTED] wrote:
 nope, I think I was wrong about that!
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread AD7six



On Jan 10, 8:46 pm, francky06l [EMAIL PROTECTED] wrote:
 I have a model load with App::import and having no table. It does not
 generate any problem ...
 Actually I have never loaded a plugin.model, but I am doing
 plugin.helper, plugin.component without problem..


Check that you don't have duplicate aliases anywhere in your app

e.g.

class Category extends AppModel {
var $belongsTo = array('Parent' = .

class Product extends AppModel {
var $belongsTo = array('Parent' = .

If you do, make them unique (e.g. CParent, PParent)

hth,

AD
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

The problem was not solved by changing the $ext!

AD, i'll check on what you are suggesting. Is this because Cake loads
all the models or something? Why would the duplicate aliases solve the
problem?
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread lordG

Ok, I have no duplicate aliases in the models... any other
suggestions? Whatever has gone wrong is because of a difference in the
2 releases, and I think to suspect the new App::import related items
and how it is functioning.

On Jan 10, 10:19 pm, lordG [EMAIL PROTECTED] wrote:
 The problem was not solved by changing the $ext!

 AD, i'll check on what you are suggesting. Is this because Cake loads
 all the models or something? Why would the duplicate aliases solve the
 problem?
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: PHP has encountered a Stack overflow

2008-01-10 Thread Adam Royle

Hey AD,

Can you elaborate on why there shouldn't be duplicate aliases? I'm
pretty sure I've done this many times without issues.

Cheers,
Adam

On Jan 11, 5:51 am, AD7six [EMAIL PROTECTED] wrote:
 On Jan 10, 8:46 pm, francky06l [EMAIL PROTECTED] wrote:

  I have a model load with App::import and having no table. It does not
  generate any problem ...
  Actually I have never loaded a plugin.model, but I am doing
  plugin.helper, plugin.component without problem..

 Check that you don't have duplicate aliases anywhere in your app

 e.g.

 class Category extends AppModel {
 var $belongsTo = array('Parent' = .

 class Product extends AppModel {
 var $belongsTo = array('Parent' = .

 If you do, make them unique (e.g. CParent, PParent)

 hth,

 AD
--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---