UVdesk

    • Register
    • Login
    • Search
    • Recent

    Unsolved An unexpected error fetching email

    Technical Help
    3
    11
    55
    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.
    • I
      ics-tas_admin last edited by

      Dear All,
      We are verifying the error in object when I attempt to manually fetching email.
      All the configuration appear as ok, We have tested step by step all the principal steps. Now I have sended a new mail to the support account mail, and now I see the mail is retrieved but not processed with the error:
      "An unexpected error occurred: Warning: Trying to access array offset on value of type null"
      My installation is on ubuntu, php8.2, apache, mysql.
      Attached the screenshot of the problem.
      Some idea regarding this problem?

      uvdesk_fetching_mail.png

      Komal Sharma 1 Reply Last reply Reply Quote 0
      • Komal Sharma
        Komal Sharma UVdesk Staff @ics-tas_admin last edited by

        @ics-tas_admin

        We are verifying the error in object when I attempt to manually fetching email.
        All the configuration appear as ok, We have tested step by step all the principal steps. Now I have sended a new mail to the support account mail, and now I see the mail is retrieved but not processed with the error:
        "An unexpected error occurred: Warning: Trying to access array offset on value of type null"

        Let us know, which version of uvdesk you are using.
        Also, you have cleared cache of project after setup of mailbox. If not once you clear cache of project using the below command:

        $ php bin/console c:c
        
        I 1 Reply Last reply Reply Quote 0
        • I
          ics-tas_admin @Komal Sharma last edited by

          @Komal-Sharma Thank You so much for Your help.
          We have installed the last version available, using composer.
          I have also cleared after mailbox setutp and confirm You, We receive the same error.

          Komal Sharma 1 Reply Last reply Reply Quote 0
          • Komal Sharma
            Komal Sharma UVdesk Staff @ics-tas_admin last edited by

            @ics-tas_admin

            We have installed the last version available, using composer.
            I have also cleared after mailbox setutp and confirm You, We receive the same error.

            Can you please share your log file from your project. Please follow the below path for log file:

            your-project-folder-name/var/log/dev.log         
            

            69da7994-d486-4b40-a57f-fdcdfcf92b90-dev.log-file.png

            I 1 Reply Last reply Reply Quote 0
            • I
              ics-tas_admin @Komal Sharma last edited by

              @Komal-Sharma Thank You for reply,
              below the shared dev.log.

              link text

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

                @ics-tas_admin

                below the shared dev.log.
                link text

                Thanks for sharing with us required file. We will check and updated you.

                Thank you for your time and patience!!!

                I A 2 Replies Last reply Reply Quote 0
                • I
                  ics-tas_admin @Komal Sharma last edited by

                  @Komal-Sharma Have You news regarding the problem?
                  Thank You so much
                  Antonio

                  1 Reply Last reply Reply Quote 0
                  • A
                    amaridian @Komal Sharma last edited by

                    @Komal-Sharma

                    Hello, i have the same problem here with my fresh Installation of UVdesk.

                    # Retrieving mailbox configuration details for abcdefg@thiebrinker-huette.de:
                    
                      - Establishing connection with mailbox
                      - Fetching all emails since 20 March 2023
                      - Found a total of 1 emails in mailbox since 20 March 2023
                    
                      # Processing all found emails iteratively:
                    
                        API https://mail.thiebrinker-huette.de/mailbox/listener
                    
                        - Processing email 1 of 1:
                      An unexpected error occurred: Warning: Trying to access array offset on value of type null
                    

                    I tracked the error down to line 409 in MailboxService.php:

                    $thread = $this->container->get('ticket.service')->createTicket($mailData);
                    

                    the content of $mailData is

                    Array
                    (
                        [replyTo] => Array
                            (
                                [0] => 
                            )
                    
                        [messageId] => <AM4PR0301MB214884248D3E3480033A495290819@AM4PR0301MB2148.eurprd03.prod.outlook.com>
                        [inReplyTo] => 
                        [referenceIds] => <AM4PR0301MB214884248D3E3480033A495290819@AM4PR0301MB2148.eurprd03.prod.outlook.com>
                        [cc] => Array
                            (
                            )
                    
                        [bcc] => Array
                            (
                            )
                    
                        [source] => email
                        [createdBy] => customer
                        [role] => ROLE_CUSTOMER
                        [from] => blablabla@blmedia.de
                        [name] => My Name
                        [subject] => Test
                        [message] => 
                    <head>
                    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                    <meta name="Generator" content="Microsoft Word 15 (filtered medium)">
                    <style><!--
                    /* Font Definitions */
                    @font-face
                    	{font-family:"Cambria Math";
                    	panose-1:2 4 5 3 5 4 6 3 2 4;}
                    @font-face
                    	{font-family:DengXian;
                    	panose-1:2 1 6 0 3 1 1 1 1 1;}
                    @font-face
                    	{font-family:Calibri;
                    	panose-1:2 15 5 2 2 2 4 3 2 4;}
                    @font-face
                    	{font-family:"\@DengXian";
                    	panose-1:2 1 6 0 3 1 1 1 1 1;}
                    /* Style Definitions */
                    p.MsoNormal, li.MsoNormal, div.MsoNormal
                    	{margin:0cm;
                    	font-size:11.0pt;
                    	font-family:"Calibri",sans-serif;}
                    span.E-MailFormatvorlage17
                    	{mso-style-type:personal-compose;
                    	font-family:"Calibri",sans-serif;
                    	color:windowtext;}
                    .MsoChpDefault
                    	{mso-style-type:export-only;
                    	font-family:"Calibri",sans-serif;}
                    @page WordSection1
                    	{size:612.0pt 792.0pt;
                    	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
                    div.WordSection1
                    	{page:WordSection1;}
                    --></style>
                    </head>
                    <body lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
                    <div class="WordSection1">
                    <p class="MsoNormal">test<p></p></p>
                    <p class="MsoNormal"><p> </p></p>
                    <div>
                    <p class="MsoNormal" style="background:white"><span style='font-size:14.0pt;font-family:"Arial",sans-serif;color:#4B4B4D'>BL</span><span style='font-size:14.0pt;font-family:"Arial",sans-serif;color:#319CD1'>MEDiA </span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#4B4B4D'>GmbH<br>
                    Von-Braun-Str. 49<br>
                    D-48683 Ahaus</span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#212121'><p></p></span></p>
                    <p class="MsoNormal" style="background:white"><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#4B4B4D'>Telefon: <a href="tel:+4925616070200" title="tel:+4925616070200"><span style="color:#0078D4">+49 2561 60702-00</span></a>  <br>
                    Fax: <a href="tel:+4925616070299" title="tel:+4925616070299"><span style="color:#0078D4">+49 2561 60702-99</span></a></span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#212121'><p></p></span></p>
                    <p class="MsoNormal" style="background:white"><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#4B4B4D'>E-Mail: </span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:black'><a href="mailto:projekte@blmedia.de" title="mailto:projekte@blmedia.de"><span style="color:#0563C1">projekte@blmedia.de</span></a></span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#4B4B4D'><br>
                    Internet: </span><span style='font-size:10.0pt;font-family:"Arial",sans-serif;color:black'><a href="http://www.blmedia.de/" title="http://www.blmedia.de/"><span style="color:#0563C1">www.blmedia.de</span></a></span><span style='font-family:"Arial",sans-serif;color:#212121'><p></p></span></p>
                    </div>
                    <p class="MsoNormal"><span style='font-size:7.5pt;font-family:"Arial",sans-serif;color:#4B4B4D'><br>
                    Vertretungsberechtigte Geschäftsführer:<br>
                    </span><p></p></p>
                    </div>
                    </body>
                    
                        [attachments] => Array
                            (
                            )
                    
                        [threadType] => create
                    )
                    

                    Obviously there is an error in the createTicket method, it returns NULL instead of a $thread reference.

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

                      @amaridian

                      Hello, i have the same problem here with my fresh Installation of UVdesk.

                      Can you please share your email raw content of fetching email. Share a compsoer.lock file and also log file of your project. So that we can check the issue.

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        amaridian @Komal Sharma last edited by

                        @Komal-Sharma

                        composer.lock: https://gist.github.com/CRudde/ccbdb58ecd10925f8de0c428c07b72ce
                        log: https://gist.github.com/CRudde/e01753930758593fe6f4d4f92b3cbc8e

                        I will send the IMAP credentials via pm.

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

                          @amaridian

                          composer.lock: https://gist.github.com/CRudde/ccbdb58ecd10925f8de0c428c07b72ce
                          log: https://gist.github.com/CRudde/e01753930758593fe6f4d4f92b3cbc8e
                          I will send the IMAP credentials via pm.

                          Thanks for sharing with us required file. We will check and updated you.

                          Thank you for your time and patience!!!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post