• Resolved buerklin

    (@buerklin)


    Even if I import the sample-csv-file it doesn’t work. Seems that “excerpt” field generates a failure.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same problem. I can no longer import the csv file. Like the original poster, I tried to import the sample csv file, but it gives me the same error. Step 1 works and I can import the file. The events are recognized and display on the preview page. Then I press the “Import” button and I get an error that says “Event from CSV-line : Saving of event failed!” That same error is reported for every single event to be imported. I tried deleting old events (I had 240 events), but still get the same error.

    I was looking at the code in admin_import.php and found 2 lines that use the deprecated function “create_function” … these are:
    From private function prepare_event:
    array_walk($event, create_function(‘&$v’, ‘$v = is_array($v) ? array_map(“trim”, $v) : trim($v);’));
    and
    From private function show_import_review:
    $import_data = array_filter($import_data, create_function(‘$v’, ‘return !is_wp_error($v)’));

    Maybe these are the cause of the error since my PHP is now 7.3 and the create_function is no longer working … I’ll try to figure out code to make it work … but perhaps someone smarter than me can do it?

    Thread Starter buerklin

    (@buerklin)

    @nteuscher good hint! I changed from PHP 7.2 to 7.4. Maybe this is the root cause. Hope the topic can be fixed soon.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘import of csv-file does not work’ is closed to new replies.