KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.

KoolReport is not being recognized #1074

Open Brindicis opened this topic on on Sep 4 - 7 comments

Brindicis commented on Sep 4

Hey!

I've migrated my website from one host to another and during this process, my KoolReport Statistics Module stopped working and i can't find what is causing this error. In the debug process I've tried to re-install the composer package and requiring the package with following code my Report's files: 'require_once dirname(FILE)."/../../vendor/koolreport/core/autoload.php";' Nothing seems to solve this problem so i was wondering if you can help me on finding a solution.

Thanks in advance, Bruno.

(The first image shows the error that occurs everytime the "KoolReport" class is called. There should be a rendered chart in the blank space above the table, as shown in the second image)

KoolReport commented on Sep 5

Do you use any kinds of framework like codeigniter or laravel together with KoolReport?

KoolReport commented on Sep 5

Oh I understand now. It is because the "vendor" is protected folder and browser could not get the resource like the KoolReport.js file from there. Please follow this topic: Settings to make KoolReport able to load widget resource.

Anything please let us know.

Brindicis commented on Sep 6

This project uses Laravel.

I've tried to change the lines on the files "StatOrders.php" and "StatSellers.php" like this:

But the result is the same. Do i need to change anything in the path or another files?

Thank you!

KoolReport commented on Sep 7

Great that you use Laravel, we do have a package called Laravel which can solve this issue automatically. Please remove the assets in your settings() and add this trait to your report:

class StatOrders extends \koolreport\KoolReport
{
    use \koolreport\laravel\Friendship;
}

by doing this, your assets will be configured automatically.

Brindicis commented 6 days ago

I did the following changes:

File StatSellers.php:

File StatOrders.php:

But they didn't work. Is there any other solution i can try to resolve this issue?

Thank you!

Brindicis commented 4 days ago

Ok, its almost working. The line charts are appearing but some circular charts are not working, i'm getting this error:

KoolReport commented 4 days ago

Could you please try to run our downloadable examples to see if they works.

Give tips to supporter for his good work

If you feel that supporter has done a good work, consider giving him some credit. Any amount put into the tips box below is appreciated. By doing so, you have contribtuted to the existence of KoolReport and the quality of support.

Tips box
help needed

None