- Issue created by @kmonty
We have a fairly complex node entity that we are trying to export. However, our configuration, which has a lot of entity references to taxonomies etc, was generating PHP warnings which made it impossible to export the CSV in Firefox.
We would see a significant number of Warning: Undefined array key "langcode" in modules/contrib/content_export_csv/src/ContentExport.php on line 269
warnings, eventually resulting in:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/web/modules/contrib/content_export_csv/src/ContentExport.php:269) in /var/www/html/web/modules/contrib/content_export_csv/src/Form/ContentExportForm.php on line 183
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/web/modules/contrib/content_export_csv/src/ContentExport.php:269) in /var/www/html/web/modules/contrib/content_export_csv/src/Form/ContentExportForm.php on line 184
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/web/modules/contrib/content_export_csv/src/ContentExport.php:269) in /var/www/html/web/modules/contrib/content_export_csv/src/Form/ContentExportForm.php on line 185
I believe we IDed a small conditional logic issue that resolves the issue for us.
Active
4.0
Code