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.
I am receiving the following errors on nodes where I have included a Viewfield (Views Reference). The views I am referencing do not include any date fields. The views work fine otherwise. It is just when these views are pulled into a node as a views reference that I receive these errors consistently.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
* warning: date_format() expects parameter 1 to be DateTime, null given in /usr/local/apache2/htdocs/drupal/modules/date/date_api.module on line 501.
I am using Drupal 5.5 with PostgreSQL.
Comments
Comment #1
sonicthoughts CreditAttribution: sonicthoughts commentedme too using 5.6 and mysql.
Comment #2
KarenS CreditAttribution: KarenS commentedI can't replicate this with the latest code, but adding the patch in http://drupal.org/node/232366 would ensure there's no way to get that message, so I'm adding that in.
Comment #3
WISEOZ CreditAttribution: WISEOZ commentedThat worked! Good enough for me! Thanks!
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
sonicthoughts CreditAttribution: sonicthoughts commentedI have the same issue - will try the patch.
Comment #6
KarenS CreditAttribution: KarenS commented@sonicthoughts, there is no patch to try, that patch got committed. I'm committing a number of other small fixes today that could impact this. If you still get this message after updating to the latest code with today's changes, open a new issue with details about exactly where and how you got this message.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.