Problem/Motivation
Deprecated function: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in views_rss_core_preprocess_views_view_rss()
In views_rss_core_preprocess_views_view_rss() is defaulted to NULL, but this will get run through strtotime() on the first passthrough, to which passing NULL is deprecated.
So if that variable is NULL we can just go ahead and set $this_pub_date I think.
Steps to reproduce
Go to a feed on PHP8.1
Proposed resolution
Add a sanity check.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3266892-2.patch | 714 bytes | lendude |
Comments
Comment #2
lendudeThis works for me locally
Comment #3
anneke_vde commentedSounds good to set the max_pub_date if the var is NULL, I have no deprecation notices anymore.
Comment #4
damienmckennaComment #5
damienmckennaRan into this in the automated tests.
Comment #7
damienmckennaCommitted. Thank you.