Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It complains about the second arg to format date... see attached patch which checks if the node has a date field before even trying to load data from it...
You could probably drop the top half of that function and just have the foreach(content_field() as $field) since it looks like this... see example second patch attached that should perform a better job at the gig, but I dont' have time to test it currenlty.
Comment | File | Size | Author |
---|---|---|---|
date.pathauto_wtf.patch | 1.76 KB | dopry | |
date.pathauto.patch | 967 bytes | dopry | |
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedI'm going to go with the first patch since I can't see how the second one would work and you didn't test it. Thanks!
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.