🔴 January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.

    UVdesk

    • Login
    • Search
    • Recent

    Solved Email transformation to ticket failed with a "Warning: DOMDocument::saveHTML(): Memory allocation failed :" error

    Bug Report
    2
    2
    502
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      yl_adc last edited by

      Good morning,

      When I run the uvdesk:refresh-mailbox command, It returns this error :

      php /path/to/uvdesk/bin/console uvdesk:refresh-mailbox myemail@domain.com
      
       1. Processing uvdesk mailbox configuration.
      
       2. Opening imap stream... 
      
       3. IMAP stream opened.
      
       4. Fetching Email collection since 23 October 2023.
      
       5. Total fetched email -> 4
      
       6. Starting to convert Emails into Tickets -> 
      =============================================
      =============================================
      
      
        Converting email 1 out of 4.
        
        Error -> Warning: DOMDocument::saveHTML(): Memory allocation failed : reaching arbitrary MAX_URI_LENGTH limit (500 Internal Server Error)
      

      Do I need to increase PHP's maximum usable memory capacity to solve this problem? Or is there another solution?

      Here is what I have in the error stack trace:

      ErrorException:
      Warning: DOMDocument::saveHTML(): Memory allocation failed : reaching arbitrary MAX_URI_LENGTH limit
      
        at vendor/symfony/dom-crawler/Crawler.php:668
        at Symfony\Component\DomCrawler\Crawler->html()
           (vendor/uvdesk/core-framework/Utils/HTMLFilter.php:1017)
        at Webkul\UVDesk\CoreFrameworkBundle\Utils\HTMLFilter->addClassEmailReplyQuote()
           (vendor/uvdesk/mailbox-component/Services/MailboxService.php:352)
        at Webkul\UVDesk\MailboxBundle\Services\MailboxService->processMail()
           (vendor/uvdesk/mailbox-component/Controller/MailboxChannelXHR.php:46)
        at Webkul\UVDesk\MailboxBundle\Controller\MailboxChannelXHR->processMailXHR()
           (vendor/symfony/http-kernel/HttpKernel.php:153)
        at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
           (vendor/symfony/http-kernel/HttpKernel.php:75)
        at Symfony\Component\HttpKernel\HttpKernel->handle()
           (vendor/symfony/http-kernel/Kernel.php:202)
        at Symfony\Component\HttpKernel\Kernel->handle()
           (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
        at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
           (vendor/autoload_runtime.php:35)
        at require_once('/var/www/html/uvdesk/vendor/autoload_runtime.php')
           (public/index.php:5) 
      

      Cordially.

      1 Reply Last reply Reply Quote 0
      • Komal Sharma
        Komal Sharma UVdesk Staff mod last edited by

        @yl_adc

        Do I need to increase PHP's maximum usable memory capacity to solve this problem? Or is there another solution?

        Yes, once you try with the increase PHP's maximum usable memory capacity with this variable limit also MAX_URI_LENGTH limit.

        Also, you can check it in your php.ini file, dom extension is installed or not.

        If not installed, first you will be installed dom extension in your php file.

        You have verified the curl and dom extension is installed or not. For checking the extension follow the below command:

        $ php -m
        

        072632f0-9a41-41be-ad03-0dde70aed8c5-image.png

        If curl extension is not installed then follow the below command for installed curl extension:

        $ sudo apt install php7.4-curl
        

        Alternatively, you can follow the below link for more refrerences:

        https://stackoverflow.com/a/66072424

        1 Reply Last reply Reply Quote 0
        • Komal Sharma
          Komal Sharma UVdesk Staff mod last edited by

          @yl_adc

          Do I need to increase PHP's maximum usable memory capacity to solve this problem? Or is there another solution?

          Yes, once you try with the increase PHP's maximum usable memory capacity with this variable limit also MAX_URI_LENGTH limit.

          Also, you can check it in your php.ini file, dom extension is installed or not.

          If not installed, first you will be installed dom extension in your php file.

          You have verified the curl and dom extension is installed or not. For checking the extension follow the below command:

          $ php -m
          

          072632f0-9a41-41be-ad03-0dde70aed8c5-image.png

          If curl extension is not installed then follow the below command for installed curl extension:

          $ sudo apt install php7.4-curl
          

          Alternatively, you can follow the below link for more refrerences:

          https://stackoverflow.com/a/66072424

          1 Reply Last reply Reply Quote 0
          • Topic has been marked as solved  peopleinside peopleinside 
          • Referenced by  D devdevfrnt 
          • First post
            Last post