Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created a rest export type view and select the csv format.
When the view has some results then it is working fine but when the view return no results then I get the following error.
Fatal error: Invalid placeholder (!message) in string: %type: !message in %function (line %line of %file). in /[path to drupal]/core/lib/Drupal/Component/Render/FormattableMarkup.php on line 242
Array
(
[%type] => Notice
[!message] => Undefined offset: 0
[%function] => Drupal\csv_serialization\Encoder\CsvEncoder->extractHeaders()
[%file] => /[path to drupal]/modules/contrib/csv_serialization/src/Encoder/CsvEncoder.php
[%line] => 145
)
Comment | File | Size | Author |
---|---|---|---|
#2 | undefined-offset-0-extractHeaders-2647926.patch | 615 bytes | hmdnawaz |
Comments
Comment #2
hmdnawaz CreditAttribution: hmdnawaz commentedComment #3
hmdnawaz CreditAttribution: hmdnawaz commentedComment #4
heykarthikwithuchecked this patch, works fine :)
Comment #6
grasmash CreditAttribution: grasmash at Acquia commented