"Bad Server" getting while using reports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nishan Perera
    Active Community Member
    • Jan 2019
    • 348

    "Bad Server" getting while using reports

    Hi,

    I'm getting "bad server" error while creating reports. im using advanced pack 2.3.9 version with php 5.6.40 in xampp. Please help me to sort this matter.
    Cheers!
    Nishan.
  • Nishan Perera
    Active Community Member
    • Jan 2019
    • 348

    #2
    Hi,

    In the chrome console it shows as this "Bad server response: <br />
    <b>Parse error</b>: syntax error, unexpected '?' in <b>C:\xampp\htdocs\epocrm\application\Espo\Modules \Advanced\Services\Report.php</b> on line <b>1082</b><br />"


    I cannot identify the issue with the reports.
    Cheers!
    Nishan.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8527

      #3
      Hi Nishan,

      It's an incompatibility with php 5.6. Can you upgrade to php7.1 ? If not I will help you to make a fix.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8527

        #4
        You can also try to install the latest advanced pack 2.3.10. This may fix the problem.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • Nishan Perera
          Active Community Member
          • Jan 2019
          • 348

          #5
          Originally posted by yurikuzn
          Hi Nishan,

          It's an incompatibility with php 5.6. Can you upgrade to php7.1 ? If not I will help you to make a fix.
          Hi, I have did a change on Advanced\Services\report.php, below 4 lines with removing "?? null" part. and now its working.

          1082 - $type = $item['type'] ?? null;
          1088 - $type = $item['type'] ?? null;
          1089 - $value = $item['value'] ?? null;
          1119 - $type = $item['type'] ?? null;


          Am I did wrong ? or is it ok ?


          Last edited by Nishan Perera; 05-02-2019, 09:07 AM.
          Cheers!
          Nishan.

          Comment

          • yuri
            Member
            • Mar 2014
            • 8527

            #6
            I recommend to install 2.3.10 version. Your fix will cause notices in log at least.
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            • Nishan Perera
              Active Community Member
              • Jan 2019
              • 348

              #7
              Hi, Ok yuri. I'll go for 2.3.10 and let you know if any issue cause. Thank you very much.
              Cheers!
              Nishan.

              Comment

              Working...