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
Comment #2
aditya garg commentedWhen 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.
Comment #3
catya commentedMy drupal version is 8.3.7
Comment #4
dhayanandan_k commented@catya I have updated the code. Please check again now.
Comment #5
dhayanandan_k commentedComment #6
catya commentedI 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
Comment #7
nassiesse commentedHi 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
Comment #8
tsaks commentedHi-
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.
Comment #9
dhayanandan_k commentedFixed the mime function issue and it is available in dev version. Kindly check and let me know..
Comment #10
dhayanandan_k commented