Problem/Motivation

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\date_pager\Plugin\views\pager\DatePager->setCurrentPage() (Zeile 436 in /web/modules/contrib/date_pager/src/Plugin/views/pager/DatePager.php)

Steps to reproduce

Throws error if no date parameter is provided

CommentFileSizeAuthor
#16 3361504-16.patch789 bytessleitner
#15 3361504-15.patch815 bytessleitner

Issue fork date_pager-3361504

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sleitner created an issue. See original summary.

sleitner’s picture

Status: Needs work » Needs review
sleitner’s picture

Assigned: sleitner » Unassigned

sleitner’s picture

Sorry, the first merge request was for the 8.x branch, I did not pay attention on the branch. 2.0.x is not the default branch.

sleitner’s picture

StatusFileSize
new815 bytes

Same as the MR.

sleitner’s picture

StatusFileSize
new789 bytes

Patch against latest dev

sleitner’s picture

Patch against latest 2.x dev: #15

j_s’s picture

The patch in #15 fixes the error for me on 2.0.x-dev. Thanks!

sleitner’s picture

Version: 2.0.x-dev » 2.1.x-dev

  • sleitner committed 957cb5ef on 2.1.x
    Issue #3361504 by sleitner: Throws error if no date parameter is provided
sleitner’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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