atal error: Call to undefined function date_iso2array() in /DRUPAL_HOME/modules/node_import/supported/cck/content.inc on line 103

I'm having some trouble with the node import module - I have the dates module installed, but I keep getting this error when I'm trying to import node content from a csv - regardless of whether or not I am using a date field in my importing.

Can anyone help?

Thanks!

Imran

Comments

todddevice’s picture

Same here.

The issue seems to rest in line 95 of content.inc:

include_once(drupal_get_path('module', 'date') .'/date.inc');

In the current 5.x version of the date module, date.inc no longer exists. Date functions are now split into a set of *.inc files.

jesss’s picture

Subscribing

jesss’s picture

Title: atal error: Call to undefined function date_iso2array() » Fatal error: Call to undefined function date_iso2array()
criznach’s picture

Try this...

Remove your date fields.
Uninstall the 2.x date modules.
Install the 1.8 date module.
Add your date fields back with the same settings.
Run your import.
Upgrade to date 2.x if you wish. I haven't gone this far yet, but I was able to import using Date version 1.8.

deadrich’s picture

Subscribing

svelasco’s picture

Hi. I have a problem with Node import and Date 5.x-2.0-rc:


    * warning: include_once(modules/date/date/date_timezones.inc) [function.include-once]: failed to open stream: No such file or directory in /var/www/cfcf/modules/node_import/supported/event.inc on line 8.
    * warning: include_once() [function.include]: Failed opening 'modules/date/date/date_timezones.inc' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/cfcf/modules/node_import/supported/event.inc on line 8.

johnalbin’s picture

Status: Active » Closed (duplicate)
m4manas’s picture

I have run into the similar problem when i applied date 2.x now when i reverted back to 1.8x the imports have started.
I am able to import all fields but the date value.
I have tried all date formats including the iso yyyy-mm-dd

Any help

m4manas’s picture

+
I am using the javascript popup calender. When i convert to text field with strtotime it works any help

johnalbin’s picture

@maanas: See the issue I mentioned in #7. Add your comments over there; this is a closed, duplicate issue.