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
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?
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?
Hi, Mike,
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?
- Moodle version 1.5.3+
- Questionnaire version 2006031702
- I have not recently updated either, though I tried reinstalling the module with the same module. Same result.
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?
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
mike
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
"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