Getting an error when saving Date content type created with newest dev version of Date API. Used the wizard to create the content type. Don't think it matters for this problem, but I have the latest dev versions of ctools, views, calendar.

Notice: Uninitialized string offset: 15 in date_format_date() (line 1252 of /home/content/87/7715687/html/sites/all/modules/date/date_api/date_api.module).
Notice: Uninitialized string offset: 5 in date_format_date() (line 1252 of /home/content/87/7715687/html/sites/all/modules/date/date_api/date_api.module).
Notice: Uninitialized string offset: 15 in date_format_date() (line 1252 of /home/content/87/7715687/html/sites/all/modules/date/date_api/date_api.module).
Notice: Uninitialized string offset: 5 in date_format_date() (line 1252 of /home/content/87/7715687/html/sites/all/modules/date/date_api/date_api.module).

Comments

mcncyo’s picture

I am also getting this same issue

this message is displayed on the dministration » Structure » Views

Notice: Uninitialized string offset: 0 in date_views_filter_handler_simple->admin_summary() (line 378 of ~/sites/all/modules/date/date_views/includes/date_views_filter_handler_simple.inc).

It seems to only show there on pages that I use the date field.

I am using 7.x-2.0-alpha3

paulgemini’s picture

I'm using the latest dev of Dates and Views. Still getting this error.

j0rd’s picture

Have this error when using Date & Date views integration. Current -dev version as of today. All my related modules are up to date as well.

Notice: Uninitialized string offset: 0 in date_views_filter_handler_simple->admin_summary() (line 387 of /home/www/powerengineercentral.ca/htdocs/sites/all/modules/contrib/date/date_views/includes/date_views_filter_handler_simple.inc).

I'm trying to add a date "less than now" filter.

j0rd’s picture

Seems to have disapeered.

Here was the issue.

I added my date field to a view (is empty() NULL) before adding Date views integration.

I then added views integration when I needed to change another view to "Less than now".

I was then getting this error.

I went back and re-saved my "is empty() NULL" condition and the error seems to have gone away. I'll let you know if it comes back.

I would recommend all those getting this error to re-save any fields they are using with date in views.

paulgemini’s picture

I think that may very well be the problem. Resaving (or even recreating) views originally created with a 2 month old version of date (or location, for that matter) is a good policy at this point.

paulgemini’s picture

Status: Active » Closed (fixed)

I'm not getting this error anymore so I'm going to close this.