Activities: Questionnaire

mod_questionnaire
Maintained by Picture of Mike ChurchwardMike Churchward
Custom Survey Creation
10179 sites
5k downloads
140 fans
Current versions available: 18
Build passing

Create your own surveys using this tool.

SUPPORT DISCUSSION: http://moodle.org/mod/forum/view.php?id=2642

NOTE: If you are upgrading to Moodle 2.3 or greater, make sure you have upgraded the questionnaire module to the latest version of Moodle 2.2, in your Moodle 2.2 codebase before upgrading to Moodle 2.3 or greater.

DEVELOPERS NOTE - Questionnaire is tracked in Github at https://github.com/remotelearner/moodle-mod_questionnaire. Contact Mike Churchward if you want "push" access.

(originally based on phpESP)

/plugins/mod

Screenshots

Screenshot #0

Contributors

Picture of Mike Churchward
Mike Churchward (Lead maintainer)
Picture of Joseph Rézeau
Joseph Rézeau: Former co-maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Picture of diego dubois
    Sun, Feb 24, 2013, 7:58 PM
    Joseph, why if you can use the 2.3 version on a Moodle 2.4 site without any problem. there is not a download link to 2.4?
  • Picture of Joseph Rézeau
    Sun, Feb 24, 2013, 8:51 PM
    @diego dubois: The 2.4 version of Questionnaire is not finalized yet. In the meantime, you can use the 2.3 version on a Moodle 2.4 site without any problems.
  • Picture of diego dubois
    Thu, Feb 28, 2013, 1:16 AM
    Joseph
    Thank you, I'll try it
  • Picture of Shwu-Fen Kuo
    Tue, May 14, 2013, 1:21 PM
    Dear,
    Our moodle is v2.4.3, I download questionnaire 2.3.3(for moodle 2.3) to install.
    The error message is displaied:
    Fatal error: Call to undefined function cli_error() in /xxxx/mod/questionnaire/db/upgrade.php on line 12
    How to resolve?
    Thanks.
  • BobBl
    Mon, May 27, 2013, 2:40 AM
    Mike & Joseph: How long will it be till the Moodle_25_Stable version in GitHub becomes officially available here for Moodle 2.5?

    Thanks for maintaining this FABULOUS Moodle Activity.

    Dr. Bob Blomeyer
  • Picture of Joseph Rézeau
    Mon, May 27, 2013, 4:47 AM
    @Robert,
    Needs more testing. In the meantime you can use the 2.4 version of Questionnaire on a Moodle 2.5 site.
    Joseph
  • Picture of Robert Morley
    Sat, Jun 22, 2013, 12:36 AM
    I have just upgraded my moodle from 1.9-2.2-2.4.4, but I did not upgrade the questionnaire mod at version 2.2. Now I am trying to upgrade to the current version for 2.4 and I just get a blank page when I try and update the database. No checkmark or anything. I have also tried the versions for 2.3 and 2.2, with no success. Any ideas on how to get the mod working?
  • Picture of Joseph Rézeau
    Sat, Jun 22, 2013, 3:04 PM
    @Robert, it appears you did not follow these instructions "NOTE: If you are upgrading to Moodle 2.3 or greater, make sure you have upgraded the questionnaire module to the latest version of Moodle 2.2, in your Moodle 2.2 codebase before upgrading to Moodle 2.3 or greater."
    The only thing you can do now is to completely remove the Questionnaire plugin from your moodle site (you will lose all Questionnaire data) and start with a fresh version for Moodle 2.4.
  • Oam
    Tue, Jul 9, 2013, 10:01 PM
    Hi Joseph,
    Can I use Questionnaire on a Moodle 2.5 production site ? If not, why ?
    Thanks !
  • Picture of Tolulope Adetula
    Tue, Aug 20, 2013, 12:00 AM
    Hello Mike & Joseph,
    I must really commend you guys for this great plugin. Kudos!
    I however have a slight issue. When the user completes the questionnaire and gets redirected to a page, if the user clicks back to on the questionnaire link, it displays a "You have already filled the questionnaire" i.e. the administrator set it to once response.My challenge is, if their is no navigation enabled or no block allowed for such user, the user cannot go back to the course page except he\/she goes through the browsers back button.
    Can you tell me what code to edit. Thanks
  • Picture of Joseph Rézeau
    Tue, Aug 20, 2013, 1:37 AM
    Tolupe, please re-post your question to the Questionnaire forum on moodle.org, where I will answer it.
    To all Questionnaire users, please note : this is NOT the right place to ask questions about the Questionnaire plugin. Please use the moodle.org questionnaire forum!
    Joseph
  • Picture of Chris Fryer
    Wed, Oct 9, 2013, 7:12 PM
    Hello

    Occasionally I see the following error in our logs:

    PHP Fatal error: Class 'questionnaire' not found in /srv/www/mod/questionnaire/lib.php on line 892

    This is defined in 'locallib.php', which is required at the start of lib.php. I suspect it is actually something to do with the way APC handles included and required files, because the error goes away for a while after I restart apache. But I notice you're using a mixture of relative and absolute paths for require_once calls. Since locallib.php is not a unique filename in Moodle, there's a danger APC will overwrite it. I think the relative paths should be made absolute by making reference to $CFG->dirroot in the paths.
  • Picture of Joseph Rézeau
    Wed, Oct 9, 2013, 7:43 PM
    @Chris Fryer, thanks for your message, I will look at this problem.
  • Picture of Mohsen Farahi
    Tue, Oct 15, 2013, 7:08 AM
    Hello,
    After creating a questionnaire and students responding, when checking 'All Responses' it says "Error reading from database". The debug info is as follows:

    Debug info: SQLState: 42000
    Error Code: 156
    Message: [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near the keyword 'user'.

    SELECT T.id, T.response, R.submitted AS submitted, R.username, U.username AS username, U.id AS user, U.lastname, U.firstname, R.survey_id, R.id AS rid FROM mdl_questionnaire_response_text T, mdl_questionnaire_response R, mdl_user U WHERE question_id=518 AND response_id IN (210) AND T.response_id = R.id AND U.id = CAST(R.username AS INT) ORDER BY U.lastname, U.firstname
    [array (
    )]
    Error code: dmlreadexception
    Stack trace:
    line 423 of \lib\dml\moodle_database.php: dml_read_exception thrown
    line 260 of \lib\dml\sqlsrv_native_moodle_database.php: call to moodle_database->query_end()
    line 367 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->query_end()
    line 788 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->do_query()
    line 836 of \lib\dml\sqlsrv_native_moodle_database.php: call to sqlsrv_native_moodle_database->get_recordset_sql()
    line 462 of \mod\questionnaire\questiontypes\questiontypes.class.php: call to sqlsrv_native_moodle_database->get_records_sql()
    line 679 of \mod\questionnaire\questiontypes\questiontypes.class.php: call to questionnaire_question->get_response_text_results()
    line 636 of \mod\questionnaire\questiontypes\questiontypes.class.php: call to questionnaire_question->display_response_text_results()
    line 2561 of \mod\questionnaire\questionnaire.class.php: call to questionnaire_question->display_results()
    line 552 of \mod\questionnaire\report.php: call to questionnaire->survey_results()

    Clearly in the query 'U.id AS user' needs to be changed to 'U.id AS [user]'

    We are using MS SQL 2012.

    Thanks
  • Picture of Tyler Gilpin
    Fri, Nov 22, 2013, 10:20 PM
    Moodle 2.6 support?
Please login to post comments