Upgrade to new version of Date, and now have the following error now: previous date format is no longer valid, and node will not save.

Illegal string offset 'date' in /var/www/includes/form.inc on line 1351.

After changing date field widget from a text field to a select list, I am allowed to save node, but php errors still persist.

error php Illegal string offset 'second' in /var/www/includes/form.inc on line 1351.
error php Illegal string offset 'minute' in /var/www/includes/form.inc on line 1351.
error php Illegal string offset 'hour' in /var/www/includes/form.inc on line 1351.
error php Illegal string offset 'day' in /var/www/includes/form.inc on line 1351.
error php Illegal string offset 'month' in /var/www/includes/form.inc on line 1351.
error php Illegal string offset 'year' in /var/www/includes/form.inc on line 1351.

Using a 5.4.x version of php.

CommentFileSizeAuthor
#2 2231591-debug-output.txt14.19 KBdrzraf
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RytoEX’s picture

I might be interested in helping to patch this if this is still occurring. Though, from the error messages you listed, I can't tell if it's actually a problem with the Date module or if it was an issue in Drupal Core.

Is this still happening for anyone? Can anyone provide more information on this bug (Date module version, Drupal Core version, PHP version, steps to reproduce)?

drzraf’s picture

FileSize
14.19 KB

Attached is a debug output : the dump of each form element (whose #parents[0] == field_date)
In order: date_combo, field_date, day, month, year, minute, second
I guess the issue is related to the handling of granularity (year, month, day in my case)

The output is followed by the backtrace.
if($form['#parents'][0] == 'field_date') { var_dump($form,xdebug_get_function_stack()); };
in form.inc:954

DamienMcKenna’s picture

Status: Active » Closed (won't fix)

Unfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.