PHP error using actual

I use Codeigniter as my PHP framework. When I run the actual API, I get the results, but there are PHP warnings.

Severity: Warning 

Message: include(/home/bwilson/public_html/factual/CI_DB.php): failed to open stream: No such file or directory 

Filename: factual/Factual.php 

Line Number: 217 

Severity: Warning 

Message: include(): Failed opening '/home/bwilson/public_html/factual/CI_DB.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') 

Filename: factual/Factual.php 

Line Number: 217 

I look at line 217 in the factual.php file and reads:

include dirname(__FILE__)."/".$className . ".php"; 

What is a link? I tested this without starting the Factual API and loading the controllers. Only when I start using the Factual API.

This is the answer I received from Factual:

The driver uses the SPL autoload function to include files for unloading classes dynamically.

Here, the CI_DB class is the Codeigniter class, not the actual one - but not loaded first. This calls the autoload function in the last attempt to download the file.

In short: this is not a problem with the actual driver; decide whether to provide the file containing the CI_DB class loaded correctly.

+3
3

. index.php, . , .

, .

0

CI_DB.php , factual.php.

, , . , .

, , .

+1

You're using?:

require_once BASEPATH . "/{$className}.php";
-1
source

All Articles