trilobit-gmbh / contao-zipuploads-bundle

2 stars 0 forks source link

Anpassung an Notification Center 2 #10

Open Schmidty2 opened 1 month ago

Schmidty2 commented 1 month ago

Hallo, die Dateianhänge via Tokens funktionieren nicht mehr im NotificationCenter 2. Laut Yannik von Terminal 42 ist das so gewollt, die Erweiterung zipuploads muss angepasst werden. Siehe: https://github.com/terminal42/contao-notification_center/issues/342#issuecomment-2289347047

Schmidty2 commented 4 weeks ago

Hallo, wenn in den Formulareinstellungen "Alle Uploads nach zippen löschen" aktiviert ist, wird die E-Mail nicht vesendet und ein Error ausgegeben. Ich weiß nicht genau, ob das Problem mit der Anpassung an NC 2 zusammenhängt, im Error-Log steht in Zeile 3 ein Hinweis auf den NC 2, deshalb schreibne ich das hier dazu. Wenn "Alle Uploads nach zippen löschen" deaktiviert ist, wird die E-Mail versendet (aber ohne ZIP-Dateianhang).

PHP 8.3.8 Contao 5.3.12 NC 2.0.13 Zipuloads 2.2.2

Hier das Error-Log:

[2024-08-16T15:26:01.757824+02:00] request.INFO: Matched route "tl_page.14". {"route":"tl_page.14","route_parameters":{"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","_format":"html","_canonical_route":"tl_page.14","parameters":"","pageModel":{"Contao\\PageModel":[]},"_route":"tl_page.14","_route_object":{"Contao\\CoreBundle\\Routing\\Page\\PageRoute":[]}},"request_uri":"https://www.domain.de/anfrage-kontakt/anfrage","method":"POST"} {"request_uri":"https://www.domain.de/anfrage-kontakt/anfrage","request_method":"POST"}
[2024-08-16T15:26:01.955944+02:00] contao.files.INFO: File "files/upload-dateien/dateiname.pdf" has been uploaded [] {"request_uri":"https://www.domain.de/anfrage-kontakt/anfrage","request_method":"POST","contao":{"Contao\\CoreBundle\\Monolog\\ContaoContext":"{\"func\":\"Contao\\\\FormUpload::validate\",\"action\":\"FILES\",\"username\":\"N\\/A\",\"browser\":\"Mozilla\\/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko\\/20100101 Firefox\\/129.0\",\"uri\":\"https:\\/\\/www.domain.de\\/anfrage-kontakt\\/anfrage\",\"pageId\":14}"}}
[2024-08-16T15:26:01.982349+02:00] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "The file "/www/htdocs/w1234567/verzeichnisname/files/upload-dateien/dateiname.pdf" does not exist." at FileItem.php line 59 {"exception":"[object] (InvalidArgumentException(code: 0): The file \"/www/htdocs/w1234567/verzeichnisname/files/upload-dateien/dateiname.pdf\" does not exist. at /www/htdocs/w1234567/verzeichnisname/vendor/terminal42/notification_center/src/BulkyItem/FileItem.php:59)"} {"request_uri":"https://www.domain.de/anfrage-kontakt/anfrage","request_method":"POST"}
[2024-08-16T15:26:01.988821+02:00] php.WARNING: Warning: proc_open(): posix_spawn() failed: Permission denied {"exception":"[object] (ErrorException(code: 0): Warning: proc_open(): posix_spawn() failed: Permission denied at /www/htdocs/w1234567/verzeichnisname/vendor/symfony/console/Terminal.php:220)"} {"request_uri":"https://www.domain.de/anfrage-kontakt/anfrage","request_method":"POST"}
[2024-08-16T15:26:01.989417+02:00] php.WARNING: Warning: proc_open(): posix_spawn() failed: Permission denied {"exception":"[object] (ErrorException(code: 0): Warning: proc_open(): posix_spawn() failed: Permission denied at /www/htdocs/w1234567/verzeichnisname/vendor/symfony/console/Terminal.php:220)"} {"request_uri":"https://www.domain.de/anfrage-kontakt/anfrage","request_method":"POST"}
[2024-08-16T15:26:01.994322+02:00] messenger.INFO: Stopping worker. {"transport_names":["contao_prio_high"]} {"request_uri":"https://www.domain.de/anfrage-kontakt/anfrage","request_method":"POST"}