Issue after upgarde to 7.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1476

    Issue after upgarde to 7.2

    Hello,
    since upgrade 5.7.2 ... the issue is come.
    Admin->Setting->SiteUrl : https://aaa.bbb.be. never change since 5.6.x

    Now, all file download from espoCrm is corrupt/truncate ! Logo, userPhoto .. all is corrupt.

    it's certainly nginx/apache/.htaccess issue ? Where look ? Any tips ?
    Thanks
    Regards
    Last edited by item; 10-15-2019, 11:10 AM.
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hello,
    Please could you open dev tools with F12 button and check the errors? Screenshots are preffered.
    Also, could you describe from what version you have upgraded and how (UI or PHP CLI, etc.).
    Is there any errors in the data/logs?

    Comment

    • item
      Active Community Member
      • Mar 2017
      • 1476

      #3
      Hello Maximus,

      upgrade always from cli
      .htaccess is same as GitHub
      https let's encrypt
      no error in log
      no error in apache log
      server : apache/nginx but no more info



      step 1 : I am logoff .. and logo don't appear.. I look on the url of logo, and past and go directly ... "failled load ressource..... protocol error"
      step 2 : on the stream, I have a attachment pdf.. when I click.. it's downloaded .. but look size ...
      step 3 : on the stream, I have a attachment xlsx.. when I click .. it's open new windows.. with NSPOSIX....
      step 4 : on the stream, I have a attachment docx ...... download begin but .. size.

      same behaviour from document entity

      but txt file is "opened" in a new windows without problem ! :s

      Regards
      Attached Files
      Last edited by item; 10-15-2019, 12:30 PM.
      If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

      Comment

      • item
        Active Community Member
        • Mar 2017
        • 1476

        #4
        And I have put a log to download.php and here is info :

        PHP Code:
        [2019-10-15 13:01:11] Espo.WARNING: download : 5da5990aa9c5effab [] []
        [2019-10-15 13:01:11] Espo.WARNING: disposition : attachment [] []
        [2019-10-15 13:01:11] Espo.WARNING: type : file [] []
        [2019-10-15 13:01:11] Espo.WARNING: outputFileName : 4911822ddddddd_2019-10-15.xlsx [] []
        [2019-10-15 13:01:11] Espo.WARNING: fileName : data/upload/5da5990aa9c5effab [] []
        [2019-10-15 13:01:11] Espo.WARNING: fileSize : 7558 [] [] 
        
        And discover :

        when download csv or txt file... the downloaded file have 2 carriage return on the beginning of file
        all before was with Safari.
        with chrome, xlsx is downloaded but can't open, docx is downloaded but corrupt but open
        Last edited by item; 10-15-2019, 02:21 PM.
        If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

        Comment

        • item
          Active Community Member
          • Mar 2017
          • 1476

          #5
          Hello Team,
          Maximus : find
          on all file (Avatar.php, Download.php, Image.php, LogoImage.php) when I add :
          PHP Code:
                  while (ob_get_level()) {
                      ob_end_clean();
                  } 
          
          problem is solved.
          Then I think, I must disable buffering somewhere (php.ini, nginx.config)
          Is the documentation on GitHub about nginx is uptodate ?

          Regards


          If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

          Comment

          Working...