I am having a problem with the Scheduler and the Connector. I am trying to fetch data for option lists using the example on this page - docs.dhtmlx.com/doku.php?id=dhtm … ntegration.
The XML seems to be fine. It loads everything and looks good. It lists everything at the bottom under <coll_options for=“team”> and items are
However on the calendar, nothing loads. I get an error in the error log:
[14-Sep-2011 14:42:16] PHP Fatal error: Uncaught exception 'Exception' with message 'PDO - sql execution failed
Array' in /mnt/stor1-wc1-dfw1/371140/372644/crm.mosbybuildingarts.com/web/content/includes/dhtmlx/db_pdo.php:14
Stack trace:
#0 /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/db_common.php(619): PDODBDataWrapper->query('SELECT id,id,na...')
#1 /mnt/stor1-wc1-dfw1/371140/372644/website/content/includes/dhtmlx/base_connector.php(683): DBDataWrapper->select(Object(DataRequestConfig))
#2 /mnt/stor1-wc1-dfw1/371140/372644/website/content/includes/dhtmlx/scheduler_connector.php(59): OptionsConnector->render()
#3 /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/scheduler_connector.php(69): SchedulerConnector->fill_collections()
#4 /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/base_connector.php(537): SchedulerConnector->xml_end()
#5 /mnt/stor1-wc1-dfw1/371140/372644/website in /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/db_pdo.php on line 14
[14-Sep-2011 14:42:16] PHP Fatal error: Uncaught exception 'Exception' with message 'PDO - sql execution failed
Array' in /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/db_pdo.php:14
Stack trace:
#0 /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/db_common.php(619): PDODBDataWrapper->query('SELECT id,id,na...')
#1 /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/base_connector.php(683): DBDataWrapper->select(Object(DataRequestConfig))
#2 /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/scheduler_connector.php(59): OptionsConnector->render()
#3 /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/scheduler_connector.php(69): SchedulerConnector->fill_collections()
#4 /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/base_connector.php(537): SchedulerConnector->xml_end()
#5 /mnt/stor1-wc1-dfw1/371140/372644/website in /mnt/stor1-wc1-dfw1/371140/372644/website/web/content/includes/dhtmlx/db_pdo.php on line 14
I have no idea what’s causing the error. Here is my PHP code:
a) in your code you are missing one field in the next command
$scheduler->render_table(‘project_schedule’, ‘id’, ‘start_date,end_date,title’);
it must be like
$scheduler->render_table(‘project_schedule’, ‘id’, ‘start_date,end_date,title,team’);
Where team - field in project_schedule which will store foreign key for the logins table
b) if issue still occurs ( most probably it will )
add the next command
$scheduler = new schedulerConnector($db,“PDO”);
$scheduler->enable_log(“log.txt”)
and provide the log file for the problematic operation
I see. I haven’t got that far in hooking up the foreign key. So how would this work if I was using a multiselect? I would need to create another table to create the relationships.
I am still getting the error. I added the $scheduler->enable_log(“log.txt”) but it doesn’t seem to generate anything. The XML file loads file. It’s the calendar page that’s generating the error.
Just checked again and it did create a log file. Here it is:
It is quite strange, because log file doesn’t contain any error info, and the server log, which you have provide at the start of discussion do have error records.
Normally, if any DB level error occurs - log file will contain error info.