- First commit to issue fork.
- Open on Drupal.org βCore: 7.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Not currently mergeable. - @nishant2312 opened merge request.
Hi,
When exporting certain webforms we're receiving the following fatal error during the batch process:
Recoverable fatal error: Object of class stdClass could not be converted to string in webform_exporter_excel_xlsx->add_row() (line 27 of /vagrant/docroot/sites/all/modules/webform/includes/exporters/webform_exporter_excel_xlsx.inc).
Upon further review this is caused by:
$value = preg_replace('/[^\x{0009}\x{000a}\x{000d}\x{0020}-\x{D7FF}\x{E000}-\x{FFFD}]+/u', '', $value);
As there are some "values" that are arrays and objects. Notably the foreach loop kept failing when the current value is the node object of the node related to the webform.
Are node objects normally passed in the $data array? Or is this something we're not doing correctly?
Needs work
4.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.