KoolReport's Forum

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

HTTP 500 Error #1019

Open ATM opened this topic on on Jul 31, 2019 - 13 comments

ATM commented on Jul 31, 2019

Hello,

i am getting the below error after installing the KoolReports Pro.

[30-Jul-2019 20:19:39 UTC] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in koolreport/excel/vendor/markbaker/complex/classes/src/operations/add.php on line 18 [30-Jul-2019 20:19:42 UTC] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in koolreport/excel/vendor/markbaker/complex/classes/src/operations/add.php on line 18 [30-Jul-2019 20:29:19 UTC] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in koolreport/excel/vendor/markbaker/complex/classes/src/operations/add.php on line 18 [30-Jul-2019 20:31:52 UTC] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in koolreport/excel/vendor/markbaker/complex/classes/src/operations/add.php on line 18 [30-Jul-2019 20:31:57 UTC] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in koolreport/excel/vendor/markbaker/complex/classes/src/operations/add.php on line 18 [31-Jul-2019 04:05:49 UTC] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in koolreport/excel/vendor/markbaker/complex/classes/src/operations/add.php on line 18 [31-Jul-2019 04:08:33 UTC] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in koolreport/excel/vendor/markbaker/complex/classes/src/operations/subtract.php on line 18 [31-Jul-2019 04:10:49 UTC] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in koolreport/excel/vendor/markbaker/matrix/classes/src/operations/add.php on line 21 [31-Jul-2019 04:12:32 UTC] PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in koolreport/excel/vendor/markbaker/matrix/classes/src/operations/add.php on line 21

David Winterburn commented on Jul 31, 2019

Hi,

This seems to be a PHP version compatibility problem. Please make sure your PHP version is at least 5.6 or 7.0. Let us know if updating PHP solves your case. Thanks!

ATM commented on Jul 31, 2019

Hi David,

Thank you for your response, my php version is 5.6.

David Winterburn commented on Jul 31, 2019

Hi,

Would you please run a PHP file with this content on your server:

<?php

(function (string ...$args) {
    echo implode(' ', $args);
})('Hello', 'world!');

Let us know the result. Thanks!

ATM commented on Jul 31, 2019

it appeared that my php was actually version 5.4, i updated to v5.6.

however i got the below error now

[31-Jul-2019 13:03:50 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'Could not find phantomjs executed file in bin folder' in /reports/koolreport/export/Handler.php:58 Stack trace: #0 /reports/koolreport/export/Handler.php(241): koolreport\export\Handler->runPhantom('/home/atalmutta...', '/tmp/5d4191b6d4...', '/tmp/5d4191b6d4...', 'eyJleHBlY3RlZEx...') #1 /reports/rpdf.php(5): koolreport\export\Handler->pdf() #2 {main} thrown in reports/koolreport/export/Handler.php on line 58

KoolReport commented on Jul 31, 2019

Hi ATM, the export package use phantomjs but it is quite large to include in download so here is the instruction to download phantomjs. Make sure that you download correct version of phantomjs for your OS and not to forget to set its permission to execute.

ATM commented on Jul 31, 2019

the instructions is not clear on how to install it on the webhosting server. can you please advise

KoolReport commented on Jul 31, 2019

If your host server is Linux, then you download the phantomjs for linux and upload to folder "koolreport/export/bin" ... the koolreport is where our library located.

ATM commented on Jul 31, 2019

Should I create the bin folder?

KoolReport commented on Jul 31, 2019

Yes please create

ATM commented on Jul 31, 2019

i still get an error

[31-Jul-2019 19:17:35 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'Could not execute phantomjs' in /koolreport/export/Handler.php:72 Stack trace: #0 /koolreport/export/Handler.php(241): koolreport\export\Handler->runPhantom('/home/atalmutta...', '/tmp/5d41e94f57...', '/tmp/5d41e94f57...', 'eyJleHBlY3RlZEx...') #1 /reports/rpdf.php(5): koolreport\export\Handler->pdf() #2 {main} thrown in /koolreport/export/Handler.php on line 72

KoolReport commented on Jul 31, 2019

Did you set permission for phantomjs file like 775 so that it can be executed.

ATM commented on Jul 31, 2019

Yes I have it 777 permission

KoolReport commented on Jul 31, 2019

Do you use shared host? Some of our users have problem with shared host due to strict security that wont allows execution file to be run. The only way to get through this is to contact with server admin to install phantomjs for you. If they refuse then there is no way. The back-up solution will be our CloudExport package.

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

Excel