Problem/Motivation
I am trying to use the submission importer and in my live environment (on Pantheon), I am getting thousands of looping errors:
Warning: fgets() expects parameter 1 to be resource, bool given in Drupal\webform_submission_export_import\WebformSubmissionExportImportImporter->getTotal() (line 1003 of /code/modules/contrib/webform/modules/webform_submission_export_import/src/WebformSubmissionExportImportImporter.php)
Warning: feof() expects parameter 1 to be resource, bool given in Drupal\webform_submission_export_import\WebformSubmissionExportImportImporter->getTotal() (line 1002 of /code/modules/contrib/webform/modules/webform_submission_export_import/src/WebformSubmissionExportImportImporter.php)
I don't get these errors in local with live DB, or even in a multidev instance with live DB.
I also did a simplytest.me and was successful there.
Everything is pointing to a specific environment issue with my live environment, but is there anything that stands out to you about these two errors? I thought I saw an issue from a while back that one of these came up as a fatal error.
Steps to reproduce
I've attached the config file for a form and an import file. I don't think you'll be able to reproduce, but will you give it a try?
Comments
Comment #2
jrockowitz commentedMy guess is Pantheon's server is losing track of the uploaded CVS file which is stored in a temp directory.
I know this is a guess but you should check out https://pantheon.io/docs/tmp#d8workaround
This is definitely an issue that Pantheon's support team should be able to help you with.
Comment #3
jrockowitz commentedComment #4
z.stolar commentedFWIW I'm getting the same error(s) on my local lando.
My steps to reproduce:
drush wfx formiddrush wfi formid exported-file-pathI was however able to import the submissions using the
--skip_validationflag