isotope / core

Core repository of Isotope eCommerce, an eCommerce extension for Contao Open Source CMS
https://isotopeecommerce.org
136 stars 107 forks source link

PHP warning: Cannot modify header information - headers already sent #2459

Closed jochi44 closed 1 year ago

jochi44 commented 1 year ago

Isotope V2.8.12 Contao V4.13.24 PHP V8.1.19

The server error.log shows this php warning when generating (printing) an invoice in the backend:

PHP message: PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/client/web/vendor/tecnickcom/tcpdf/include/tcpdf_static.php:320) in /var/www/client/web/vendor/contao/core-bundle/src/HttpKernel/Header/NativeHeaderStorage.php on line 27PHP message: PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/client/web/vendor/tecnickcom/tcpdf/include/tcpdf_static.php:320) in /var/www/client/web/vendor/symfony/http-foundation/Session/SessionUtils.php on line 52" while reading upstream, server: abc.tld, request: "POST /contao?do=iso_orders&key=print_document&id=140&rt=abc HTTP/2.0"

aschempp commented 1 year ago

Isotope does not load the tcpdf_static.php by default, so maybe you changed something on your TCPDF configuration?

jochi44 commented 1 year ago

Not that I know of. I did install the package https://github.com/katgirl/isotope_documents. Maybe that's related.

Nevertheless, I close this topic.