Moodle

Nwiki Fatal error: Call to a member function page_name() on a non-object in/www/html/mood/restringidos/moodle/mod/wiki/lib/moodle/persistence_manager.php on line 336

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.1
  • Fix Version/s: None
  • Component/s: Wiki (2.x)
  • Labels:
    None
  • Environment:
    Linux
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE

Description

I have upgraded directly from 1.7.2 to 1.9.1 pls Nwiki and almost all working fine.

  • The same error reported by Paul when editing a very huge table (100 rows and 3 columns but the html code seem not very clean: each row is a table). When I try to save I get:
    o Fatal error: Call to a member function page_name() on a non-object in/www/html/mood/restringidos/moodle/mod/wiki/lib/moodle/persistence_manager.php on line 336
    o But the other pages of that wiki work fine

Activity

Hide
Greg Kraus added a comment -

We also get this error with the following conditions:

  • 1.9.1+ (Build: 20080625)
  • create a wiki with Student Mode = Students in Group and Group Mode = Separate Groups

The error occurs when you try to edit the wiki content. The problem goes away if you set Group Mode = No Groups

The problem also goes away on our 1.9.2+ (Build: 20080723) development server

Show
Greg Kraus added a comment - We also get this error with the following conditions:
  • 1.9.1+ (Build: 20080625)
  • create a wiki with Student Mode = Students in Group and Group Mode = Separate Groups
The error occurs when you try to edit the wiki content. The problem goes away if you set Group Mode = No Groups The problem also goes away on our 1.9.2+ (Build: 20080723) development server
Hide
Ellen Marie Murphy added a comment -

We also get this error:

We are running Moodle 1.9 without any issues
We upgraded our wiki to Nwiki and got the following errors:

  • Can't see any of the wiki pages.
  • error in log " File does not exist: /var/www/moodle/mod/mod, referer: http://moodle.sage.edu/mod/wiki/view.php?id=855"
  • When you click on "history" Fatal error: Call to a member function page_name() on a non-object in .../persistence_manager.php on line 239
  • All the data seems to be in the database.

Any help would be appreciated.

We have been trying to get this to work on a test box as well and we keep getting the error "ewiki_migrate.php on line 721". It must of happened originally and we didn't notice.

We've found no solution.

Show
Ellen Marie Murphy added a comment - We also get this error: We are running Moodle 1.9 without any issues We upgraded our wiki to Nwiki and got the following errors:
  • Can't see any of the wiki pages.
  • error in log " File does not exist: /var/www/moodle/mod/mod, referer: http://moodle.sage.edu/mod/wiki/view.php?id=855"
  • When you click on "history" Fatal error: Call to a member function page_name() on a non-object in .../persistence_manager.php on line 239
  • All the data seems to be in the database.
Any help would be appreciated. We have been trying to get this to work on a test box as well and we keep getting the error "ewiki_migrate.php on line 721". It must of happened originally and we didn't notice. We've found no solution.
Hide
Mark Webster added a comment -

We also see this issue on release 1.9.3 (not plus) with nWiki 2008040401. The error refers to the if statement in this code (line 338):

function get_last_wiki_page_version($wikipage,$groupid,$ownerid){
if ($record = $this->wikipersistor->get_last_wiki_page_version
($wikipage->page_name(), $wikipage->dfwiki(), $groupid, $ownerid)){ return $record; }
return false;

}

The version at the top of the file persistence_manager.php is:
@version $Id: persistence_manager.php,v 1.53 2008/01/10 10:59:02 pigui Exp $

Show
Mark Webster added a comment - We also see this issue on release 1.9.3 (not plus) with nWiki 2008040401. The error refers to the if statement in this code (line 338): function get_last_wiki_page_version($wikipage,$groupid,$ownerid){ if ($record = $this->wikipersistor->get_last_wiki_page_version ($wikipage->page_name(), $wikipage->dfwiki(), $groupid, $ownerid)){ return $record; } return false; } The version at the top of the file persistence_manager.php is: @version $Id: persistence_manager.php,v 1.53 2008/01/10 10:59:02 pigui Exp $

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: