liuch / dmarc-srg

A php parser, viewer and summary report generator for incoming DMARC reports.
GNU General Public License v3.0
218 stars 32 forks source link

Error when fetching reports #132

Closed seal-82 closed 2 weeks ago

seal-82 commented 2 weeks ago

Hallo to all,

since update to the latest version, when fetching reports, I get the following error:

dmarc-srg [error]: ErrorException: Undefined array key "begin" in /var/www//classes/Report/ReportData.php:244 Stack trace:

0 /var/www//classes/Report/ReportData.php(244): {closure}(2, 'Undefined array...', '/var/www/...', 244)

1 [internal function]: Liuch\DmarcSrg\Report\ReportData->xmlEndTag(Object(XMLParser), 'FEEDBACK')

2 /v...

Anybody experiencing the same issue? Was working like a charm until the update...

PHP = 8.3.10 MySQL = 8.0.33

Cheers, Sebastian

liuch commented 2 weeks ago

Hello, this seems to happen when trying to process an incorrect report file. Is that true in your case?

liuch commented 2 weeks ago

I have just generated a new v2.2.1 release with a fix for this bug. Thank you for the report.