KoolReport's Forum

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

Class Cannot be found error #1174

Closed tafadzwa opened this topic on on Nov 21, 2019 - 4 comments

tafadzwa commented on Nov 21, 2019

Dear support team, I just have tried to connect to my MYSQLDataSource in Xampp where my Database is,but I get the following error:

Fatal error: Uncaught Error: Class 'koolreport\core\src\processes\TimeBucket' not found in C:\xampp\htdocs\bata\admin\dailyreport.php:40 Stack trace: #0 C:\xampp\htdocs\bata\admin\koolreport\core\src\KoolReport.php(100): dailyreport->setup() #1 C:\xampp\htdocs\bata\admin\sero.php(81): koolreport\KoolReport->__construct() #2 {main} thrown in C:\xampp\htdocs\bata\admin\dailyreport.php on line 40

I Have a sero.php page as my index with code below

Also I have may daily report.php with my connection Settings

Also Included is my KoolReport.php code where I modified from PDO source to MYSQL source

KoolReport commented on Nov 21, 2019

Hi,

Please change to:

use \koolreport\processes\TimeBucket;

Please leave out the "core/src" in all namespace.

tafadzwa commented on Nov 21, 2019

Left out the "core/src" in my namaspaces,now getting this error

Fatal error: Uncaught Error: Call to a member function execute() on boolean in C:\xampp\htdocs\bata\admin\koolreport\core\src\datasources\MySQLDataSource.php:384 Stack trace: #0 C:\xampp\htdocs\bata\admin\koolreport\core\src\KoolReport.php(315): koolreport\datasources\MySQLDataSource->start() #1 C:\xampp\htdocs\bata\admin\sero.php(82): koolreport\KoolReport->run() #2 {main} thrown in C:\xampp\htdocs\bata\admin\koolreport\core\src\datasources\MySQLDataSource.php on line 384

KoolReport commented on Nov 21, 2019

You do not need to make modification to our core like you did in KoolReport.php. Please change back use PDO to connect to MySQL like our example here.

tafadzwa commented on Nov 21, 2019

Thanks Support I now have output.

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