KoolReport's Forum

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

SQL server DataSource error uksort() #2416

Closed saiful opened this topic on on Nov 4, 2021 - 3 comments

saiful commented on Nov 4, 2021

hi, im using SQL server 2017 with odbc_driver on ubuntu 20.4 for my koolreport datasource. but im getting error like this:

im using php v8 & laravel 8 in this project. can you explain me what's the problem?

saiful commented on Nov 4, 2021

Sebastian Morales commented on Nov 4, 2021

Hi, there're 2 solutions for this problem:

1 . Update to our latest version of KoolReport Pro 5.7 or KoolReport Core 5.1

2 . Pls open the file koolreport/core/src/datasources/SQLSRVDataSource.php and replace all this string:

    return strlen($k1) < strlen($k2);

with this one:

    return strlen($k1) - strlen($k2);

Let us know how it works for you. Tks,

saiful commented on Nov 4, 2021

it works, thanks.

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

Laravel