Hi have views setup w/ multiple displays. I am using QuickTabs to display those views/displays. Upon setting up this module, I get this error in the views UI:

Notice: Undefined property: views_plugin_display_default::$default_display in views_plugin_pager_infinite_scroll->render() (line 23 of /home/mysite/public_html/sites/all/modules/views_infinite_scroll/views_plugin_pager_infinite_scroll.inc).
Notice: Trying to get property of non-object in views_plugin_pager_infinite_scroll->render() (line 23 of /home/mysite/public_html/sites/all/modules/views_infinite_scroll/views_plugin_pager_infinite_scroll.inc).

Is this because I have multiple displays using the same module? I don't believe it's an issue with QuickTabs as it shows up in the Views UI right when I choose the Infinite Scroller option and save the view. Yes, Ajax is adjusted as suggested. Any thoughts?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sw3b’s picture

I have the same thing and the only i'm using is panel to customize the output of the nodes.

montchr’s picture

I'm having this same problem (with QuickTabs).

aotu’s picture

Also having this issue. Occurs immediately after activating Views Infinite Scroll.
Ajax is disabled as recommended.
Pretty much a clean install.

Notice: Undefined property: views_plugin_display_default::$default_display in views_plugin_pager_infinite_scroll->render() (line 23 of /home/content/v/i/s/tetrodomains/html/testing/sites/all/modules/views_infinite_scroll/views_plugin_pager_infinite_scroll.inc).
Notice: Trying to get property of non-object in views_plugin_pager_infinite_scroll->render() (line 23 of /home/content/v/i/s/tetrodomains/html/testing/sites/all/modules/views_infinite_scroll/views_plugin_pager_infinite_scroll.inc).

BenK’s picture

Yes, I'm also experiencing this error.

mandaved’s picture

I too am experiencing this error.

I managed to get the scrolling feature working by placing 'jquery.autopager-1.0.0.js' in 'sites/all/libraries/autopager/' but the errors remain at the top of the page.

Any ideas on how I can remove them?

mandaved’s picture

Anyone???

Anonymous’s picture

Same here. However, the scrolling works as expected.

klokie’s picture

Same here - even though the scrolling function appears to work fine, I get lots of

Notice: Undefined property: views_plugin_display_default::$default_display in views_plugin_pager_infinite_scroll->render() (line 23 of sites/all/modules/views_infinite_scroll/views_plugin_pager_infinite_scroll.inc).

... followed by ...

Notice: Trying to get property of non-object in views_plugin_pager_infinite_scroll->render() (line 23 of sites/all/modules/views_infinite_scroll/views_plugin_pager_infinite_scroll.inc).

in the recent log messages.

That variable $style_plugin defined on line 23 isn't used after that, so I've just commented out the line.

ramlev’s picture

Heres the patch which fixes the problem. The line is removed as told in #8

Remon’s picture

Status: Active » Fixed

Thanks @klokie for figuring this out! really appreciated.

Status: Fixed » Closed (fixed)

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