I'm trying to import content from a csv - everything is fine until step 7 where PHP throws an error:

[24-Mar-2009 16:34:58] PHP Fatal error:  Cannot unset string offsets in /hsphere/local/home/culturalprecinct/culturalprecinct.co.nz/sites/all/modules/date/date_repeat/date_repeat_form.inc on line 212

I am using 6.x-1.0-rc4, but I grabbed date.inc from cvs and put it in supported.
Any ideas on what is wrong?

Comments

snorkers’s picture

I'm getting this PHP fatal error too:

Cannot unset string offsets in /sites/all/modules/date/date_repeat/date_repeat_form.inc on line 212

I'm currently running the latest DEV version of Date (and DEV version of Node import) and am not importing any date values from the import process... although the content type I'm importing too has repeat date options in the start/end date. I'll have a play with temporarily disabling date repeats in my content type and see if that allows me to run the import

bstankie’s picture

I'm also getting the same error when attempting to import an event.

Using:
Date: 6.x-2.x-dev
Node Import: 6.x-1.x-dev
Calendar: 6.x-2.x-dev

Any help and/or guidance would be great!

Thanks.

pengcognito’s picture

I'm getting the same thing, but with
image/contrib/image_attach/image_attach.module on line 343

My content type had imagefields but I got rid of them. They were optional fields and I wasn't using them in the set of data I'm importing.

lejon’s picture

Have the same problem. Did the same as pengcognito and also now seems to work.

NGTLD’s picture

I had to disable the image attach to get my import to work. This has been a problem for awhile and really needs to be fixed. It sucks that the moderator never replies to these threads.

tripper54’s picture

HI there,

I'm also getting a fatal error:

Cannot unset string offsets in /sites/all/modules/date/date_repeat/date_repeat_form.inc on line 212

Trying to import a _huge_ list of dates into a calendar. I'll cry if I have to manually type them in - there are thousands of them!

geerlingguy’s picture

Please see #374346: Can't import date values into Date module fields for possible solutions... especially comment #133.