>Warning (2): array_merge() [function.array-merge]: Argument #1 is not an
>array [CORE/Cake/Event/CakeEventManager.php, line 268]
>array [CORE/Cake/Event/CakeEventManager.php, line 268]
and argument #1 for array_merge was $this->_listeners[$eventKey] which returned a rather large
array when debugged. Immediately before the array was passed to array_merge() (array_reduce() actually) it was manipulated with ksort and I thought that maybe it was passing a return value of true/false instead of the sorted array but that didn't turn out to be the case. I dorked around with it for quite a while to find out how/why things were going awry but I was on the production server and spending entirely too much time on a site that was down the whole time I was goofing with it. It turned out the version I was on was 2.1.0-alpha and since I was I was getting nowhere fast I ultimately threw the app onto a 2.1.1 core and the problem instantly went away. I suppose I'll never know what was going on there :)
- ED
-- On Wed, Apr 11, 2012 at 10:08 PM, lowpass <zijn.digital@gmail.com> wrote:
Perhaps set some debugging around line 268?
On Wed, Apr 11, 2012 at 1:21 AM, CrotchFrog <crotchfrog@gmail.com> wrote:
> Wondering if anyone has had a similar issue with this?
>
> I found this http://cakephp.lighthouseapp.com/projects/42648/tickets/2468.
> 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
--
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
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:
Post a Comment