I have found out that whenever a view is set to have a full or mini pager with a setting of 0 Items per page (no limit) then undefined index notices appear on omega.theme.inc that have to do with lines 214, 222, 251 for the mini pager and lines 39, 62 for the full pager. Actually the mini pager displays this error on line 214 whatever the items per page setting.
For a full pager setting the view to display all items or a very big number is a solution but for a mini pager at least line 214 of omega.theme.incneeds to be ammended so as not to be found undefined.
Notice: Trying to access array offset on value of type null in omega_pager() (line 39 of /home/kwbirds/public_html/sites/all/themes/omega/omega/includes/omega.theme.inc).
Notice: Trying to access array offset on value of type null in omega_pager() (line 62 of /home/kwbirds/public_html/sites/all/themes/omega/omega/includes/omega.theme.inc).
Notice: Undefined index: quantity in omega_views_mini_pager() (line 214 of /home/kwbirds/public_html/sites/all/themes/omega/omega/includes/omega.theme.inc).
Notice: Trying to access array offset on value of type null in omega_views_mini_pager() (line 222 of /home/kwbirds/public_html/sites/all/themes/omega/omega/includes/omega.theme.inc).
Notice: Trying to access array offset on value of type null in omega_views_mini_pager() (line 251 of /home/kwbirds/public_html/sites/all/themes/omega/omega/includes/omega.theme.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | interdiff-3166808-2-4.txt | 728 bytes | fenstrat |
| #4 | 3166808-4.patch | 2.13 KB | fenstrat |
Comments
Comment #2
arx-e commentedI made this patch against the latest dev (2 lines in the mini pager section have already been removed by a previous patch as they were not used) and it works for me both with min and full pagers in PHP 7.4.
Comment #3
johnpitcairn commentedPatch applies with composer against latest dev for me, appears to fix the problem. Let's call it RTBC.
Comment #4
fenstratThis LGTM.
Attached adds one more case where I was seeing
Trying to access array offset on value of type null in omega_pager(). Leaving as RTBC.