Announcement

Collapse
No announcement yet.

"Bad Server" getting while using reports

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • "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.

  • #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


    • #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.

      Comment


      • #4
        You can also try to install the latest advanced pack 2.3.10. This may fix the problem.

        Comment


        • #5
          Originally posted by yurikuzn View Post
          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


          • #6
            I recommend to install 2.3.10 version. Your fix will cause notices in log at least.

            Comment


            • #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...
              X