Closed (fixed)
Project:
Complete Webform Exporter
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Apr 2025 at 23:27 UTC
Updated:
8 May 2025 at 09:54 UTC
Jump to comment: Most recent
Hi all,
I've this error when i export submission with checkbox:
TypeError: Cannot access offset of type string on string in Drupal\complete_webform_exporter\Plugin\Action\WebformSubmissionsExporterAction->executeMultiple() (line 213 of /modules/contrib/complete_webform_exporter/src/Plugin/Action/WebformSubmissionsExporterAction.php).
At the moment I solve commenting out:
if (in_array($element['#type'], ['radios', 'select'])) {
$options = $element['#options'];
//=> $value = !empty($value) ? $options[$value] : $value;
}
Drupal 10.4.5
PHP 8.3.19
Thanks!
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
abhishek_gupta1 commented@antonio.bertolini, I have fixed the issue and created MR. please review it once
Comment #6
gueguerreiroSame fix needs to be applied for CompleteWebFormExporterController, for when we are exporting single submissions. Updated the MR.
Comment #7
antonio.bertolini commentedHi all,
Works for me, thanks!!
Antonio
Comment #8
vishal.kadamComment #10
vishal.kadam