Problem with wiki: "Notice: Trying to get property of non-object in"

Problem with wiki: "Notice: Trying to get property of non-object in"

by Josep M. Fontana -
Number of replies: 4
I posted this message in the 'general problems forum' but I haven't obtained any answers. Perhaps people around this forum that don't read the other forum can help me find a solution for this problem.

This problem doesn't arise with dfwiki (which we also have installed) but unfortunately the colleague that noticed this problem needs the function 'student' so that each student can edit individually and that apparently is not available in dfwiki yet. So here's the problem my colleague has noticed:

---- quote ----
while adding a wiki to a course I received this error message:
Notice: Trying to get property of non-object in
/extern/web/httpd/htdocs/mellange/mod/wiki/view.php on line 255

Notice: Trying to get property of non-object in
/extern/web/httpd/htdocs/mellange/mod/wiki/view.php on line 317
...

Notice: Trying to get property of non-object in
/extern/web/httpd/htdocs/mellange/mod/wiki/view.php on line 354
No entries have been created for this wiki.

http://parles.upf.es/mellange/mod/wiki/view.php?id=216

Do you know why?

---- end of quote---

No, I don't know why. Does anybody of you?
Thanks in advance.

Josep M.
Average of ratings: -
In reply to Josep M. Fontana

Re: Problem with wiki: "Notice: Trying to get property of non-object in"

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Josep,

I was just trying to solve another problem in the "old" wiki, when I saw your post so I've take a quick look to such lines under 1.5.3+ and I cannot see too much logic for those errors in that version. Then, I've tried to connect to the server you posted above to see its version but it seems to be unreachable now.

Is it, perhaps, some old Moodle version? I cannot see such Notices in my server...

Ciao smile
In reply to Eloy Lafuente (stronk7)

Re: Problem with wiki: "Notice: Trying to get property of non-object in"

by Josep M. Fontana -
Hola Eloy,

Thanks for looking into this. I was getting desperate and I was ready to reinstall the whole Moodle again. This problem happens only in one of the three installations of Moodle we have in our server:

http://parles.upf.es/mellange/


The version in this particular installation is:


Moodle 1.5.3+ (2005060230)

Again, thanks a lot for your help.

Josep M.
In reply to Josep M. Fontana

Re: Problem with wiki: "Notice: Trying to get property of non-object in"

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Josep,

I've created one student wiki (without viewing any of the notices you posted above). Then I've used it with two different students and it seems to work correctly.

I'm using latest Moodle 1.5.3+ (daily built) so, perhaps, there was some difference between your 1.5.3+ and the current one at wiki level.

If would suggest you to update to the latest 1.5.3+ available from http://download.moodle.org to check if it's enough to solve that problem.

Ciao smile
In reply to Eloy Lafuente (stronk7)

Re: Problem with wiki: "Notice: Trying to get property of non-object in"

by Josep M. Fontana -
Thanks Eloy. I guess I'll have to reinstall (a bit of a pain with so many non-standard add-ons).

By the way, I noticed that the problems I mention don't appear for the student. When I view the wiki as a student, none of the error messages appear. Actually, I've noticed something else, I cannot view or edit what students do in the wiki (if it is created as 'student' wiki). Is this supposed to be this way? I thought the 'teacher' was always able to access the wikis in the course, whether they have been created as 'group' or 'student' wikis.

Josep M.