questionnaire woes

questionnaire woes

de Mark Marino -
Número de respuestas: 11
Hi, I've been using questionnaire for a while now without problems, but recently I've been getting this error message after I move to the second page of setting up a new questionnaire:

Notice: Trying to get property of non-object in /home/.booty/writerresponse/writerresponsetheory.org/moodle/lib/weblib.php on line 1936

Notice: Trying to get property of non-object in /home/.booty/writerresponse/writerresponsetheory.org/moodle/lib/weblib.php on line 1940

Notice: Trying to get property of non-object in /home/.booty/writerresponse/writerresponsetheory.org/moodle/lib/weblib.php on line 1940

Can anyone help me debug this?
I've already tried deleting all of my qestionnaires and reinstalling the module.

Thank you,
Mark Marino
Promedio de valoraciones: -
En respuesta a Mark Marino

Re: questionnaire woes

de Mike Churchward -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers Imagen de Testers
Standard questions...

1. What version of Moodle?
2. What version of Questionnaire?
3. Have you recently updated either Moodle or Questionnaire?

Can you still actually create the questionnaire even though those messages are there?

En respuesta a Mike Churchward

Re: questionnaire woes

de Mark Marino -
Hi, Mike,

  1. Moodle version 1.5.3+
  2. Questionnaire version 2006031702
  3. I have not recently updated either, though I tried reinstalling the module with the same module. Same result.
I seem to be able to create a questionnaire, but then when I look at it after making it, I see just a blank page.

I also get this message: Version mismatch: questionnaire can't downgrade 2006031702 -> 2005062701 !

However, the errors I listed previously are the same as before.

Thoughts?

En respuesta a Mark Marino

Re: questionnaire woes

de Mike Churchward -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers Imagen de Testers
That message is telling you that the code base of the questionnaire you now have on your system is 2005062701, even though the system (and database) thinks you have 2006031702. You must have downloaded an older version of the questionnaire on top of your existing one. You need to try to get back to the version you had.

mike
En respuesta a Mike Churchward

Re: questionnaire woes

de Mark Marino -
Thanks, Mike,

Where can I find that version? I don't seem to have it saved on my system? Is there a repository of old versions?

What if instead I downloaded and installed the latest version? How do I tell the database what version I using, or would I lose access to my old questionnaires if I do that (i.e. never switch modules mid-course?)?

Thank you,
Mark
En respuesta a Mike Churchward

Re: questionnaire woes

de Mark Marino -
Okay, Mike,

I've uploaded a newer version of the questionnaire and no longer get that message. Currently I'm using: 2007010801.

I tried to add a new questionnaire and received the same three error messages that appear at the top of this thread.

Let me know what to try next.

Best,
Mark
En respuesta a Mark Marino

Re: questionnaire woes

de Mike Churchward -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers Imagen de Testers
The fact that you did have mismatched code worries me... I don't know what else may be out of whack.

The questionnaire has been updated quite a bit since 1.5, and now works on 1.6 and 1.7. What else happens when you get those warning messages?

mike
En respuesta a Mike Churchward

Re: questionnaire woes

de Mark Marino -
Good news, Mike,

I can now create questionnaires. I still get that error (at the top of the thread, the three lines), when I move from the first page of creating a questionnaire to the second, but that does not keep me from being able to see the questionnaire. I'm going to try to add my questionnaire's back now.

Any idea on how to track down the source of the error or the missing files being called?

Best,
mark
En respuesta a Mark Marino

Re: questionnaire woes

de Mark Marino -
Oops, spoke to soon,

Now, I can see my questionnaire's but I now see:
Notice: Undefined variable: strchecked in /home/.booty/writerresponse/writerresponsetheory.org/moodle/lib/weblib.php on line 766
next to all check boxes on the quiz.

Is there any way to find out which line is adding /home/.booty/ to the start of these calls. That seems to lead to a USC page. Something tells me, I only want it to call: writerresponsetheory.org/moodle/lib/weblib.php

I appreciate any thoughts.
best,
Mark
En respuesta a Mark Marino

Re: questionnaire woes

de Mike Churchward -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers Imagen de Testers
First off, make sure you have 'debug' turned off in your system variable settings (from your admin page). The errors you are seeing are PHP warnings, which may not be causing any problems.

Second '/home/.booty' is the directory your site is loaded on (at least, that's what your config file is telling it). That should be correct unless something else if very wrong with your installation.

mike
En respuesta a Mike Churchward

Re: questionnaire woes

de Mark Marino -
Thanks, Mike,

Turning off debug got rid of the error messages.

However, your second comment troubles me. /home/.booty is not where the site is loaded. Moodle is loaded on: http://writerresponsetheory.org/moodle. I'm using it to teach a course at /home/.booty. Recently, the students have begun working on a wiki on the moodle. Is there any way they could've added a link there, in their profiles, or in some other module that could be making the system think that the root should be /home/.booty? If this is too far off topic, should I move this question to one of the other forums?

best,
Mark
En respuesta a Mark Marino

Re: questionnaire woes

de Mike Churchward -
Imagen de Core developers Imagen de Particularly helpful Moodlers Imagen de Plugin developers Imagen de Testers
Mark -

"http://writerresponsetheory.org/moodle" is your web address of your Moodle installation. It also resides in a physical location on your server defined by the disk path. That is "/home/.booty...". When PHP includes a file, it uses the physical path instead of the web URL. Your site wouldn't be working if this path was incorrect.

mike