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

Keule created an issue. See original summary.

mkalkbrenner’s picture

Assigned: Unassigned » mkalkbrenner

You're right, getOption isn't safe.

  • mkalkbrenner committed 3895239 on 8.x-3.x
    Issue #3053217 by Keule, mkalkbrenner: Solarium Query set rows
    
mkalkbrenner’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

netsliver’s picture

Hi,

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