schedulerConnector not loading data with latest version

I just updated to the latest version of scheduler by simply replacing the codebase folder with the latest version codebase folder. Now my data loading with schedulerConnector does not appear to be working. If I switch back to the original codebase folder the data loads fine. I get the following error message: Fatal Error - Call to a member function quote() on a non-object in codebase/connector/db_pdo.php on line 78

Hi,

Could you please clarify the way you add a connector and how you create a connection?

Connectors were updated in march github.com/DHTMLX/connector-php … 5dd45c6861
and now PDO adapter is enabled by default. Earlier php_mysql was used.

docs.dhtmlx.com/connector__php_ … ample.html
I.e. while using PDO, it’s not necessary to do
require(“connector/db_pdo.php”);

If you want to use php_mysql, you should add
require(“connector/db_mysql.php”);

Possibly your code expects that mysql adapter is enabled by default and the error occurs because instead of it PDO is used.

Easy way to check it is to specify the connection type manually:

[code] require_once(‘scheduler_connector.php’);
require_once(‘db_mysql.php’);

$res=mysql_connect(“localhost”, “scheduler”, “scheduler”);
mysql_select_db(“schedulertest”);

$scheduler = new schedulerConnector($res, “MySQL”);[/code]

The db_mysql.php connector appears to be only available in the PRO version. I am using standard. What is the correct way to create a mysql connection in scheduler standard?

Hi,
db_mysql.php connector is available in all versions.
Most likely you get new connector from github and in the package you have an older one, that is why you get an error.
Please check info about changes in dhtmlxConnector in the article:
dhtmlx.com/blog/gantt-scheduler … e-release/