Error with Search perform

78 views
Skip to first unread message

Adrenaline

unread,
Jul 5, 2014, 5:04:47 PM7/5/14
to cro...@googlegroups.com
Hello,
I've got some troubles with Croogo 2.0.0 when I perform a search from Contact page (or other pages if it's not a Node page)
This following error occur.:

Notice (8): Undefined index: Node [APP/Plugin/Search/Model/Behavior/SearchableBehavior.php, line 106]
Warning (2): array_keys() expects parameter 1 to be array, null given [APP/Plugin/Search/Model/Behavior/SearchableBehavior.php, line 106]
Warning (2): Invalid argument supplied for foreach() [APP/Plugin/Search/Model/Behavior/SearchableBehavior.php, line 107]
Notice (8): Undefined index: Node [APP/Plugin/Search/Controller/Component/PrgComponent.php, line 358]
Warning (4096): Argument 1 passed to PrgComponent::serializeParams() must be of the type array, null given, called in /apps/site/200_PPR/Plugin/Search/Controller/Component/PrgComponent.php on line 359 and defined [APP/Plugin/Search/Controller/Component/PrgComponent.php, line 237]
Warning (2): array_merge(): Argument #2 is not an array [APP/Plugin/Search/Controller/Component/PrgComponent.php, line 383]
Warning (4096): Argument 1 passed to PrgComponent::exclude() must be of the type array, null given, called in /apps/site/200_PPR/Plugin/Search/Controller/Component/PrgComponent.php on line 384 and defined [APP/Plugin/Search/Controller/Component/PrgComponent.php, line 294]
Warning (2): Invalid argument supplied for foreach() [APP/Plugin/Search/Controller/Component/PrgComponent.php, line 296]

I need some help please.

Rachman Chavik

unread,
Jul 7, 2014, 2:05:02 AM7/7/14
to cro...@googlegroups.com
On Sat, 05 Jul 2014 14:04:47 -0700, Adrenaline wrote:

> Hello,
> I've got some troubles with Croogo 2.0.0 when I perform a search from
> Contact page (or other pages if it's not a Node page)
> This following error occur.:
>
> *Notice* (8): Undefined index: Node [*APP/Plugin/Search/Model/Behavior/SearchableBehavior.php*, line *106*]
>
> *Warning* (2): array_keys() expects parameter 1 to be array, null given [*APP/Plugin/Search/Model/Behavior/SearchableBehavior.php*, line *106*]
>
> *Warning* (2): Invalid argument supplied for foreach() [*APP/Plugin/Search/Model/Behavior/SearchableBehavior.php*, line *107*]
>
> *Notice* (8): Undefined index: Node [*APP/Plugin/Search/Controller/Component/PrgComponent.php*, line *358*]
>
> *Warning* (4096): Argument 1 passed to PrgComponent::serializeParams() must be of the type array, null given, called in /apps/site/200_PPR/Plugin/Search/Controller/Component/PrgComponent.php on line 359 and defined [*APP/Plugin/Search/Controller/Component/PrgComponent.php*, line *237*]
>
> *Warning* (2): array_merge(): Argument #2 is not an array [*APP/Plugin/Search/Controller/Component/PrgComponent.php*, line *383*]
>
> *Warning* (4096): Argument 1 passed to PrgComponent::exclude() must be of the type array, null given, called in /apps/site/200_PPR/Plugin/Search/Controller/Component/PrgComponent.php on line 384 and defined [*APP/Plugin/Search/Controller/Component/PrgComponent.php*, line *294*]
>
> *Warning* (2): Invalid argument supplied for foreach() [*APP/Plugin/Search/Controller/Component/PrgComponent.php*, line *296*]
>
>
> I need some help please.

Yup, I'm getting that too. Can you file a bug in github please.

Thanks

Adrenaline

unread,
Jul 7, 2014, 4:21:17 AM7/7/14
to cro...@googlegroups.com
I done it
Thanks for your answer

Adrenaline

unread,
Jul 30, 2014, 4:55:11 PM7/30/14
to cro...@googlegroups.com
Thank you Rachman.

I saw you solved this issue (in search element)
- echo $this->Form->create(null, array('admin' => false, 'plugin' => 'nodes', 'controller' => 'nodes', 'action' => 'search'));
+ echo $this->Form->create('Node', array('url' => array('admin' => false, 'plugin' => 'nodes', 'controller' => 'nodes', 'action' => 'search')));

I tried that and it worked. You saved me ;)
Reply all
Reply to author
Forward
0 new messages