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

    UVdesk

    • Login
    • Search
    • Recent

    Solved UVDesk open attachment in ticket No route found for

    Technical Help
    4
    4
    926
    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.
    • M
      michelict last edited by

      Hello,

      When I click on an attachment in a ticket I receive this error:

      No route found for "GET https://uvdesk.domain.nl/public/public/nl/member/ticket/download/19"

      In the logging is see this error:

      Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET https://uvdesk.domain.nl/public/public/nl/member/ticket/download/19" (from "https://uvdesk.domain.nl/public/nl/member/ticket/view/41")" at /home/helpdesk/public_html/vendor/symfony/http-kernel/EventListener/RouterListener.php line 135

      Schermafbeelding 2023-08-09 om 16.33.52.png

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

        @michelict

        When I click on an attachment in a ticket I receive this error: No route found for "GET
        https://uvdesk.domain.nl/public/public/nl/member/ticket/download/19

        We have noticed this error in the latest release uvdesk. We have fixed this issue but changes wiil be reflect on the next release. At this moment you can change the some code in your project. Please follow the below steps:

        Step 1: Go to your project, open and change the code in below mentioned file path:

        your-project-folder/vendor/uvdesk/core-framework/FileSystem/FileSystem.php

        Add a code like this as shown the below screenshot:

        $scheme = $this->container->get('router')->getContext()->getScheme();
        $host = $this->container->get('router')->getContext()->getHost();
        $baseUrl = "$scheme://$host";
        $assetDetails['downloadURL'] = $baseUrl.$assetDetails['downloadURL'];
        

        64f14eee-4e73-43a1-93d7-6ab62597c4b0-image.png

        Reference from here.

        Step 2: Now change some code in the mentioned below file path:

        your-project-folder/vendor/uvdesk/core-framework/Controller/Ticket.php

        $response->headers->set('Content-length', filesize($zipname));
        

        Another line:

        readfile($path);
        

        95aade4d-af88-449a-acf7-76fb7eb56f70-image.png

        Reference from here:

        https://github.com/uvdesk/core-framework/pull/652/commits/ad4ab27f009426c635932a403983a2b04eb1302e

        https://github.com/uvdesk/core-framework/pull/652/commits/dfd98fa3971df42ebdc7ab8265c502af8517b2cc

        Step 3: After change the both files you will be cleared cache of your project using the below command in your project root directory:

        $ php bin/console c:c
        

        If you are facing the same issue then let us know.

        Kind Respects
        Uvdesk team

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

          @michelict

          When I click on an attachment in a ticket I receive this error: No route found for "GET
          https://uvdesk.domain.nl/public/public/nl/member/ticket/download/19

          We have noticed this error in the latest release uvdesk. We have fixed this issue but changes wiil be reflect on the next release. At this moment you can change the some code in your project. Please follow the below steps:

          Step 1: Go to your project, open and change the code in below mentioned file path:

          your-project-folder/vendor/uvdesk/core-framework/FileSystem/FileSystem.php

          Add a code like this as shown the below screenshot:

          $scheme = $this->container->get('router')->getContext()->getScheme();
          $host = $this->container->get('router')->getContext()->getHost();
          $baseUrl = "$scheme://$host";
          $assetDetails['downloadURL'] = $baseUrl.$assetDetails['downloadURL'];
          

          64f14eee-4e73-43a1-93d7-6ab62597c4b0-image.png

          Reference from here.

          Step 2: Now change some code in the mentioned below file path:

          your-project-folder/vendor/uvdesk/core-framework/Controller/Ticket.php

          $response->headers->set('Content-length', filesize($zipname));
          

          Another line:

          readfile($path);
          

          95aade4d-af88-449a-acf7-76fb7eb56f70-image.png

          Reference from here:

          https://github.com/uvdesk/core-framework/pull/652/commits/ad4ab27f009426c635932a403983a2b04eb1302e

          https://github.com/uvdesk/core-framework/pull/652/commits/dfd98fa3971df42ebdc7ab8265c502af8517b2cc

          Step 3: After change the both files you will be cleared cache of your project using the below command in your project root directory:

          $ php bin/console c:c
          

          If you are facing the same issue then let us know.

          Kind Respects
          Uvdesk team

          O 1 Reply Last reply Reply Quote 0
          • Topic has been marked as solved  peopleinside peopleinside 
          • Referenced by  peopleinside peopleinside 
          • O
            omerparlak @Komal Sharma last edited by

            @Komal-Sharma
            I solved most of the problems, but there is one more small problem.
            This problem occurred in the file preview on the ticket screen:
            This Problem:
            The file I uploaded is a .png image.

            1 Reply Last reply Reply Quote 0
            • E
              emmanuelkatto @michelict last edited by

              @michelict thank you so much @michelict for this question I am also looking for the same answer.

              1 Reply Last reply Reply Quote 0
              • Referenced by  M mkdirs 
              • Referenced by  peopleinside peopleinside 
              • First post
                Last post