← Back to team overview

mahara-contributors team mailing list archive

[Bug 1099811] Re: group files error after upgrade

 

I've been getting a similar problem on a client's site.

When a new page is created within a group, the 'group' is set, but the
'owner' field is not set (I've traced through lib/view.php: function
View::_create() and there is nowhere that I can see that makes any
attempt to set the 'owner' field for group pages).

When you try to add anything to the page, the function
activity_occurred('watchlist', $data) is called (line 1369 of view.php,
in function process_changes). This then reaches
ActivityTypeWatchlist::__construct(), which throws an exception if the
'owner' field is not set.

I'm afraid I'm not yet very familiar with the internals of Mahara (I am
a Moodle developer most of the time), so I'm not quite sure which of
these two functions are behaving incorrectly (the View::_create()
function for not setting the 'owner' or the
ActivityTypeWatchlist::__construct() function for expecting it to be
set).

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1099811

Title:
  group files error after upgrade

Status in Mahara ePortfolio:
  New

Bug description:
  Hi,
  I upgraded to Mahara 1.6.2 on two sites. When upgrading both sites I had to alter the database to remove a latin1 collation somewhere in the tables, as outlined here - https://mahara.org/interaction/forum/topic.php?id=1770 The upgrade then ran and appeared to work, but I discovered a couple of closely related issues. In the first site I'm getting an error whenever any user tries to add a file to a page within a group (see screenshot). In the second test site the Files tab in groups is missing completely.

  My best guess is that a table or index has either been corrupted or
  was missed from the upgrade - but I'm stumped about how to proceed in
  fixing this. Any suggestions would be welcome. The page not found
  issue is the priority.

  Thanks, Gordon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1099811/+subscriptions


References