Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Search results page Publisher PHP errors

Status Resolved
Add-on / Version Publisher Lite 1.6.9
Severity
EE Version 2.10.1

Rob Allen

Dec 17, 2015

Description: Using native simple search the results page throws up some errors, search results are all fine:

A PHP Error was encountered
Severity: Warning
Message: array_keys() expects parameter 1 to be array, boolean given
Filename: publisher/ext.publisher.php
Line Number: 645

A PHP Error was encountered
Severity: Warning
Message: array_intersect(): Argument #2 is not an array
Filename: publisher/ext.publisher.php
Line Number: 645

A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/greenwi2/public_html/system/codeigniter/system/core/Exceptions.php:170)
Filename: core/Common.php
Line Number: 475

Detailed steps to reproduce the issue:
1. Use simple search and template for results
2. Use the search
3. See errors

#1

BoldMinded (Brian)

Can you change lines 644-645 of that file to this and see if it fixes the issue?

$tagParams = empty(ee()->TMPL->tagparams) ? array() : ee()->TMPL->tagparams;
        $filterParams = array('limit', 'offset', 'publisher_lang_id', 'publisher_status', 'publisher_diff_status', 'publisher_diff_lang_id');
        $hasFilterParams = count(array_intersect($filterParams, array_keys($tagParams))) > 0 ? true : false;

Login to reply