Below is what I get in the log file, xerte-debug.log, after logging in (ldap) and then doing "Xerte Online Toolkit" -> Create and providing the name "foo" for the new project.
These values seem to be unknown by the application - see the log file.
login_id= ?
folder_name= ?
template_name = ?
folder_parent = ?
Here is the ldap table: -
mysql> select * from ldap;
+
+
+
+
+
+
+
+
+
+
| ldap_id | ldap_knownname | ldap_host | ldap_port | ldap_username | ldap_password | ldap_basedn | ldap_filter | ldap_filter_attr |
+
+
+
+
+
+
+
+
+
+
| 1 | from_sitedetails | auth.shef.ac.uk | 389 | | | ou=Users,dc=sheffield,dc=ac,dc=uk | uid | uid |
+
+
+
+
+
+
+
+
+
+
1 row in set (0.00 sec)
mysql>
And here is the output in the log file: xerte-debug.log
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : SELECT * FROM sitedetails
2016-04-28 16:58:19 /var/www/html/website_code/php/user_library.php270Running : select folder_id from folderdetails where login_id= ? AND folder_name = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : SELECT max(template_id) as count FROM templatedetails
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : select template_type_id, template_name, template_framework from originaltemplatesdetails where template_name = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/templates/new_template.php81Running : INSERT INTO templatedetails (template_id, creator_id, template_type_id, date_created, date_modified, number_of_uses, access_to_whom, template_name, extra_flags)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
2016-04-28 16:58:19 /var/www/html/website_code/php/templates/new_template.php85Created new template entry in db
2016-04-28 16:58:19 /var/www/html/website_code/php/templates/new_template.php87Running : INSERT INTO templaterights (template_id, user_id, role, folder) VALUES (?,?,?,?)
2016-04-28 16:58:19 /var/www/html/website_code/php/templates/new_template.php91Setup template rights ok
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : SELECT template_framework from originaltemplatesdetails WHERE template_name = ?
2016-04-28 16:58:19 /var/www/html/modules/xerte/new_template.php111Creating new template : 8, Nottingham
2016-04-28 16:58:19 /var/www/html/modules/xerte/new_template.php119Created /home/xerte/v3.1/USER-FILES/8-cs1slb-Nottingham ok
2016-04-28 16:58:19 /var/www/html/modules/xerte/new_template.php45Copying /home/xerte/v3.1/modules/xerte/templates/Nottingham to /home/xerte/v3.1/USER-FILES/8-cs1slb-Nottingham, recursively...
2016-04-28 16:58:19 /var/www/html/modules/xerte/new_template.php45Copying /home/xerte/v3.1/modules/xerte/templates/Nottingham/media to /home/xerte/v3.1/USER-FILES/8-cs1slb-Nottingham/media, recursively...
2016-04-28 16:58:19 /var/www/html/modules/xerte/new_template.php122Copy_r returned 1
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : SELECT * FROM sitedetails
2016-04-28 16:58:19 /var/www/html/website_code/php/user_library.php270Running : select folder_id from folderdetails where login_id= ? AND folder_name = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/user_library.php270Running : select folder_id from folderdetails where login_id= ? AND folder_name = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/display_library.php187Running : select folder_id, folder_name from folderdetails where login_id = ? AND folder_parent = ? order by date_created DESC
2016-04-28 16:58:19 /var/www/html/website_code/php/display_library.php259Running : select td.template_name as project_name, originaltemplatesdetails.template_name, originaltemplatesdetails.template_framework, td.template_id from templatedetails td, templaterights tr, originaltemplatesdetails where td.template_id = tr.template_id and tr.user_id = ? and tr.folder= ? and originaltemplatesdetails.template_type_id = td.template_type_id order by td.date_created DESC
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : select folder_id from folderdetails where folder_name=? AND login_id = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/display_library.php337Running : select template_id from templaterights where folder= ? UNION SELECT folder_id from folderdetails where folder_parent= ?
2016-04-28 16:58:19 /var/www/html/website_code/php/display_library.php187Running : select folder_id, folder_name from folderdetails where login_id = ? AND folder_parent = ? order by date_created DESC
2016-04-28 16:58:19 /var/www/html/website_code/php/display_library.php259Running : select td.template_name as project_name, originaltemplatesdetails.template_name, originaltemplatesdetails.template_framework, td.template_id from templatedetails td, templaterights tr, originaltemplatesdetails where td.template_id = tr.template_id and tr.user_id = ? and tr.folder= ? and originaltemplatesdetails.template_type_id = td.template_type_id order by td.date_created DESC
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : SELECT * FROM sitedetails
2016-04-28 16:58:19 /var/www/html/website_code/php/user_library.php270Running : select folder_id from folderdetails where login_id= ? AND folder_name = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/user_library.php270Running : select folder_id from folderdetails where login_id= ? AND folder_name = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/user_library.php270Running : select folder_id from folderdetails where login_id= ? AND folder_name = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/display_library.php401Running : select folder_id, folder_name from folderdetails where login_id = ? AND folder_parent = ? order by date_created DESC
2016-04-28 16:58:19 /var/www/html/website_code/php/display_library.php461Running : select td.template_name as project_name, originaltemplatesdetails.template_name, originaltemplatesdetails.template_framework, td.template_id from templatedetails td, templaterights tr, originaltemplatesdetails where td.template_id = tr.template_id and tr.user_id = ? and tr.folder= ? and originaltemplatesdetails.template_type_id = td.template_type_id order by td.date_created DESC
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : select folder_id from folderdetails where folder_name=? AND login_id = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/display_library.php401Running : select folder_id, folder_name from folderdetails where login_id = ? AND folder_parent = ? order by date_created DESC
2016-04-28 16:58:19 /var/www/html/website_code/php/display_library.php461Running : select td.template_name as project_name, originaltemplatesdetails.template_name, originaltemplatesdetails.template_framework, td.template_id from templatedetails td, templaterights tr, originaltemplatesdetails where td.template_id = tr.template_id and tr.user_id = ? and tr.folder= ? and originaltemplatesdetails.template_type_id = td.template_type_id order by td.date_created DESC
2016-04-28 16:58:19 /var/www/html/website_code/php/display_library.php583Running : select * from originaltemplatesdetails order by date_uploaded DESC
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : SELECT * FROM sitedetails
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : select originaltemplatesdetails.template_name, logindetails.username, originaltemplatesdetails.template_framework, templaterights.user_id, templaterights.folder, templaterights.template_id, templatedetails.access_to_whom from originaltemplatesdetails, templaterights, templatedetails, logindetails where templatedetails.template_type_id = originaltemplatesdetails.template_type_id and templatedetails.creator_id = logindetails.login_id and templaterights.template_id = templatedetails.template_id and templaterights.template_id="8" and role="creator"
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : select * from templaterights where user_id=? AND template_id = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : select role from templaterights where user_id= ? AND template_id = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/template_status.php139Running : select templaterights.template_id, role, logindetails.username, originaltemplatesdetails.template_name FROM templaterights, logindetails, originaltemplatesdetails, templatedetails where templatedetails.template_type_id = originaltemplatesdetails.template_type_id AND templaterights.template_id = templatedetails.template_id and templatedetails.creator_id = logindetails.login_id and templaterights.template_id= ? AND role = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/template_status.php153Running : select templaterights.template_id, role, logindetails.username, originaltemplatesdetails.template_name from templaterights, logindetails, originaltemplatesdetails, templatedetails where templatedetails.template_type_id = originaltemplatesdetails.template_type_id AND templaterights.template_id = templatedetails.template_id and templatedetails.creator_id = logindetails.login_id and templaterights.template_id = ?
2016-04-28 16:58:19 /var/www/html/edithtml.php48Running : UPDATE templatedetails SET date_accessed=? WHERE template_id = ?
2016-04-28 16:58:19 /var/www/html/website_code/php/database_library.php175Running : select username from logindetails where login_id=?
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : SELECT * FROM sitedetails
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : select templatedetails.template_name, template_framework, date_created, date_modified, extra_flags from templatedetails, originaltemplatesdetails where template_id= ? and originaltemplatesdetails.template_type_id = templatedetails.template_type_id
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : select template_name from templatedetails where template_id= ?
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : SELECT td.extra_flags FROM templatedetails td WHERE td.template_id = ?
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : select templatedetails.access_to_whom from templatedetails where template_id= ?
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : select * from templaterights where user_id=? AND template_id = ?
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : select originaltemplatesdetails.template_name, templaterights.folder, logindetails.username FROM originaltemplatesdetails, templatedetails, templaterights, logindetails WHERE originaltemplatesdetails.template_type_id = templatedetails.template_type_id AND templaterights.template_id = templatedetails.template_id AND templatedetails.creator_id = logindetails.login_id AND templatedetails.template_id = ? AND role = ?
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : select access_to_whom from templatedetails where template_id= ?
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : select templatedetails.access_to_whom from templatedetails where template_id= ?
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : select * from templaterights where user_id=? AND template_id = ?
2016-04-28 16:58:20 /var/www/html/website_code/php/properties/properties_library.php629Running : SELECT template_id, user_id, firstname, surname, username, role FROM templaterights, logindetails WHERE logindetails.login_id = templaterights.user_id and template_id= ?
2016-04-28 16:58:20 /var/www/html/website_code/php/database_library.php175Running : SELECT template_id, user_id, firstname, surname, role FROM templaterights, logindetails WHERE logindetails.login_id = templaterights.user_id and template_id= ? and user_id = ?