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

sonicthoughts’s picture

me too using 5.6 and mysql.

KarenS’s picture

Status: Active » Fixed

I 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.

WISEOZ’s picture

That worked! Good enough for me! Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

sonicthoughts’s picture

Status: Closed (fixed) » Needs review

I have the same issue - will try the patch.

KarenS’s picture

Status: Needs review » Fixed

@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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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