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.
Date Popup Authored assumes there is a default value for the Authored On field. Based on this assumption, it proceeds to reformat it based on Date Popup's expected input.
However, when one first loads the node submission form, there is no default value. This results in a WSOD and the following error:
Fatal error: Call to a member function format() on a non-object in /path/to/drupal/sites/all/modules/date_popup_authored/date_popup_authored.module on line 120
Comments
Comment #1
Mark TrappA fix has been committed and will be part of the forthcoming 7.x-1.1-alpha2 release.
Comment #2
Mark TrappAn additional WSOD was found when saving a new node under certain conditions. A fix is forthcoming.
Comment #3
Mark TrappThis is actually fixed by the changes made in #970622: Saving a node with Date Popup Authored enabled will result in published time drift: the only time
$form_state['values']['date']
won't be aDateObject
object is when the format is incorrect, which it was.