KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\test\koolreport\core\src\core\Utility.php on line 318 #1155

Open Ronald Avendaño opened this topic on on Nov 14, 2019 - 3 comments

Ronald Avendaño commented on Nov 14, 2019

Everything is fine on localhost (Pc), but in server i get this:

Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\test\koolreport\core\src\core\Utility.php on line 318

I think autoload.php calls Utility.php

//Step 1: Load KoolReport __require_once "koolreport/core/autoload.php";__

from file: SomeClass.php

<?php

//Step 1: Load KoolReport require_once "koolreport/core/autoload.php";

//Step 2: Creating Report class

class SomeClass extends \koolreport\KoolReport {

protected function settings()
{
    return array(
        "dataSources"=>array(
            
        )
    );
}
protected function setup()
{

}

}

plz help.

KoolReport commented on Nov 14, 2019

Hi Ronald, may I know your PHP version?

Ronald Avendaño commented on Nov 14, 2019

Thx for answer, the PHP version in Pc is 7+ and Server is PHP: 5.3.1

KoolReport commented on Nov 15, 2019

KoolReport requires php 5.4 or above. Please try to upgrade your php, we recommend 7.x

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

None