I installed Content Import 8.x-3.2, and then modified the sample file to go along with one of my content types, an image.

Here's an example of one that was uploaded manually: http://www-dev.arisia.org/node/401

Here's the file I tried to upload:
title,body,field_field_image,field_artist_site,field_image_caption,field_artist_tagline,field_image_type
TestArtistName,body,small_logo-backwards.png,www.google.com,caption,tagline.,art show catalog

I get a white screen with this error:
Fatal error: Call to undefined function Drupal\contentimport\Form\mime_content_type() in /home/hosting/public_html/www.arisia.org/modules/contentimport/src/Form/ContentImport.php on line 208

I think that's a big, but perhaps I'm just doing something wrong?

Comments

catya created an issue. See original summary.

aditya garg’s picture

When I use the Drupal 8.2.7 I get the same error
The website encountered an unexpected error. Please try again later.
Error: Call to undefined function Drupal\contentimport\Form\mime_content_type() in Drupal\contentimport\Form\ContentImport->createNode() (line 208 of modules\contentimport\src\Form\ContentImport.php).

but when I update the my Drupal 8.3.7 solve my problem. update your drupal 8 version.

catya’s picture

My drupal version is 8.3.7

dhayanandan_k’s picture

@catya I have updated the code. Please check again now.

dhayanandan_k’s picture

Version: 8.x-3.2 » 8.x-3.4
Status: Active » Needs review
catya’s picture

I did it by hand in the meanwhile, but if you'd like me to check the code on my dev site I can do that

nassiesse’s picture

Hi All,
I've got the same error of catya.

PHP Fatal error: Call to undefined function Drupal\contentimport\Form\mime_content_type() in /home/nassiess/public_html/cast/modules/contentimport/src/Form/ContentImport.php on line 197

My drupal version is 8.4.4 and Content Import 8.x-3.4.

Can you help me?

Thanks

tsaks’s picture

Hi-

I have the same error as well:

'The website encountered an unexpected error. Please try again later.'

PHP Error log: Call to undefined function Drupal\contentimport\Form\mime_content_type() in Drupal\contentimport\Form\ContentImport->createNode() (line 197 of.....

Drupal 8.4.0 and Content Import 8.x-3.4

Thanks.

dhayanandan_k’s picture

Fixed the mime function issue and it is available in dev version. Kindly check and let me know..

dhayanandan_k’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.