Getting this error when using the pager:

Fatal error: Cannot access protected property Drupal\views\Entity\View::$id in /modules/views_infinite_scroll/src/Plugin/views/pager/InfiniteScroll.php on line 129

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lukas von Blarer’s picture

Status: Active » Needs review
FileSize
2.3 KB

The attached patch fixes the issue for me.

r.aubin’s picture

This patch also fixes the following error. Almost created a new ticket with a patch, but noticed that the patch above already addresses it.

PHP Fatal error: Call to undefined function Drupal\views_infinite_scroll\Plugin\views\pager\format_plural() in /modules/contrib/views_infinite_scroll/src/Plugin/views/pager/InfiniteScroll.php on line 96

format_plural()

is replaced with

\Drupal::translation()->formatPlural()

You can read more about that change here: https://www.drupal.org/node/2173787

Lukas von Blarer’s picture

Oh, didn't mean to include that in the patch... Should I file a separate issue?

Lukas von Blarer’s picture

Lukas von Blarer’s picture

Sam152’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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