markocupic / calendar-event-booking-bundle

Contao 4 Extension
13 stars 7 forks source link

Fehler bei Export Teilnehmerliste #36

Closed jochi44 closed 2 years ago

jochi44 commented 2 years ago

Hi Marko,

erstmal danke für diese tolle Contao-Erweiterung!

Beim Export der Teilnehmerliste zu einem Event aus dem Contao-Backend erscheint folgende Fehlermeldung:

Internal Server Error
Was ist das Problem?
Return value of Markocupic\ExportTable\Export\ExportTable::getWriter() must implement interface Markocupic\ExportTable\Writer\WriterInterface, null returned

Auszug aus dem error.log: [2021-10-27T11:17:38.879341+02:00] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://domain.tld/contao?action=downloadRegistrationList&do=calendar&id=8&ref=c9_xdcwX&rt=8a835ee0631.Sk-hG1OqUnba6hJenDKL0hIPc7HXwcrpbbXSr-cAVUQ.JhiYSybBK0Poo3sW0WTZnSdaS8OWgP-_L_Thy7ZFEyEAeskoGu86BJK5dQ&table=tl_calendar_events_member","method":"GET"} []

[2021-10-27T11:17:39.026642+02:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Return value of Markocupic\ExportTable\Export\ExportTable::getWriter() must implement interface Markocupic\ExportTable\Writer\WriterInterface, null returned" at /var/www/clients/web/abc/vendor/markocupic/export_table/src/Export/ExportTable.php line 149 {"exception":"[object] (TypeError(code: 0): Return value of Markocupic\\ExportTable\\Export\\ExportTable::getWriter() must implement interface Markocupic\\ExportTable\\Writer\\WriterInterface, null returned at /var/www/clients/web/abc/vendor/markocupic/export_table/src/Export/ExportTable.php:149)"} []

Contao-Version: 4.12.3 calendar-event-booking-bundle-Version: 5.1.2

markocupic commented 2 years ago

This was a bug in markocupic/export_table, where this extension relies on. Please update to 5.1.3.

jochi44 commented 2 years ago

I can confirm that the bug is fixed in V5.1.3. Sidenote: It would be great, if the exported csv-file would include column headers and German Umlaute would be exported correctly (currently seeing something like "Jürgen" für "Jürgen").