šŸ”“ January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.

    UVdesk

    • Login
    • Search
    • Recent

    Unsolved Warning: Trying to access array offset on value of type null when trying to refresh a mailbox

    Technical Help
    3
    24
    4683
    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.
    • peopleinside
      peopleinside EX helping member @peopleinside last edited by

      Another possibile useful topic:
      https://forums.uvdesk.com/topic/2209/issue-fetching-email

      šŸ’¬ You can also ask help on GitHub Discussions
      šŸ”“ I am no more active on Uvdesk
      šŸ”“ Forum support is inactive!

      1 Reply Last reply Reply Quote 0
      • E
        escozul last edited by escozul

        @peopleinside
        Thank you for all these topics. Still browsing through them to figure out if there is a similar resolution. In my case the call to https is made properly so I don't think the issue is there.

        Also I went over to the logs and captured all the errors and warnings that come up when I try to fetch the emails. Here are my logs:

        [2023-12-12T14:47:44.439482+01:00] deprecation.INFO: User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "Webkul\UVDesk\CoreFrameworkBundle\UVDeskCoreFrameworkBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \"Symfony\\Component\\HttpKernel\\Bundle\\Bundle::getContainerExtension()\" might add \"?ExtensionInterface\" as a native return type declaration in the future. Do the same in child class \"Webkul\\UVDesk\\CoreFrameworkBundle\\UVDeskCoreFrameworkBundle\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/vendor/symfony/error-handler/DebugClassLoader.php:331)"} []
        [2023-12-12T14:47:44.440761+01:00] deprecation.INFO: User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "Webkul\UVDesk\AutomationBundle\UVDeskAutomationBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \"Symfony\\Component\\HttpKernel\\Bundle\\Bundle::getContainerExtension()\" might add \"?ExtensionInterface\" as a native return type declaration in the future. Do the same in child class \"Webkul\\UVDesk\\AutomationBundle\\UVDeskAutomationBundle\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/vendor/symfony/error-handler/DebugClassLoader.php:331)"} []
        [2023-12-12T14:47:44.440788+01:00] deprecation.INFO: User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "Webkul\UVDesk\ExtensionFrameworkBundle\UVDeskExtensionFrameworkBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \"Symfony\\Component\\HttpKernel\\Bundle\\Bundle::getContainerExtension()\" might add \"?ExtensionInterface\" as a native return type declaration in the future. Do the same in child class \"Webkul\\UVDesk\\ExtensionFrameworkBundle\\UVDeskExtensionFrameworkBundle\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/vendor/symfony/error-handler/DebugClassLoader.php:331)"} []
        [2023-12-12T14:47:44.440807+01:00] deprecation.INFO: User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "Webkul\UVDesk\MailboxBundle\UVDeskMailboxBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \"Symfony\\Component\\HttpKernel\\Bundle\\Bundle::getContainerExtension()\" might add \"?ExtensionInterface\" as a native return type declaration in the future. Do the same in child class \"Webkul\\UVDesk\\MailboxBundle\\UVDeskMailboxBundle\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/vendor/symfony/error-handler/DebugClassLoader.php:331)"} []
        [2023-12-12T14:47:44.440831+01:00] deprecation.INFO: User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "Webkul\UVDesk\SupportCenterBundle\UVDeskSupportCenterBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \"Symfony\\Component\\HttpKernel\\Bundle\\Bundle::getContainerExtension()\" might add \"?ExtensionInterface\" as a native return type declaration in the future. Do the same in child class \"Webkul\\UVDesk\\SupportCenterBundle\\UVDeskSupportCenterBundle\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/vendor/symfony/error-handler/DebugClassLoader.php:331)"} []
        [2023-12-12T14:47:44.440847+01:00] deprecation.INFO: User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::getContainerExtension()" might add "?ExtensionInterface" as a native return type declaration in the future. Do the same in child class "Webkul\UVDesk\ApiBundle\UVDeskApiBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \"Symfony\\Component\\HttpKernel\\Bundle\\Bundle::getContainerExtension()\" might add \"?ExtensionInterface\" as a native return type declaration in the future. Do the same in child class \"Webkul\\UVDesk\\ApiBundle\\UVDeskApiBundle\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/vendor/symfony/error-handler/DebugClassLoader.php:331)"} []
        [2023-12-12T14:47:44.440861+01:00] deprecation.INFO: User Deprecated: Since symfony/security-bundle 5.3: The ".container.private.security.password_encoder" service is deprecated, use "security.user_password_hasher" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-bundle 5.3: The \".container.private.security.password_encoder\" service is deprecated, use \"security.user_password_hasher\" instead. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/var/cache/dev/ContainerUcWwxIl/get_Container_Private_Security_PasswordEncoderService.php:22)"} []
        [2023-12-12T14:47:44.440876+01:00] deprecation.INFO: User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Encoder\UserPasswordEncoder" class is deprecated, use "Symfony\Component\PasswordHasher\Hasher\UserPasswordHasher" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-core 5.3: The \"Symfony\\Component\\Security\\Core\\Encoder\\UserPasswordEncoder\" class is deprecated, use \"Symfony\\Component\\PasswordHasher\\Hasher\\UserPasswordHasher\" instead. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/vendor/symfony/security-core/Encoder/UserPasswordEncoder.php:19)"} []
        [2023-12-12T14:47:44.440889+01:00] deprecation.INFO: User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface" interface is deprecated, use "Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-core 5.3: The \"Symfony\\Component\\Security\\Core\\Encoder\\UserPasswordEncoderInterface\" interface is deprecated, use \"Symfony\\Component\\PasswordHasher\\Hasher\\UserPasswordHasherInterface\" instead. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/vendor/symfony/security-core/Encoder/UserPasswordEncoderInterface.php:17)"} []
        [2023-12-12T14:47:44.440903+01:00] deprecation.INFO: User Deprecated: Since symfony/security-bundle 5.3: The "security.encoder_factory.generic" service is deprecated, use "security.password_hasher_factory" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-bundle 5.3: The \"security.encoder_factory.generic\" service is deprecated, use \"security.password_hasher_factory\" instead. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/var/cache/dev/ContainerUcWwxIl/getSecurity_EncoderFactory_GenericService.php:22)"} []
        [2023-12-12T14:47:44.440920+01:00] deprecation.INFO: User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Encoder\EncoderFactory" class is deprecated, use "Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactory" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-core 5.3: The \"Symfony\\Component\\Security\\Core\\Encoder\\EncoderFactory\" class is deprecated, use \"Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactory\" instead. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/vendor/symfony/security-core/Encoder/EncoderFactory.php:20)"} []
        [2023-12-12T14:47:44.440934+01:00] deprecation.INFO: User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface" class is deprecated, use "Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactoryInterface" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-core 5.3: The \"Symfony\\Component\\Security\\Core\\Encoder\\EncoderFactoryInterface\" class is deprecated, use \"Symfony\\Component\\PasswordHasher\\Hasher\\PasswordHasherFactoryInterface\" instead. at /home/helpdesk-support/htdocs/helpdesk.example.com/helpdesk-project/vendor/symfony/security-core/Encoder/EncoderFactoryInterface.php:17)"} []
        

        Urls and usernames have been masked for protection.

        These are only deprecation warnings. Should they cause fatal errors in php operations?

        peopleinside 1 Reply Last reply Reply Quote 0
        • peopleinside
          peopleinside EX helping member @escozul last edited by

          @escozul

          Regarding the logs: deprecation info is not an error, is just a message to developers that can be ignored by you.

          Are you sure your domain is set correctly in the file config/packages/uvdesk.yaml?
          How you set your domain?

          šŸ’¬ You can also ask help on GitHub Discussions
          šŸ”“ I am no more active on Uvdesk
          šŸ”“ Forum support is inactive!

          1 Reply Last reply Reply Quote 0
          • E
            escozul last edited by escozul

            @peopleinside
            Hello
            in my .env, I see the following:

            ###> symfony/framework-bundle ###
            APP_ENV=dev
            APP_SECRET=YOUR_APP_SECRET
            

            Is that correct? Should I have set the app secret somewhere? ... or it does not matter?

            My uvdesk.yaml:

            parameters:
                app_locales: en|fr|it|de|da|ar|es|tr|zh|pl
                
                # Default Assets
                assets_default_agent_profile_image_path: 'bundles/uvdeskcoreframework/images/uv-avatar-batman.png'
                assets_default_customer_profile_image_path: 'bundles/uvdeskcoreframework/images/uv-avatar-ironman.png'
                assets_default_helpdesk_profile_image_path: 'bundles/uvdeskcoreframework/images/uv-avatar-uvdesk.png'
            
                uvdesk_site_path.member_prefix: --------- #Masked for security
                uvdesk_site_path.knowledgebase_customer_prefix: --------- #Masked for security
                
                # File uploads constraints
                # @TODO: Set these parameters via compilers
                max_post_size: 8388608
                max_file_uploads: 20
                upload_max_filesize: 2097152
            
            uvdesk:
                site_url: 'helpdes.mydomain.com' # No /public here. It's properly set.
                upload_manager:
                    id: Webkul\UVDesk\CoreFrameworkBundle\FileSystem\UploadManagers\Localhost
                
                support_email:
                    id: email@mydomain.com #properly set to my domain. Changed it for security purposes
                    name: Support HelpDesk
                    mailer_id: mailer_SES
                
                # Default resources
                default:
                    ticket:
                        type: support
                        status: open
                        priority: low
                    templates:
                        email: mail.html.twig
            

            Tried to mask some. Sorry for that. They seem just fine though.

            Edit:

            I visited the address found here: API https://uvdesk.example.com/mailbox/listener
            kept bugging me.

            The result on screen was:
            {"success":false,"message":"Request not supported."}
            Have no idea what that is! what is it?
            What about the API? When I go over to settings, the first selection is the API:
            alt text

            I haven't used that access token anywhere. What's it for? Should I put it in the .env file?

            peopleinside 1 Reply Last reply Reply Quote 0
            • peopleinside
              peopleinside EX helping member @escozul last edited by

              @escozul

              Could you try to replace the

              site_url: 'helpdes.mydomain.com' # No /public here. It's properly set.
              

              with

              site_url: helpdes.mydomain.com
              

              Then clean cache php bin/console c:c and try to fetch email again. Still facing the issue?

              šŸ’¬ You can also ask help on GitHub Discussions
              šŸ”“ I am no more active on Uvdesk
              šŸ”“ Forum support is inactive!

              E 1 Reply Last reply Reply Quote 0
              • E
                escozul @peopleinside last edited by

                @peopleinside

                Thank you. Same error though.

                peopleinside 1 Reply Last reply Reply Quote 0
                • peopleinside
                  peopleinside EX helping member @escozul last edited by

                  @escozul I have no others idea sorry.

                  All thread suggested where user are solved seems are not helping you, from what you said. I don't know what else suggest.

                  Usually from what I see the error can be caused by a wrong domain settings, from some server settings like HTTP and not HTTPS, there are also some fix suggested in other topics.

                  I'm currently not facing this issue on my active installation.
                  I'm sorry to see we was not able to resolve.

                  šŸ’¬ You can also ask help on GitHub Discussions
                  šŸ”“ I am no more active on Uvdesk
                  šŸ”“ Forum support is inactive!

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    escozul @peopleinside last edited by

                    @peopleinside
                    Thank you for your time.
                    I appreciate all your help.

                    Well.. Let's hope that in the following days, someone will come across this issue and help me resolve it.

                    peopleinside 1 Reply Last reply Reply Quote 0
                    • peopleinside
                      peopleinside EX helping member @escozul last edited by

                      @escozul I wish you to resolve šŸ™‚

                      šŸ’¬ You can also ask help on GitHub Discussions
                      šŸ”“ I am no more active on Uvdesk
                      šŸ”“ Forum support is inactive!

                      1 Reply Last reply Reply Quote 0
                      • L
                        leooxx last edited by

                        Hello,

                        To fix this error, you must install the php extension "maileparse"

                        Apt debian command : sudo apt install php8.1-mailparse

                        The full error message is in the log app :

                        {"message":"Uncaught Error: Call to undefined function PhpMimeMailParser\\mailparse_msg_create()","context":{"exception":{"class":"Error","message":"Call to undefined function PhpMimeMailParser\\mailparse_msg_create()","code":0,"file":"/web/www/uvdesk/vendor/php-mime-mail-parser/php-mime-mail-parser/src/Parser.php:195"}},"level":500,"level_name":"CRITICAL","channel":"php","datetime":"2024-03-24T16:40:04.785031+01:00","extra":{}}
                        
                        E 2 Replies Last reply Reply Quote 0
                        • E
                          escozul @leooxx last edited by

                          @leooxx Thank you.

                          Will try that on Tuesday and get back here to post if it's resolved or not.

                          1 Reply Last reply Reply Quote 0
                          • E
                            escozul @leooxx last edited by escozul

                            @leooxx Hello,
                            I can't find that entry on any of my logs. How do you know that the error is with the php-mailparse addon?

                            cause running PHP -m lists mailparse right there..

                            You mentioned a "logs app"... Can't find that.

                            peopleinside 1 Reply Last reply Reply Quote 0
                            • peopleinside
                              peopleinside EX helping member @escozul last edited by peopleinside

                              @escozul

                              usually when I was using UVdesk for check if the mail parse was present and detected by UVdesk I use to generate a new UVdesk instance and run the setup wizard.

                              The UVdesk setup wizard show you if you have all requirements.
                              I suggested, since long time to the UVdesk team to add a health page that help already present installation to be checked but since different months now UVdesk seems abandoned in the open source project.

                              I migrated to a different solution and left also the forum also if I still get an eye here sometimes šŸ™‚

                              šŸ’¬ You can also ask help on GitHub Discussions
                              šŸ”“ I am no more active on Uvdesk
                              šŸ”“ Forum support is inactive!

                              E 1 Reply Last reply Reply Quote 0
                              • E
                                escozul @peopleinside last edited by

                                @peopleinside Hello,

                                Did you migrate to a different solution? Do you mind sharing it?

                                peopleinside 1 Reply Last reply Reply Quote 0
                                • peopleinside
                                  peopleinside EX helping member @escozul last edited by

                                  @escozul currently I'm using freescout that is not all completely free but seems fine is updated and works quite well. I'm very sad to have to leave UVdesk but I had some serous bug with attachments for example that was not fixed and I did not see updates so decided to migrate.

                                  Currently we dont know if UVdesk open source will be supported in the future, loooks strange to me support for the open source has been frozen for mounts and seems also the development on GitHub is frozen.

                                  šŸ’¬ You can also ask help on GitHub Discussions
                                  šŸ”“ I am no more active on Uvdesk
                                  šŸ”“ Forum support is inactive!

                                  E 1 Reply Last reply Reply Quote 0
                                  • E
                                    escozul @peopleinside last edited by

                                    @peopleinside Than you for replying. Freescout seems free... Maybe the modules are paid but the core seems free. UVdesk plugins are also paid for so I guess it's kind of the same...

                                    That's a nice alternative. Since it's self-hosted, I might give it a go!

                                    peopleinside 1 Reply Last reply Reply Quote 0
                                    • peopleinside
                                      peopleinside EX helping member @escozul last edited by

                                      @escozul correct. With the base you have very basilar function you miss workflow, user interface, etc... so at the end it's easy you will need buy something. šŸ™‚ but you can see the online full demo šŸ™‚

                                      šŸ’¬ You can also ask help on GitHub Discussions
                                      šŸ”“ I am no more active on Uvdesk
                                      šŸ”“ Forum support is inactive!

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