Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#4 | fatal_error_cannot-2486541-4.patch | 806 bytes | Lukas von Blarer |
Comments
Comment #1
Lukas von BlarerThe attached patch fixes the issue for me.
Comment #2
r.aubin CreditAttribution: r.aubin at Oomph, Inc. commentedThis 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
Comment #3
Lukas von BlarerOh, didn't mean to include that in the patch... Should I file a separate issue?
Comment #4
Lukas von BlarerI created a separate issue: #2502487: Fatal error: Call to undefined function Drupal\views_infinite_scroll\Plugin\views\pager\format_plural()
Attaching the updated patch.
Comment #5
Lukas von BlarerComment #6
Sam152 CreditAttribution: Sam152 commented