Problem/Motivation

Notice: Trying to access array offset on value of type null in flexible_views_preprocess_pager() (line 98 of modules/contrib/flexible_views/flexible_views.module).

Steps to reproduce

Access "admin/content" page

Proposed resolution

See the attached patch.

Remaining tasks

Need a patch review.

User interface changes

No changes

API changes

No changes

Data model changes

No changes

CommentFileSizeAuthor
flexible_views-pager_notice.patch431 bytesandrei.vesterli

Comments

andrei.vesterli created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, flexible_views-pager_notice.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

daveiano’s picture

Thanks for the patch! I will have a look into this as soon as I have fixed the tests for D9.

  • daveiano committed a1c7b2a on 2.x
    Issue #3246138 by andrei.vesterli: Notice: Trying to access array offset...
daveiano’s picture

Version: 2.0.1 » 2.x-dev
Status: Needs work » Fixed

Had a look into this and also fixed some other problems with pagers in D9 and also added tests.

The Notice you described shouldn't be a problem anymore.

Status: Fixed » Closed (fixed)

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

andrei.vesterli’s picture

Hello @daveiano

Good job! Glad to help