Try to search your question here, if you can't find : Ask Any Question Now ?

Fatal error: Uncaught Error: Class 'FoolzSphinxQLConnection' not found

HomeCategory: stackoverflowFatal error: Uncaught Error: Class 'FoolzSphinxQLConnection' not found
Avatarbhawya asked 5 months ago

I installed Foolz SphinxQL Query Builder for PHP with composer using the following json file:

    "require": {
        "foolz/sphinxql-query-builder": "^2.0"

My php is as follows:

require_once __DIR__ . '/vendor/autoload.php';

use FoolzSphinxQLSphinxQL;
use FoolzSphinxQLConnection;

ini_set('display_errors', 1);

// create a SphinxQL Connection object to use with SphinxQL
$conn = new Connection();
$conn->setConnectionParams('', 9306);

$query = SphinxQL::create($conn)->select('*')
    ->match('@test document');
#    ->where('banned', '=', 1);

$result = $query->execute();



Using my debugger I see the autoloader (function findFileWithExtension) is trying to find the file at /mnt/i/var/www/vhosts/ when it should presumably be looking in /mnt/i/var/www/vhosts/ where I can find it located?

Can anyone advise why I might be seeing this and how I fix it?


1 Answers
Best Answer
AvatarAmit answered 5 months ago
Your Answer

11 + 18 =

Popular Tags

WP Facebook Auto Publish Powered By :