Closed (fixed)
Project:
Search API Solr
Version:
8.x-3.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 May 2019 at 17:08 UTC
Updated:
18 Jun 2019 at 14:53 UTC
Jump to comment: Most recent
After update to 8.x-3.0-beta3, I got these error message:
TypeError: Argument 1 passed to Solarium\QueryType\Select\Query\Query::setRows() must be of the type integer, null given, called in drupal\web\modules\contrib\search_api_solr\src\Plugin\search_api\backend\SearchApiSolrBackend.php on line 1247 in Solarium\QueryType\Select\Query\Query->setRows()
The code line is:
$solarium_query->setRows($query->getOption('limit', 10));
At my case $query->getOption('limit', 10) can be null. So there has to be a check if the limit is null.
Comments
Comment #2
mkalkbrennerYou're right, getOption isn't safe.
Comment #4
mkalkbrennerComment #6
netsliverHi,
How not to have a limit for a map view?
My map show 10 markers in version 8.3 instead of all in version 8.2.
Regards