Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
Framework
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
10 May 2011 at 06:48 UTC
Updated:
8 Sep 2017 at 10:12 UTC
Hi, I recently moved to PHP 5.3.6 and Search API is giving me Strict warnings. Such as:
Strict warning: Only variables should be passed by reference in theme_search_api_page_results()
In search_api_page.pages.inc, change:
$output .= render(entity_view($index->entity_type, $entities, $variables['view_mode']));
To:
$render = entity_view($index->entity_type, $entities, $variables['view_mode']);
$output .= render($render);
Not sure if this is the correct approach to solve.
Comments
Comment #1
drunken monkeyAh, you're right.
Committed your fix, thanks for spotting this!