Hi!
PROBLEM 1
I tried to install the module, but when I went to the "Admin" I received the following error messages.
Error
mts-v1.2-012804 -> Setting up module tables
--------------------------------------------------------------------------------
(mysql): CREATE TABLE mdl_questionnaire_realm ( name CHAR(16) NOT NULL, title CHAR(64) NOT NULL, changed TIMESTAMP(14) NOT NULL DEFAULT '', PRIMARY KEY(name))
--------------------------------------------------------------------------------
1067: Invalid default value for 'changed'
Error
--------------------------------------------------------------------------------
(mysql): CREATE TABLE mdl_questionnaire_respondent ( username CHAR(64) NOT NULL, password CHAR(16) NOT NULL, auth CHAR(16) NOT NULL DEFAULT 'BASIC', realm CHAR(16) NOT NULL, fname CHAR(16), lname CHAR(24), email CHAR(64), disabled ENUM('Y', 'N') NOT NULL DEFAULT 'N', changed TIMESTAMP(14) NOT NULL DEFAULT '', expiration TIMESTAMP(14), PRIMARY KEY (username, realm))
--------------------------------------------------------------------------------
1067: Invalid default value for 'changed'
Error
--------------------------------------------------------------------------------
(mysql): CREATE TABLE mdl_questionnaire_designer ( username CHAR(64) NOT NULL, password CHAR(16) NOT NULL, auth CHAR(16) NOT NULL DEFAULT 'BASIC', realm CHAR(16) NOT NULL, fname CHAR(16), lname CHAR(24), email CHAR(64), pdesign ENUM('Y', 'N') NOT NULL DEFAULT 'Y', pstatus ENUM('Y', 'N') NOT NULL DEFAULT 'N', pdata ENUM('Y', 'N') NOT NULL DEFAULT 'N', pall ENUM('Y', 'N') NOT NULL DEFAULT 'N', pgroup ENUM('Y', 'N') NOT NULL DEFAULT 'N', puser ENUM('Y', 'N') NOT NULL DEFAULT 'N', disabled ENUM('Y', 'N') NOT NULL DEFAULT 'N', changed TIMESTAMP(14) NOT NULL DEFAULT '', expiration TIMESTAMP(14), PRIMARY KEY(username, realm))
--------------------------------------------------------------------------------
1067: Invalid default value for 'changed'
Error
--------------------------------------------------------------------------------
(mysql): INSERT INTO mdl_questionnaire_realm ( name, title ) VALUES ( 'superuser', 'ESP System Administrators' ), ( 'auto', 'Self added users' )
--------------------------------------------------------------------------------
1146: Table 'db95030403.mdl_questionnaire_realm' doesn't exist
Error
--------------------------------------------------------------------------------
(mysql): INSERT INTO mdl_questionnaire_designer (username, password, fname, lname, realm, pdesign, pstatus, pdata, pall, pgroup, puser, disabled) VALUES ('root', PASSWORD('esp'), 'ESP', 'Superuser', 'superuser', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'N')
--------------------------------------------------------------------------------
1146: Table 'db95030403.mdl_questionnaire_designer' doesn't exist
Error
--------------------------------------------------------------------------------
(mysql): CREATE TABLE mdl_questionnaire_survey ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name CHAR(64) NOT NULL, owner CHAR(16) NOT NULL, realm CHAR(64) NOT NULL, public ENUM('Y', 'N') NOT NULL DEFAULT 'Y', status INT UNSIGNED NOT NULL DEFAULT '0', title CHAR(255) NOT NULL, email CHAR(64), subtitle TEXT, info TEXT, theme CHAR(64), thanks_page CHAR(255), thank_head CHAR(255), thank_body TEXT, changed TIMESTAMP(14) NOT NULL DEFAULT '', PRIMARY KEY (id), UNIQUE(name))
--------------------------------------------------------------------------------
1067: Invalid default value for 'changed'
Error
--------------------------------------------------------------------------------
(mysql): CREATE TABLE mdl_questionnaire_response ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, survey_id INT UNSIGNED NOT NULL, submitted TIMESTAMP(14) NOT NULL DEFAULT '', complete ENUM('Y', 'N') NOT NULL DEFAULT 'N', username CHAR(64), PRIMARY KEY (id))
--------------------------------------------------------------------------------
1067: Invalid default value for 'submitted'
Error
questionnaire tables could NOT be set up successfully!
Then under the continue link was this message
--------------------------------------------------------------------------------
(mysql): SELECT * FROM mdl_course WHERE category = '0' LIMIT 1
--------------------------------------------------------------------------------
PROBLEM 2
My site is like this,
http://MyWebSite.com/moodle/
Just wanted to check if I completed the "questionnaire/phpESP/admin/phpESP.ini.php" file correctly,
/**
* Here are all the configuration options.
*/
// Base URL for phpESP
// The string $server['HTTP_HOST'] will be replaced by the server name
$ESPCONFIG['MyWebSite.com/moodle'] = 'http://' . $server['HTTP_HOST'] . '/mod/questionnaire/phpESP/';
// URL of the images directory (for <img src='...'> tags)
$ESPCONFIG['MyWebSite.com/moodle/mod/questionnaire/phpESP/'] = $ESPCONFIG['base_url'] . 'images/';
// URL of the automatic survey publisher
$ESPCONFIG['MyWebSite.com/moodle/mod/questionnaire/phpESP/'] = $ESPCONFIG['base_url'] . 'public/survey.php';
// URL of the CSS directory (for themes)
$ESPCONFIG['css_url'] = $ESPCONFIG['base_url'] . 'public/css/';
// Database connection information
$ESPCONFIG['db_host'] = 'db12.perfora.net';
$ESPCONFIG['db_user'] = 'dbo12345678';
$ESPCONFIG['db_pass'] = 'ABCdEfgh';
$ESPCONFIG['db_name'] = 'db12345678';
How can I correct the errors?
WP1