The error occurs in beta3 and the current dev.

It appears that $this->view->query->pager is empty, which is causing the error.

Here is a snippet of a var_dump of $this->view->query

..
["get_count_optimized"]=>
NULL
["pager"] => NULL
["view"] => NULL
["display"] =>NULL
..

Here is the stacktrace of the error:
PHP Fatal error: Call to a member function has_more_records() on a non-object in /workspace/drupal7-sites/all/modules/views/plugins/views_plugin_display.inc on line 2187, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP Stack trace:, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 1. {main}() /workspace/drupal-7.0/index.php:0, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 2. menu_execute_active_handler() /workspace/drupal-7.0/index.php:22, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 3. drupal_deliver_page() /workspace/drupal-7.0/includes/menu.inc:516, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 4. drupal_deliver_html_page() /workspace/drupal-7.0/includes/common.inc:2431, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 5. drupal_render_page() /workspace/drupal-7.0/includes/common.inc:2536, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 6. block_page_build() /workspace/drupal-7.0/includes/common.inc:5480, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 7. block_get_blocks_by_region() /workspace/drupal-7.0/modules/block/block.module:269, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 8. block_list() /workspace/drupal-7.0/modules/block/block.module:316, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 9. _block_render_blocks() /workspace/drupal-7.0/modules/block/block.module:658, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 10. module_invoke() /workspace/drupal-7.0/modules/block/block.module:828, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 11. call_user_func_array() /workspace/drupal-7.0/includes/module.inc:793, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 12. views_block_view() /workspace/drupal-7.0/includes/module.inc:0, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 13. view->execute_display() /workspace/drupal7-sites/all/modules/views/views.module:573, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 14. views_plugin_display_block->execute() /workspace/drupal7-sites/all/modules/views/includes/view.inc:936, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 15. view->render() /workspace/drupal7-sites/all/modules/views/plugins/views_plugin_display_block.inc:48, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 16. views_plugin_display->render() /workspace/drupal7-sites/all/modules/views/includes/view.inc:873, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 17. theme() /workspace/drupal7-sites/all/modules/views/plugins/views_plugin_display.inc:2242, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 18. template_preprocess_views_view() /workspace/drupal-7.0/includes/theme.inc:845, referer: http://example.com/admin/structure/block/manage/views/news-block/configure
PHP 19. views_plugin_display->render_more_link() /workspace/drupal7-sites/all/modules/views/theme/theme.inc:73, referer: http://example.com/admin/structure/block/manage/views/news-block/configure

CommentFileSizeAuthor
#2 news.views-exp.txt5.96 KBandrewsuth
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Can you please export a view, too? This would help to fix the issue.

Additional it might be good to use the latest dev.

andrewsuth’s picture

FileSize
5.96 KB

I also tried with the current dev (1st of April) and the issue still remains.

See View export attached.

3rdLOF’s picture

subs

merlinofchaos’s picture

Status: Active » Fixed

Committed a fix to both 6.x and 7.x

merlinofchaos’s picture

Thanks for the view, btw. For those interested, this is caused because the argument causes the view not to actually execute, but it still has to render and when attempting to render the more link, it tries to ask a pager that never executed if there are more records.

Adding a test to see if the pager exists fixes it; if a pager does not exist at that point, there are obviously not more records.

vishalkhialani’s picture

Hi Guys,
my full site has got affected due to this. What I mean to ask is what needs to be done now ?

I was working with arguments when this happened.

Any advice will be much appreciated.

Cheers,
Vishal

dawehner’s picture

Redownload the latest div.

vishalkhialani’s picture

ohh :) thanks

andrewsuth’s picture

Thanks merlin and dereine!

Status: Fixed » Closed (fixed)

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