Hey Guys,

Some days ago, I updated Search API to latest version (7.x-1.9), But Search Api Views is not showing pager without any errors. I was trying to troubleshooting but not find a result until I replace Search API with old version 7.x-1.8

So I think this is a bugs on 7x-1.9 version, so please have a look on this and help it solved.

Regards,

John

Comments

drunken monkey’s picture

johntang’s picture

Sorry for re-open this issues, I have been updated to 7x.10, but my issues not resolve. I viewed complete list of changes for "Fixed missing pager on first page of search results" is fixed, but on my case it still not fixed.

The pager not showing up on all pages. I'm type ?page=0 or ?page=1, etc it's working.
Please have a look.

johntang’s picture

Version: 7.x-1.9 » 7.x-1.10
Status: Closed (duplicate) » Active
drunken monkey’s picture

Hm, OK. Did you clear the cache after updating, and maybe tried to re-save the view's settings?
Otherwise, please describe how to reproduce the bug, i.e., what steps you execute and what happens.

johntang’s picture

$view = new view();
$view->name = 'games_search_ajax';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'search_api_index_games';
$view->human_name = 'Games Search Ajax';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Casino Games';
$handler->display->display_options['use_ajax'] = TRUE;
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '60';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['pager']['options']['expose']['items_per_page_options'] = '5, 10, 20, 30, 40, 60';
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['style_options']['default_row_class'] = FALSE;
$handler->display->display_options['style_options']['row_class_special'] = FALSE;
$handler->display->display_options['style_options']['wrapper_class'] = 'games-list';
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
/* Header: Search Result */
$handler->display->display_options['header']['php']['id'] = 'php';
$handler->display->display_options['header']['php']['table'] = 'views';
$handler->display->display_options['header']['php']['field'] = 'php';
$handler->display->display_options['header']['php']['ui_name'] = 'Search Result';
$handler->display->display_options['header']['php']['empty'] = TRUE;
$handler->display->display_options['header']['php']['php_output'] = '<?php
$block =block_load(\'current_search\', \'game_search_details\');
$output = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block))));
print $output;
 ?>';
/* Footer: Global: PHP */
$handler->display->display_options['footer']['php']['id'] = 'php';
$handler->display->display_options['footer']['php']['table'] = 'views';
$handler->display->display_options['footer']['php']['field'] = 'php';
$handler->display->display_options['footer']['php']['php_output'] = '<div class="item-list">
	<ul class="pager">
		<li class="pager-item"><a title="Go to page 2" href="/games">1</a></li>
		<li class="pager-item"><a title="Go to page 2" href="/games?page=1">2</a></li>
		<li class="pager-item"><a title="Go to page 3" href="/games?page=2">3</a></li>
		<li class="pager-item"><a title="Go to page 4" href="/games?page=3">4</a></li>
		<li class="pager-item"><a title="Go to page 5" href="/games?page=4">5</a></li>
		<li class="pager-item"><a title="Go to page 6" href="/games?page=5">6</a></li>
		<li class="pager-item"><a title="Go to page 7" href="/games?page=6">7</a></li>
		<li class="pager-item"><a title="Go to page 8" href="/games?page=7">8</a></li>
		<li class="pager-item"><a title="Go to page 9" href="/games?page=8">9</a></li>
	</ul>
</div>';
/* Field: Indexed Content: Game screenshot */
$handler->display->display_options['fields']['field_game_screenshot']['id'] = 'field_game_screenshot';
$handler->display->display_options['fields']['field_game_screenshot']['table'] = 'search_api_index_games';
$handler->display->display_options['fields']['field_game_screenshot']['field'] = 'field_game_screenshot';
$handler->display->display_options['fields']['field_game_screenshot']['label'] = '';
$handler->display->display_options['fields']['field_game_screenshot']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_game_screenshot']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_game_screenshot']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_game_screenshot']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_game_screenshot']['settings'] = array(
  'image_style' => 'game_screenshot',
  'image_link' => 'content',
);
/* Field: Game Icon */
$handler->display->display_options['fields']['php_1']['id'] = 'php_1';
$handler->display->display_options['fields']['php_1']['table'] = 'views';
$handler->display->display_options['fields']['php_1']['field'] = 'php';
$handler->display->display_options['fields']['php_1']['ui_name'] = 'Game Icon';
$handler->display->display_options['fields']['php_1']['label'] = '';
$handler->display->display_options['fields']['php_1']['exclude'] = TRUE;
$handler->display->display_options['fields']['php_1']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['php_1']['use_php_setup'] = 0;
$handler->display->display_options['fields']['php_1']['php_output'] = '<div class="game-icon">
<?php 
$node = node_load($data->_entity_properties[\'entity object\']->nid);
$arr = $node->field_game_sub_category[\'und\'];
foreach ($arr as $key => $value) 
{
    if(preg_match(\'/popular/\', $value[\'value\']))
	{
		print \'<i title="Hot game" class="icon-fire-1 fg-color-orangeDark"></i>\';
	}
	else if (preg_match(\'/new/\', $value[\'value\']))
	{
		print \'<i title="New game" class="icon-star fg-color-redLight"></i>\';
	}
}

$jackpot = $node->field_game_jackpot[\'und\'][0][\'value\'];

if ($jackpot == 1)
{
	print \'<i title="Jackpot game" class="icon-jackpot fg-color-yellow"></i>\';
}

$category = $node->field_game_type[\'und\'][0][\'value\'];
$gamereel = $node->field_game_reels_slots[\'und\'][0][\'value\'];

if ($category == \'video-slots\')
{	
	if ($gamereel == 3)
	{
		print \'<i title="Slot Machine" class="icon-slots fg-color-orange"></i>\';
	}else
	{
		print \'<i title="Video Slots" class="icon-glyph-4 fg-color-teal"></i>\';
	}
	
}
else if ($category == \'video-poker\')
{
	print \'<i title="Poker game" class="icon-videopoker fg-color-red"></i>\';
}
else if ($category == \'baccarat\' OR $category == \'blackjack\' OR $category == \'roulette\')
{
	print \'<i title="Table game" class="icon-tablegame fg-color-greenLight"></i>\';
}

?>
</div>';
$handler->display->display_options['fields']['php_1']['use_php_click_sortable'] = '0';
$handler->display->display_options['fields']['php_1']['php_click_sortable'] = '';
/* Field: Wraper Logo &amp; Icon */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['ui_name'] = 'Wraper Logo & Icon';
$handler->display->display_options['fields']['nothing']['label'] = '';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<div class="game-logo">
[field_game_screenshot]
[php_1]
</div>';
$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
/* Field: Indexed Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'search_api_index_games';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['exclude'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['max_length'] = '20';
$handler->display->display_options['fields']['title']['alter']['trim'] = TRUE;
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['title']['link_to_entity'] = 0;
/* Field: Indexed Content: Title */
$handler->display->display_options['fields']['title_1']['id'] = 'title_1';
$handler->display->display_options['fields']['title_1']['table'] = 'search_api_index_games';
$handler->display->display_options['fields']['title_1']['field'] = 'title';
$handler->display->display_options['fields']['title_1']['label'] = '';
$handler->display->display_options['fields']['title_1']['exclude'] = TRUE;
$handler->display->display_options['fields']['title_1']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title_1']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['title_1']['link_to_entity'] = 0;
/* Field: Title */
$handler->display->display_options['fields']['nothing_1']['id'] = 'nothing_1';
$handler->display->display_options['fields']['nothing_1']['table'] = 'views';
$handler->display->display_options['fields']['nothing_1']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing_1']['ui_name'] = 'Title';
$handler->display->display_options['fields']['nothing_1']['label'] = '';
$handler->display->display_options['fields']['nothing_1']['alter']['text'] = '<div title="[title_1]" class="game_title">[title]</div>';
$handler->display->display_options['fields']['nothing_1']['element_label_colon'] = FALSE;
/* Field: Content: Edit link */
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
$handler->display->display_options['fields']['edit_node']['label'] = '';
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'gameajax');
$handler->display->display_options['metatags'] = array(
  'title' => array(
    'value' => '[current-page:title] | [site:name]',
  ),
  'description' => array(
    'value' => '',
  ),
  'keywords' => array(
    'value' => 'free casino game, free games, free slots game, free roulette game, free video slots, play for fun, free crap games, free game for play',
  ),
);
$handler->display->display_options['path'] = 'games';

My views is normal with other views, in order to show the result to the page /games. I have tried to clear cache, change Pager ID, check logs but its nothing.
On 7.x-1.8 version, it's working perfect when update to 7.x-1.9 and 7.x-10 pager not show.

I changed to pager setting to Infinite Scroll also, it still won't work. :(

drunken monkey’s picture

Please try to reproduce this without all your custom settings, from just a normal view using common node properties. I cannot import a view which contains your custom fields.
Especially, try whether it still fails if you remove all the PHP fields/areas. This might influence the pager's behavior. Also try to remove other handlers provided by other modules.

johntang’s picture

I think I determine the cause of Pager is not showing, when I create new views with name is "testing" and some fields, Pager working fine. But when add Global: PHP (PHP) field to FIELDS, Pager is not display. So I think it's caused from PHP field.

On my old views with a handler modules, when I remove Global: PHP field, its working too.

Please have a look, thanks

drunken monkey’s picture

If the PHP field is the cause, then please move this issue to the module providing that field.

drunken monkey’s picture

Also, #1634620-17: Flag module integration? mentions the same problem.

johntang’s picture

Yes, I do follow https://drupal.org/comment/8169759#comment-8169759, and now it working.

timkang’s picture

I also have a project using both Views PHP and Search API with this same issue, and I believe it's caused by SearchApiViewsQuery::$query::range() being called before SearchApiViewsQuery::$pager::pre_execute():

class SearchApiViewsQuery extends views_plugin_query {
  ..
  public function build(&$view) {
    ..
    // pager sets $this->limit and $this->offset (e.g. only get results 1-10 on the first page)
    $this->pager->query();
    ...
    // apply offset and limit to query
    $this->query->range($this->offset, $this->limit);
    ..
  }

  public function execute(&$view) {
    ...
    $this->pager->pre_execute($this->query); // pager modifies $this->limit and $this->offset (e.g. return all items)
    ...
    $results = $this->query->execute(); // query wasn't modified, (e.g. only returns items 1-10)

The default views query plugin (views_plugin_query_default) demonstrates the proper order:

...
$this->pager->pre_execute($query);

// Let the pager modify the query to add limits.
if (!empty($this->limit) || !empty($this->offset)) {
  ...
  $query->range($offset, $limit);
}

$result = $query->execute();
...

I've rolled a patch to move the call to $query::range() down into the execute() method.

How this relates to Views PHP and johntang's original issue
The Views PHP module has a pager plugin (views_php_plugin_pager) that doesn't paginate, but actually removes query limits and offsets (in views_php_plugin_pager::pre_execute()), so that it can perform custom PHP filtering over the full result set. It assumes whatever results are returned by the query to be full set (because it removed the offset and limits) and sets $total_items of the actual pager to the number of remaining results after filtering. When the query range is set too early, though, $total_items is at most equal to the number of results on single page, and the pager thinks there is only one page of results, thus no pager is shown.

It's a bit convoluted, so let me know if there's anything I can clarify or explain further.

timkang’s picture

StatusFileSize
new1.83 KB
timkang’s picture

Status: Active » Needs review
drunken monkey’s picture

Category: Bug report » Support request
Status: Needs review » Fixed

Good to hear.

johntang’s picture

Status: Fixed » Needs review

12: 2146435.patch queued for re-testing.

johntang’s picture

Awesome, #2146435.patch working perfect and I think its no related to PHP Views module.

drunken monkey’s picture

Title: Search API views pager is not showing up in 7x-1.9 » Fix Views paging with custom pager add-ons
Category: Support request » Bug report
Status: Needs review » Fixed

Ah, excellent, thanks for figuring that out and providing a patch! (And sorry I cross-posted on you!)
Good that at least some people understand Views … (Or dare to try and debug it.)
I've committed your patch now. Thanks a lot again!

Status: Fixed » Closed (fixed)

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

johntang’s picture

Hi again, I have been updated to last of Search API version, but the problem is meet again, no paging until I use the patch. I think this patch does not commit on the last version, please have a look.

gthing’s picture

Status: Closed (fixed) » Needs review

Re-opening to request a project commit.

drunken monkey’s picture

StatusFileSize
new2.5 KB

It was already committed. However, it seems #2204847-2: SearchApiViewsCache does not function correctly with pagination.. re-introduced the problem. I didn't think of that.

So, please see if the attached patch solves the problem for you again.

(Memo to self: Credit alanmackenzie for this patch.)

Status: Needs review » Needs work

The last submitted patch, 21: 2146435-21--custom_pager.patch, failed testing.

drunken monkey’s picture

Version: 7.x-1.10 » 7.x-1.x-dev
Status: Needs work » Needs review

Stupid "feature" …

drunken monkey’s picture

21: 2146435-21--custom_pager.patch queued for re-testing.

Colin @ PCMarket’s picture

This patch helped me restore pagination, please commit

elpino’s picture

Tested, this patch fixes the problem.

drunken monkey’s picture

Status: Needs review » Fixed

Good to hear. Committed.

Status: Fixed » Closed (fixed)

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

dariogcode’s picture

Status: Closed (fixed) » Active

Hi,

I'm using the latest version 1.13 and having same issue, no pager in search api views.

My views use better exposed filter as contrib modules there, but I think that dosn't matter, export view:


$view = new view();
$view->name = 'buscar_search_api';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'search_api_index_default_node_index';
$view->human_name = 'Buscar Search API';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['use_more_text'] = 'más';
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'better_exposed_filters';
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Filtrar';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Reiniciar';
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Ordenar';
$handler->display->display_options['exposed_form']['options']['bef'] = array(
  'general' => array(
    'allow_secondary' => 0,
    'secondary_label' => 'Opciones avanzadas',
  ),
  'sort' => array(
    'bef_format' => 'bef_links',
    'advanced' => array(
      'collapsible' => 0,
      'collapsible_label' => 'Sort options',
      'combine' => 1,
      'combine_rewrite' => 'Ordenar por más reciente Desc|Ordenar por más reciente
Ordenar por más reciente Asc|
Precio Asc|De baratos a caros
Precio Desc|De caros a baratos
Coche peritado Desc|Primero los coches peritados
Coche peritado Asc|',
      'reset' => 0,
      'reset_label' => '',
      'is_secondary' => 0,
    ),
  ),
  'field_marca' => array(
    'bef_format' => 'default',
    'more_options' => array(
      'bef_select_all_none' => FALSE,
      'bef_collapsible' => 0,
      'is_secondary' => 0,
      'any_label' => '',
      'bef_filter_description' => '',
      'tokens' => array(
        'available' => array(
          0 => 'global_types',
        ),
      ),
      'rewrite' => array(
        'filter_rewrite_values' => '',
      ),
    ),
  ),
  'field_modelo' => array(
    'bef_format' => 'default',
    'more_options' => array(
      'bef_select_all_none' => FALSE,
      'bef_collapsible' => 0,
      'is_secondary' => 0,
      'any_label' => '',
      'bef_filter_description' => '',
      'tokens' => array(
        'available' => array(
          0 => 'global_types',
        ),
      ),
      'rewrite' => array(
        'filter_rewrite_values' => '',
      ),
    ),
  ),
  'field_carroceria' => array(
    'bef_format' => 'default',
    'more_options' => array(
      'bef_select_all_none' => FALSE,
      'bef_collapsible' => 0,
      'is_secondary' => 0,
      'any_label' => '',
      'bef_filter_description' => '',
      'tokens' => array(
        'available' => array(
          0 => 'global_types',
        ),
      ),
      'rewrite' => array(
        'filter_rewrite_values' => '',
      ),
    ),
  ),
  'field_combustible' => array(
    'bef_format' => 'default',
    'more_options' => array(
      'bef_select_all_none' => FALSE,
      'bef_collapsible' => 0,
      'is_secondary' => 0,
      'any_label' => '',
      'bef_filter_description' => '',
      'tokens' => array(
        'available' => array(
          0 => 'global_types',
        ),
      ),
      'rewrite' => array(
        'filter_rewrite_values' => '',
      ),
    ),
  ),
);
$handler->display->display_options['exposed_form']['options']['input_required'] = 0;
$handler->display->display_options['exposed_form']['options']['text_input_required_format'] = 'filtered_html';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '9';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Elementos por página';
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Todos -';
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Desplazamiento';
$handler->display->display_options['pager']['options']['tags']['first'] = '« primera';
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ anterior';
$handler->display->display_options['pager']['options']['tags']['next'] = 'siguiente ›';
$handler->display->display_options['pager']['options']['tags']['last'] = 'última »';
$handler->display->display_options['style_plugin'] = 'views_bootstrap_grid_plugin_style';
$handler->display->display_options['style_options']['columns'] = '3';
$handler->display->display_options['row_plugin'] = 'fields';
/* Campo: Contenido: Rendered Nodo */
$handler->display->display_options['fields']['rendered_entity']['id'] = 'rendered_entity';
$handler->display->display_options['fields']['rendered_entity']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['rendered_entity']['field'] = 'rendered_entity';
$handler->display->display_options['fields']['rendered_entity']['label'] = '';
$handler->display->display_options['fields']['rendered_entity']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['rendered_entity']['link_to_entity'] = 0;
$handler->display->display_options['fields']['rendered_entity']['display'] = 'view';
$handler->display->display_options['fields']['rendered_entity']['view_mode'] = 'teaser';
$handler->display->display_options['fields']['rendered_entity']['bypass_access'] = 0;
/* Criterio de ordenación: Indexed Nodo: Fecha de creación */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'search_api_index_default_node_index';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['exposed'] = TRUE;
$handler->display->display_options['sorts']['created']['expose']['label'] = 'Ordenar por más reciente';
/* Criterio de ordenación: Indexed Nodo: Precio */
$handler->display->display_options['sorts']['field_precio']['id'] = 'field_precio';
$handler->display->display_options['sorts']['field_precio']['table'] = 'search_api_index_default_node_index';
$handler->display->display_options['sorts']['field_precio']['field'] = 'field_precio';
$handler->display->display_options['sorts']['field_precio']['exposed'] = TRUE;
$handler->display->display_options['sorts']['field_precio']['expose']['label'] = 'Precio';
/* Criterio de ordenación: Indexed Nodo: Coche peritado */
$handler->display->display_options['sorts']['field_peritado']['id'] = 'field_peritado';
$handler->display->display_options['sorts']['field_peritado']['table'] = 'search_api_index_default_node_index';
$handler->display->display_options['sorts']['field_peritado']['field'] = 'field_peritado';
$handler->display->display_options['sorts']['field_peritado']['exposed'] = TRUE;
$handler->display->display_options['sorts']['field_peritado']['expose']['label'] = 'Coche peritado';
/* Criterios de filtrado: Indexed Nodo: Marca */
$handler->display->display_options['filters']['field_marca']['id'] = 'field_marca';
$handler->display->display_options['filters']['field_marca']['table'] = 'search_api_index_default_node_index';
$handler->display->display_options['filters']['field_marca']['field'] = 'field_marca';
$handler->display->display_options['filters']['field_marca']['value'] = array();
$handler->display->display_options['filters']['field_marca']['group'] = 1;
$handler->display->display_options['filters']['field_marca']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_marca']['expose']['operator_id'] = 'field_marca_op';
$handler->display->display_options['filters']['field_marca']['expose']['label'] = 'Marca';
$handler->display->display_options['filters']['field_marca']['expose']['operator'] = 'field_marca_op';
$handler->display->display_options['filters']['field_marca']['expose']['identifier'] = 'field_marca';
$handler->display->display_options['filters']['field_marca']['expose']['remember_roles'] = array(
  2 => '2',
  1 => 0,
  3 => 0,
  4 => 0,
  5 => 0,
  6 => 0,
);
$handler->display->display_options['filters']['field_marca']['expose']['reduce'] = 0;
/* Criterios de filtrado: Indexed Nodo: Modelo */
$handler->display->display_options['filters']['field_modelo']['id'] = 'field_modelo';
$handler->display->display_options['filters']['field_modelo']['table'] = 'search_api_index_default_node_index';
$handler->display->display_options['filters']['field_modelo']['field'] = 'field_modelo';
$handler->display->display_options['filters']['field_modelo']['value'] = array();
$handler->display->display_options['filters']['field_modelo']['group'] = 1;
$handler->display->display_options['filters']['field_modelo']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_modelo']['expose']['operator_id'] = 'field_modelo_op';
$handler->display->display_options['filters']['field_modelo']['expose']['label'] = 'Modelo';
$handler->display->display_options['filters']['field_modelo']['expose']['operator'] = 'field_modelo_op';
$handler->display->display_options['filters']['field_modelo']['expose']['identifier'] = 'field_modelo';
$handler->display->display_options['filters']['field_modelo']['expose']['remember_roles'] = array(
  2 => '2',
  1 => 0,
  3 => 0,
  4 => 0,
  5 => 0,
  6 => 0,
);
$handler->display->display_options['filters']['field_modelo']['expose']['reduce'] = 0;
/* Criterios de filtrado: Indexed Nodo: Carrocería */
$handler->display->display_options['filters']['field_carroceria']['id'] = 'field_carroceria';
$handler->display->display_options['filters']['field_carroceria']['table'] = 'search_api_index_default_node_index';
$handler->display->display_options['filters']['field_carroceria']['field'] = 'field_carroceria';
$handler->display->display_options['filters']['field_carroceria']['value'] = array();
$handler->display->display_options['filters']['field_carroceria']['group'] = 1;
$handler->display->display_options['filters']['field_carroceria']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_carroceria']['expose']['operator_id'] = 'field_carroceria_op';
$handler->display->display_options['filters']['field_carroceria']['expose']['label'] = 'Carrocería';
$handler->display->display_options['filters']['field_carroceria']['expose']['operator'] = 'field_carroceria_op';
$handler->display->display_options['filters']['field_carroceria']['expose']['identifier'] = 'carroceria';
$handler->display->display_options['filters']['field_carroceria']['expose']['remember_roles'] = array(
  2 => '2',
  1 => 0,
  3 => 0,
  4 => 0,
  5 => 0,
  6 => 0,
);
$handler->display->display_options['filters']['field_carroceria']['expose']['reduce'] = 0;
/* Criterios de filtrado: Indexed Nodo: Combustible */
$handler->display->display_options['filters']['field_combustible']['id'] = 'field_combustible';
$handler->display->display_options['filters']['field_combustible']['table'] = 'search_api_index_default_node_index';
$handler->display->display_options['filters']['field_combustible']['field'] = 'field_combustible';
$handler->display->display_options['filters']['field_combustible']['value'] = array();
$handler->display->display_options['filters']['field_combustible']['group'] = 1;
$handler->display->display_options['filters']['field_combustible']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_combustible']['expose']['operator_id'] = 'field_combustible_op';
$handler->display->display_options['filters']['field_combustible']['expose']['label'] = 'Combustible';
$handler->display->display_options['filters']['field_combustible']['expose']['operator'] = 'field_combustible_op';
$handler->display->display_options['filters']['field_combustible']['expose']['identifier'] = 'field_combustible';
$handler->display->display_options['filters']['field_combustible']['expose']['remember_roles'] = array(
  2 => '2',
  1 => 0,
  3 => 0,
  4 => 0,
  5 => 0,
  6 => 0,
);
$handler->display->display_options['filters']['field_combustible']['expose']['reduce'] = 0;

/* Display: Resultado */
$handler = $view->new_display('panel_pane', 'Resultado', 'panel_pane_1');
$handler->display->display_options['exposed_block'] = TRUE;
$handler->display->display_options['allow']['use_pager'] = 0;
$handler->display->display_options['allow']['items_per_page'] = 0;
$handler->display->display_options['allow']['offset'] = 0;
$handler->display->display_options['allow']['link_to_view'] = 0;
$handler->display->display_options['allow']['more_link'] = 0;
$handler->display->display_options['allow']['path_override'] = 0;
$handler->display->display_options['allow']['title_override'] = 0;
$handler->display->display_options['allow']['exposed_form'] = 0;
$handler->display->display_options['allow']['fields_override'] = 0;
$handler->display->display_options['inherit_panels_path'] = '1';

/* Display: Ordenamiento */
$handler = $view->new_display('panel_pane', 'Ordenamiento', 'panel_pane_2');
$handler->display->display_options['defaults']['exposed_form'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'better_exposed_filters';
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Buscar';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Reiniciar';
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Ordenar por';
$handler->display->display_options['exposed_form']['options']['autosubmit'] = TRUE;
$handler->display->display_options['exposed_form']['options']['bef'] = array(
  'general' => array(
    'allow_secondary' => 0,
    'secondary_label' => 'Opciones avanzadas',
  ),
  'sort' => array(
    'bef_format' => 'bef_links',
    'advanced' => array(
      'collapsible' => 0,
      'collapsible_label' => 'Sort options',
      'combine' => 1,
      'combine_rewrite' => 'Ordenar por más reciente Desc|Ordenar por más reciente
Ordenar por más reciente Asc|
Precio Asc|De baratos a caros
Precio Desc|De caros a baratos
Coche peritado Desc|Primero los coches peritados
Coche peritado Asc|',
      'reset' => 0,
      'reset_label' => '',
      'is_secondary' => 0,
    ),
  ),
  'field_marca' => array(
    'bef_format' => 'bef_hidden',
    'more_options' => array(
      'bef_select_all_none' => FALSE,
      'bef_collapsible' => 0,
      'is_secondary' => 0,
      'any_label' => '',
      'bef_filter_description' => '',
      'tokens' => array(
        'available' => array(
          0 => 'global_types',
        ),
      ),
      'rewrite' => array(
        'filter_rewrite_values' => '',
      ),
    ),
  ),
  'field_modelo' => array(
    'bef_format' => 'bef_hidden',
    'more_options' => array(
      'bef_select_all_none' => FALSE,
      'bef_collapsible' => 0,
      'is_secondary' => 0,
      'any_label' => '',
      'bef_filter_description' => '',
      'tokens' => array(
        'available' => array(
          0 => 'global_types',
        ),
      ),
      'rewrite' => array(
        'filter_rewrite_values' => '',
      ),
    ),
  ),
  'field_carroceria' => array(
    'bef_format' => 'bef_hidden',
    'more_options' => array(
      'bef_select_all_none' => FALSE,
      'bef_collapsible' => 0,
      'is_secondary' => 0,
      'any_label' => '',
      'bef_filter_description' => '',
      'tokens' => array(
        'available' => array(
          0 => 'global_types',
        ),
      ),
      'rewrite' => array(
        'filter_rewrite_values' => '',
      ),
    ),
  ),
  'field_combustible' => array(
    'bef_format' => 'bef_hidden',
    'more_options' => array(
      'bef_select_all_none' => FALSE,
      'bef_collapsible' => 0,
      'is_secondary' => 0,
      'any_label' => '',
      'bef_filter_description' => '',
      'tokens' => array(
        'available' => array(
          0 => 'global_types',
        ),
      ),
      'rewrite' => array(
        'filter_rewrite_values' => '',
      ),
    ),
  ),
  'field_ciudad' => array(
    'bef_format' => 'bef_hidden',
    'more_options' => array(
      'bef_select_all_none' => FALSE,
      'bef_collapsible' => 0,
      'is_secondary' => 0,
      'any_label' => '',
      'bef_filter_description' => '',
      'tokens' => array(
        'available' => array(
          0 => 'global_types',
        ),
      ),
      'rewrite' => array(
        'filter_rewrite_values' => '',
      ),
    ),
  ),
);
$handler->display->display_options['exposed_form']['options']['input_required'] = 0;
$handler->display->display_options['exposed_form']['options']['text_input_required_format'] = 'filtered_html';
$handler->display->display_options['exposed_block'] = TRUE;
$handler->display->display_options['allow']['use_pager'] = 0;
$handler->display->display_options['allow']['items_per_page'] = 0;
$handler->display->display_options['allow']['offset'] = 0;
$handler->display->display_options['allow']['link_to_view'] = 0;
$handler->display->display_options['allow']['more_link'] = 0;
$handler->display->display_options['allow']['path_override'] = 'path_override';
$handler->display->display_options['allow']['title_override'] = 0;
$handler->display->display_options['allow']['exposed_form'] = 0;
$handler->display->display_options['allow']['fields_override'] = 0;
$handler->display->display_options['inherit_panels_path'] = '0';

/* Display: Facets block */
$handler = $view->new_display('search_api_views_facets_block', 'Facets block', 'search_api_views_facets_block_1');
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['facet_field'] = 'field_carroceria';

/* Display: Home Search */
$handler = $view->new_display('panel_pane', 'Home Search', 'panel_pane_3');
$handler->display->display_options['defaults']['exposed_form'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'input_required';
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Buscar';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Reiniciar';
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Ordenar por';
$handler->display->display_options['exposed_form']['options']['expose_sort_order'] = FALSE;
$handler->display->display_options['exposed_form']['options']['text_input_required_format'] = 'filtered_html';
$handler->display->display_options['defaults']['sorts'] = FALSE;
$handler->display->display_options['allow']['use_pager'] = 0;
$handler->display->display_options['allow']['items_per_page'] = 0;
$handler->display->display_options['allow']['offset'] = 0;
$handler->display->display_options['allow']['link_to_view'] = 0;
$handler->display->display_options['allow']['more_link'] = 0;
$handler->display->display_options['allow']['path_override'] = 'path_override';
$handler->display->display_options['allow']['title_override'] = 'title_override';
$handler->display->display_options['allow']['exposed_form'] = 0;
$handler->display->display_options['allow']['fields_override'] = 0;

/* Display: Página */
$handler = $view->new_display('page', 'Página', 'page_1');
$handler->display->display_options['path'] = 'buscar-test';
$translatables['buscar_search_api'] = array(
  t('Master'),
  t('más'),
  t('Filtrar'),
  t('Reiniciar'),
  t('Ordenar'),
  t('Asc'),
  t('Desc'),
  t('Select any filter and click on Apply to see results'),
  t('Elementos por página'),
  t('- Todos -'),
  t('Desplazamiento'),
  t('« primera'),
  t('‹ anterior'),
  t('siguiente ›'),
  t('última »'),
  t('Ordenar por más reciente'),
  t('Precio'),
  t('Coche peritado'),
  t('Marca'),
  t('Modelo'),
  t('Carrocería'),
  t('Combustible'),
  t('Resultado'),
  t('View panes'),
  t('Ordenamiento'),
  t('Buscar'),
  t('Ordenar por'),
  t('Facets block'),
  t('Home Search'),
  t('Página'),
);


drunken monkey’s picture

That's weird. Did it work with earlier versions? If yes, which?
Can you reproduce in a simpler scenario, without other contrib modules and preferably only fields from the standard installation? (Otherwise, I can't import.) Please also don't post the export directly in the comment, that's a pain to scroll through – use GitHub Gists or something similar, or attach it in a text file.

dariogcode’s picture

Thanks for answer and sorry about the big paste, I will use gists in the future.

I found the problem, it was caused by EVA module, when in the view I displayed a node with eva field (example: a teaser list), pager didn't work.

The issue is reported here: https://www.drupal.org/node/1926720

Thanks for your patience!

drunken monkey’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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