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?

CommentFileSizeAuthor
webform_import_config_and_sample.zip4.26 KBerindarri

Comments

erindarri created an issue. See original summary.

jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)

My 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.

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
z.stolar’s picture

FWIW I'm getting the same error(s) on my local lando.
My steps to reproduce:

  • I run drush wfx formid
  • I delete all my submissions
  • I run drush wfi formid exported-file-path

I was however able to import the submissions using the --skip_validation flag