Was running into the issue below:
Notice: Undefined index: pager_offset in Drupal\ctools_views\Plugin\Display\Block->preBlockBuild() (line 334 of /var/www/www2.com/web/modules/contrib/ctools/modules/ctools_views/src/Plugin/Display/Block.php).
Steps to reproduce
1) Download and enable Ctools and Chaos Tools Views.
2) Create a view that shows Content of type article.
3) Check "Create a block".
4) Place the block created in content region using the block layout.
5) Go to the view settings, click on Allow settings and check "Pager offset".
6) Go to front page and it is possible to see the error.
After reviewing issue https://www.drupal.org/project/ctools/issues/2820783, realized the issue was similar but not exactly. So created the attached patch to resolve
Comments
Comment #2
rjdjohnston commentedComment #3
paulocsI had the same issue. Steps to reproduce:
1) Download and enable Ctools and Chaos Tools Views.
2) Create a view that shows Content of type article.
3) Check "Create a block".
4) Place the block created in content region using the block layout.
5) Go to the view settings, click on Allow settings and check "Pager offset".
6) Go to front page and it is possible to see the error.
I will attach a new patch because patch #1 is corrupted.
Cheers, Paulo.
Comment #4
paulocsPlease review it :)
Comment #5
paulocsComment #6
paulocsComment #7
paulocsComment #8
darrenwh commentedRTBC
Does this need tests?
Comment #9
joelpittet@darrenwh nope, I think this is pretty straight forward, I appreciate the steps in the RTBC. I've committed this to the dev branch