Can't create new survey

Can't create new survey

by Ari Ranta -
Number of replies: 24
Hi everybody
I upgraded Questionnaire module and after that I cannot create new survey. I get into the page where you can either create a new survey or use a template. But after that I jump directly to previewing.
If I use the direct path to phpESP I can create new surveys like templates, but can't use them because jump to preview.
There is no Finish button at the bottom of the page.
Moodle versions 1.4.3+ and 1.5 dev
Any ideas?
ari
Previewing Questionnaire
 

 
This is a preview of how this survey will look. In the preview the survey navigation buttons are inactive, use the section number buttons to view different sections. Some navigation buttons may not appear on your final survey, depending on what access it is assigned. The survey will use the background color of the document in which it is embedded. If you have no further changes click Finish at the bottom of this page.

Average of ratings: -
In reply to Ari Ranta

Vast: Can't create new survey

by Ari Ranta -
Should it work with 1.5dev or 1.4.3 latest stable? Yes there is Finish button, but it doesn't do anything.
I'm a bit confused. This module worked fine, but after upgrading nothing works. Is it possible to get older version of questionnaire module? Where can I find it?

desperate ari

In reply to Ari Ranta

Re: Vast: Can't create new survey

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
If the 'finish' button you are referring to is in the direct link to phpESP, don't use that.
In reply to Ari Ranta

Re: Can't create new survey

by Ger Tielemans -

I had a working questionnaire before the update.

After the update the module sees my old questionnaires, but like YOU...

I get on that page a death button Next and a button Finish, which closes Moodlesad 

Paths?  Configs?

I must be up and running on monday, so consider a role back, but HOW??

In reply to Ger Tielemans

Vast: Re: Can't create new survey

by Ari Ranta -

I have three different moodle installations on the same server.
The first is
Moodle 1.4.3 (2004083130) and the questionnaire mod behaves just like yours after upgrade.  Of course this is the one in production!


I made a clean installation from scratch incl. database with version
Moodle 1.4.3 + (2004083134) and the questionnaire upgrade works.

The third installation is Moodle 1.4.2 nearly (2004083122) and the questionnaire upgrade works normally!

Do we have a problem with 2004083130?


In reply to Ari Ranta

Re: Vast: Re: Can't create new survey

by Ger Tielemans -

Looking at your answer I tried a new thing (real server, so 1.4.3) :

  • I made a MySQL backup of the questionnaire tables
  • I removed the questionaire from the modules list
  • I inserted a fresh copie form CVS
  • NOP.. same button
  • Import the mysql dump (without creating new tables)
  • NOP.. same next button

To be able to start the questionnaire the day after tomorrow (with 200 teachers smile) I can use the old backdoor to enter the manager:

../mod/questionnaire/phpESP/admin/manage.php

And past the created test as a normal weblink, without the moodle management of taking it only once, etc..

In reply to Ari Ranta

Re: Vast: Re: Can't create new survey

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
I tried it as an install on 1.4.3 (2004083130) and it worked fine. I didn't have one available from an upgrade, so I couldn't test that.

When you upgraded, did you see any errors? Can you post the current table structures of your '_questionnaire_*' tables?

mike
In reply to Mike Churchward

Vast: Re: Vast: Re: Can't create new survey

by Ari Ranta -

Selaa: (17 riviä)  mdl_modules
Selaa: (0 riviä)  mdl_questionnaire
Selaa: (0 riviä)  mdl_questionnaire_access
Selaa: (0 riviä)  mdl_questionnaire_attempts
Selaa: (1 riviä)  mdl_questionnaire_designer
Selaa: (0 riviä)  mdl_questionnaire_question
Selaa: (0 riviä)  mdl_questionnaire_question_choice
Selaa: (11 riviä)  mdl_questionnaire_question_type
Selaa: (5 riviä)  mdl_questionnaire_realm
Selaa: (0 riviä)  mdl_questionnaire_respondent
Selaa: (0 riviä)  mdl_questionnaire_response
Selaa: (0 riviä)  mdl_questionnaire_response_bool
Selaa: (0 riviä)  mdl_questionnaire_response_date
Selaa: (0 riviä)  mdl_questionnaire_response_multiple
Selaa: (0 riviä)  mdl_questionnaire_response_other
Selaa: (0 riviä)  mdl_questionnaire_response_rank
Selaa: (0 riviä)  mdl_questionnaire_response_single
Selaa: (0 riviä)  mdl_questionnaire_response_text
Selaa: (0 riviä)  mdl_questionnaire_survey
Selaa: Main information about each quiz (9 riviä)  mdl_quiz

I have
* deleted these tables from the database
* deleted questionnaire module from mdl_modules
* deleted questionnaire directory and all subdirectories and files
* installed the module again.
There are no errors when I installed the questionnaire module again and all 18 tables exist. I compared the tables and settings with my other working installation and found no differences.

There must be an error in my moodle installation. Maybe I have to upgrade it.
PHP is 4.0.20
In reply to Ari Ranta

Vast: Re: Vast: Re: Can't create new survey

by Ari Ranta -
Sorry,
PHP is 4.3.10. and mySQL 4.0.20
In reply to Ari Ranta

Re: Vast: Re: Vast: Re: Can't create new survey

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
I've installed the module on about six different systems so far. Its worked on all of them.

Unfortunately, your links won't work for me. Can I see the structure (maybe use a screen dump) of your 'mdl_questionnaire' table, and your 'mdl_modules' table?

Also, 'mdl_quiz' is unrelated to these.

mike
In reply to Mike Churchward

Vast: Re: Vast: Re: Vast: Re: Can't create new survey

by Ari Ranta -
I didn't mean to paste active links, sorry.
I zipped three snapshots of the structures.
Thank You for your patience Mike Hymy

In reply to Ari Ranta

Re: Vast: Re: Vast: Re: Vast: Re: Can't create new survey

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Hi Ari -

Unfortunately, everything looks fine there...

Is there a way you can give me access to your site so that I can try creating a questionnaire? You can isolate a course somewhere and just give me access to that.

If you can, send me the details via email.

mike
In reply to Ger Tielemans

Re: Can't create new survey

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
Ger -

You say "I get on that page a death button Next and a button Finish, which closes Moodle". This sounds like you are accessing the phpESP management function directly. Why?

mike
In reply to Mike Churchward

Vast: Re: Can't create new survey

by Ari Ranta -
Mike,
When I try to add a new questionnaire I get the editing window normally. Finally I define new content by choosing create new because  I don't have any existing. When I click the continue button I jump to preview page and there is nothing but Next page button and Close this window button and the text "this is how the survey will look..." (except there isn't any survey). I know that I should get the window where I give the name to the survey and define questions but for some reason I jump to this page that doesn't lead anywhere. The two buttons don't work.
As I mentioned before this problem occur with Moodle 1.4.3 (2004083130) installation but not with 1.4.3+ and 1.4.2 nearly. Strange.
In reply to Ari Ranta

Re: Vast: Re: Can't create new survey

by Ger Tielemans -

No I went to the course, pasted a questionairre saw my old questinnaires, could choose and fill the settings and then arrived at that screen, instead of getting a kind of in-line quest.-menu..

Running out of time, after trying anything on 1.4.3, I had to fall back to the previous release of questionnaire because after upgrading - without accessing the old phpESP admin menu - I only get this next button and the "kill the session" button on the right. (it sees and shows me my old questionnaires, tanatalyzing sad)

Tomorrow people start to fill-in the questionnaire.
On March 8 the researcher wants to do the cross-table analysis. Would be great to have the new version ready on that moment so the owner of the questionnaire could do it from his own Moodle-course.

It also seems that the admin-menu has a little Altzheimer: You open the page and the fields are filled-in, when you close it again he forgots the titekl and the owner, you fill it again then you close it again and then it seems OK..

In reply to Ger Tielemans

Re: Vast: Re: Can't create new survey

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
What happens when you try to create a brand new one?

I just installed the questionnaire module from CVS in 1.4.3 (2004083130), and it worked like it should.

Steps I took:
1) Added questionnaire from activity drop-down.
2) Entered name 'Q1', summary, checked 'Create New' and clicked on the 'Continue' button. I left the other defaults (respond many, fullname, all, private).
3) At the General screen, gave it  a title and clicked 'Edit Questions'.
4) Entered two questions, clicked 'Reorder Questions'.
5) Clicked 'Save & Return'.
6) Clicked 'Save Changes'.

It all worked.

I can't really tell what you are doing, but it sounds like you are closing windows without saving?
In reply to Mike Churchward

Re: Vast: Re: Can't create new survey

by Ger Tielemans -
No  a clean install gave the same problem. I will try this later - after march 10 - on a fresh install, I cannot change the runtime now, I have a questionnaire running for 150 teachers.. (reimplemented in the previous release, with email copy security smile)
In reply to Ari Ranta

Re: Can't create new survey

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
You shouldn't use the direct path to phpESP any more. It will not set up surveys properly.

When you mention that you got to the screen that allowed you to select a template or create a new questionnaire, what did you do next?

In either case, you need to make a selection (eg. Create New Questionnaire), and them select the 'Continue' button at the bottom of the screen. That will take you to the next portion of the questionnaire creation.

If you click on a questionnaire link, you will open a preview window for that questionnaire. You cannot do any actions in a preview window.

Please confirm that this is what you are doing.
In reply to Ari Ranta

Re: Can't create new survey

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
One other thing, if you are using PHP V5, please make sure you have the setting
'register_long_arrays' set to 'on'. phpESP uses older global constructs, and requires this.

But, you're previous version wouldn't have worked either if this was the case.

In reply to Ari Ranta

Re: Can't create new survey - Problem Resolved!

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
It looks like the problem occured if 'secureforms' was set on in the site configuration.

I have reworked the code to get around this and commited it to CVS. If you are in a hurry, I have attached the file you need to update. Just copy the attached file into your '/mod/questionnaire' directory.

Thanks to Ari Ranta for giving me access to his site to debug this. 

mike
In reply to Mike Churchward

Re: Can't create new survey - Problem Resolved!

by Ger Tielemans -

New version works now also on my website, thanks Mike and Ari.
(so teachers cannow create their own questionnaires, only the analysis stays separate in the phpESP area?)

In reply to Mike Churchward

Re: Can't create new survey - Problem Resolved!

by Francesco Caviglia -
Hi Everybody,

I have problems too creating a new survey.
The problem is preciselly the same described by Ari Ranta.

My configuration:
moodle 1.4.3+
apache 1.3.33 - php 4.3.10 - mysql 4.1.9 - phpmyadmin 2.6.1
xp sp2

I have uninstalled the module, moved elsewhere the questionnaire directory, added the new manage_survey.php file, moved again the questionnaire directory into /mod.

Everything seems to work fine, but I can't create a new survey.
I'm a newbi Moodle user, maybe I'm missing some obvious step...

Any help appreciated

Francesco Caviglia

In reply to Francesco Caviglia

Re: Can't create new survey - Problem Resolved!

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
The solution to Ari's problems are described in this discussion. Have you tried those?

mike
In reply to Mike Churchward

Re: Can't create new survey - Problem Resolved!

by Francesco Caviglia -
After re-reading the discussion I guess the problem is this:
I installed version 1.2 and just added the new manage_survey.php file.
Probably I should have used all the most recent files in the CVS (it's something new to me).
Sorry for bothering you all.


In reply to Francesco Caviglia

Re: Can't create new survey - Problem Resolved!

by Francesco Caviglia -
Evething works after I learned how to download the CVS files for the module and also upgraded the whole Moodle to 1.4.4.
It's a GREAT module, thanks for developing it!
Francesco