Hallo, Ich habe eben 5 Bestellungen markiert und dann dafür Rechnungen erstellen & runterladen wollen. Daraufhin kam diese Fehlermeldung: WARNING(2): "count(): Parameter must be an array or an object that implements Countable" WARNING(2): "count(): Parameter must be an array or an object that implements Countable" WARNING(2): "Cannot modify header information - headers already sent by (output started at /data/web/MEINHOSTING/html/beta/gm/classes/ErrorHandler.php:419)" Fatal error: Uncaught MpdfException: Some data has already been output to browser, can't send PDF file in /data/web/MEINHOSTING/html/beta/vendor/mpdf/mpdf/mpdf.php:9422 Stack trace: #0 /data/web/MEINHOSTING/html/beta/GXMainComponents/Extensions/Orders/OrderActions.inc.php(249): mPDF->Output('Invoices-2018_1...', 'D') #1 /data/web/MEINHOSTING/html/beta/GXMainComponents/Controllers/HttpView/AdminAjax/OrdersModalsAjaxController.inc.php(136): OrderActions->bulkPdfInvoices(Array) #2 /data/web/MEINHOSTING/html/beta/GXEngine/Services/System/Http/HttpViewController.inc.php(152): OrdersModalsAjaxController->actionBulkPdfInvoices() #3 /data/web/MEINHOSTING/html/beta/GXEngine/Services/System/Http/HttpViewController.inc.php(107): HttpViewController->_callActionMethod('BulkPdfInvoices') #4 /data/web/MEINHOSTING/html/beta/GXEngine/Services/System/Http/HttpDispatcher.inc.php(72): HttpViewController->proceed(Object(HttpContextServerData)) #5 /data/web/MEINHOSTING/html/beta/GXEngine/Services/System/Http/HttpService.inc.php(67): HttpDispatcher->dispatch(Object(HttpContextSe in /data/web/MEINHOSTING/html/beta/vendor/mpdf/mpdf/mpdf.php on line 9422 FATAL ERROR(1): "Uncaught MpdfException: Some data has already been output to browser, can't send PDF file in /data/web/MEINHOSTING/html/beta/vendor/mpdf/mpdf/mpdf.php:9422 Stack trace: #0 /data/web/MEINHOSTING/html/beta/GXMainComponents/Extensions/Orders/OrderActions.inc.php(249): mPDF->Output('Invoices-2018_1...', 'D') #1 /data/web/MEINHOSTING/html/beta/GXMainComponents/Controllers/HttpView/AdminAjax/OrdersModalsAjaxController.inc.php(136): OrderActions->bulkPdfInvoices(Array) #2 /data/web/MEINHOSTING/html/beta/GXEngine/Services/System/Http/HttpViewController.inc.php(152): OrdersModalsAjaxController->actionBulkPdfInvoices() #3 /data/web/MEINHOSTING/html/beta/GXEngine/Services/System/Http/HttpViewController.inc.php(107): HttpViewController->_callActionMethod('BulkPdfInvoices') #4 /data/web/MEINHOSTING/html/beta/GXEngine/Services/System/Http/HttpDispatcher.inc.php(72): HttpViewController->proceed(Object(HttpContextServerData)) #5 /data/web/MEINHOSTING/html/beta/GXEngine/Services/System/Http/HttpService.inc.php(67): HttpDispatcher->dispatch(Object(HttpContextSe" Woran kann das liegen? Freundliche Grüsse Support-Ticket #100662710
Das Problem bei Sammelbelegen besteht mit dem Shop laufend auf PHP7.2. Wir müssen eine neuere Version von "mpdf" einbauen, die mit PHP7.2 läuft. Die gibts, aber die geht nicht mehr mit PHP5.5 oder 5.6. Wir haben für GX3.11 einen Workaround gebaut, der das neue mpdf unter PHP5.6 lauffähig macht und stellen zu GX3.11 gleichzeitig die Unterstützung für PHP5.5 ein. Damit wird GX3.11 die Lösung sein und in GX3.10 vermutlich keine Lösung mehr kommen. Das ist eine grössere Operation, die die Stabilität mehr gefährdet als für einen stabilen Zweig rechtzufertigen wäre. Wer GX3.10 und das Feature nutzt, sollte auf PHP7.1 downgraden.
Eigentlich sieht das dann so aus: Fatal error: Uncaught MpdfException: File is encrypted! in /mnt/web211/e0/03/5705003/htdocs/shop2017/vendor/mpdf/mpdf/mpdf.php:31368 Stack trace: #0 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXMainComponents/Extensions/Orders/OrderActions.inc.php(226): mPDF->SetSourceFile('/mnt/web211/e0/...') #1 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXMainComponents/Controllers/HttpView/AdminAjax/OrdersModalsAjaxController.inc.php(136): OrderActions->bulkPdfInvoices(Array) #2 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXEngine/Services/System/Http/HttpViewController.inc.php(152): OrdersModalsAjaxController->actionBulkPdfInvoices() #3 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXEngine/Services/System/Http/HttpViewController.inc.php(107): HttpViewController->_callActionMethod('BulkPdfInvoices') #4 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXEngine/Services/System/Http/HttpDispatcher.inc.php(72): HttpViewController->proceed(Object(HttpContextServerData)) #5 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXEngine/Services/System/Http/HttpServi in /mnt/web211/e0/03/5705003/htdocs/shop2017/vendor/mpdf/mpdf/mpdf.php on line 31368 (Link nur für registrierte Nutzer sichtbar.)
Das ist eine ganz andere Fehlermeldung als die, die der vorherige Kollege hatte. Du hast ein ganz anderes Problem. Prüf mal Einstellungen -> Rechnung/Lieferschein -> Konfiguration -> Sicherheit. Alle Knöpfe aktivieren. Besser?
Leider nicht, obwohl ich auch mal alles Caches geleert habe: Fatal error: Uncaught MpdfException: File is encrypted! in /mnt/web211/e0/03/5705003/htdocs/shop2017/vendor/mpdf/mpdf/mpdf.php:31368 Stack trace: #0 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXMainComponents/Extensions/Orders/OrderActions.inc.php(226): mPDF->SetSourceFile('/mnt/web211/e0/...') #1 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXMainComponents/Controllers/HttpView/AdminAjax/OrdersModalsAjaxController.inc.php(136): OrderActions->bulkPdfInvoices(Array) #2 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXEngine/Services/System/Http/HttpViewController.inc.php(152): OrdersModalsAjaxController->actionBulkPdfInvoices() #3 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXEngine/Services/System/Http/HttpViewController.inc.php(107): HttpViewController->_callActionMethod('BulkPdfInvoices') #4 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXEngine/Services/System/Http/HttpDispatcher.inc.php(72): HttpViewController->proceed(Object(HttpContextServerData)) #5 /mnt/web211/e0/03/5705003/htdocs/shop2017/GXEngine/Services/System/Http/HttpServi in /mnt/web211/e0/03/5705003/htdocs/shop2017/vendor/mpdf/mpdf/mpdf.php on line 31368 (Link nur für registrierte Nutzer sichtbar.) und die Funktion "Modifizieren des PDF-Dokumentes erlauben" zu deaktivieren erschien mir sinnig!?