24 Jan 2024, 21:18

Hello all,

I'm having an issue while fetching new emails. When I run:

php /home/path/to/bin/console uvdesk:refresh-mailbox email@example.com

I'm getting the following:

 // previous ones are successful

- Processing email 5 of 9: <--- issue

      ERROR Warning: DOMDocument::saveHTML(): Memory allocation failed : reaching arbitrary MAX_URI_LENGTH limit

- Processing email 6 of 9: <--- next few are good...

      200 Received email from example@example.com. The contents of this email has already been processed. [tickets/18/#31]

I only have like 9 emails to process, of which you can see two above. Out of those 9 emails, 3 fail due to the error message above. It seems to happen when the email it's importing is large (about 5-7MB in size with images and so on...).

My memory_limit in php.ini is 4096M, which is more than enough.

I saw a similar thread here, but the solutions didn't help as I already am able to process some emails.

Any help is highly appreciated. Thanks!