Tuesday, April 10, 2012

Re: CakeEventManager

Wondering if anyone has had a similar issue with this? 

There is a commit that says the problem was fixed and closed (https://github.com/cakephp/cakephp/commit/e6e14a7ff98b1d80da43d51ee22f8104fb431c03).

I'm having the exact same problem. None of my controller callback events are firing. 

/lib/Cake/Event/CakeEventManager.php  ln # 268
return array_reduce($this->_listeners[$eventKey], 'array_merge', array());

$this->_listeners[$eventKey] is clearly an array. 

The apps works just fine on localhost PHP v 5.3.8 but not on remote server PHP v 5.2.17.

Is there a possibility this issue is not completely resolved, or is it merely coincidence I'm having an identical problem? 

- ED 


On Tuesday, April 10, 2012 12:52:26 PM UTC-4, CrotchFrog wrote:
Any idea what would cause this error? 
Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [CORE/Cake/Event/CakeEventManager.php, line 268]

Cake version is 2.1
I didn't have a problem until I moved the app to remote server. 
My guess is that I botched the set up but I can't see where. 

The default layout seems to load but nothing else. 

- ED

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: