Illustration of connected portfolio elements

Portfolios for your
learning community

Try out Mahara

Create portfolios

Using Mahara, students and staff create their personal learning stories by uploading evidence of activities they have participated in, and embedding publicly accessible content they have previously put online. They can write reflections on their experiences that frame this evidence, map it to competencies or registration requirements, and provide necessary context.

Mahara can be used for many different portfolio purposes, such as study, professional development, work-integrated learning, assessment, showcase and presentation, and employability.

Learn about the portfolio options

Illustration of a person with their portfolio
Illustration of a paper airplane representing sharing

Share work

Mahara allows portfolios to be shared flexibly with one person, a specific group of people, or the entire world. Access can be further restricted to a particular time frame or just within an assessment task.

Find out about sharing portfolios

Engage with others

Mahara makes it easy to comment and give feedback. Portfolios can also be submitted to learning management systems via LTI (Learning Tools Interoperability) for marking.

Groups in Mahara allow people to create portfolios collaboratively and engage in forum discussions.

Learn about collaborating in Mahara

Illustration of a group of people collaborating
Illustration of a podcast logo

Listen to portfolio stories

In our podcast 'Create. Share. Engage.' portfolio practitioners, researchers, learning designers, and portfolio authors share their journey. Learn how they navigate the many different facets of portfolios in general, and Mahara specifically.

Listen on the podcast website or in your favourite app

Mahara Community

After Mahara upgrade user cant access portfolio page

bernie carpenter's profile picture
bernie carpenter
Posts: 13
17 August 2016, 13:22

Recently upgraded to Mahara version 16.04.3, running upon MySQL Server Version 5.5.50-Oubuntu0.14.04.1 on an ubuntu server

The reason for the upgrade was because of an issue I had with another recent upgrade resulting in pages becoming locked : solution here : https://mahara.org/interaction/forum/topic.php?id=7584

 

My issue now is the Portfolio Page for a user (me) is throwing errors (Http error 500). 

The user's pages are still there, and using the drop down I can access other functionality (for example the Collections Tab), however without the Portfolio Tab I can't create new pages.

I tried logging in as another user (admin) and found that the admin user has no issues  -everything works fine

I am wondering if the issue has something to do with the number of pages the user has (I have at least a few hundred pages) Is there, perhaps, some kind of limit I have reached? I am not out of server space and the user has not yet reached the File Quota.

Any ideas where to start on this ? Maybe I should roll back to a previous version ?

bernie carpenter's profile picture
bernie carpenter
Posts: 13
17 August 2016, 15:30

Re: After Mahara upgrade user cant access portfolio page

Anticipating someone's next question ... Error message from Apache log

 

[Wed Aug 17 13:25:59.604920 2016] [:error] [pid 3108] [client 10.29.6.2:52055] PHP Fatal error: Call to undefined function group_homepage_url() in /var/www/mahara/lib/view.php on line 3666, referer: http://web1.muirfield-h.schools.nsw.edu.au/mahara/user/view.php?id=3

Aaron Wells's profile picture
Aaron Wells
Posts: 896
17 August 2016, 18:45

Re: After Mahara upgrade user cant access portfolio page

Hi Bernie,

Thanks for posting the error message! We've had issues with the "group_homepage_url()" function being out of scope before. It's due to some reorganization of the code that we did in order to improve performance. Basically, there were a lot of library scripts being unnecessarily loaded for every page, and we removed them where they weren't needed. However, there have been a few cases where it turned out that the script did need to be loaded. I haven't encountered this particular error yet, but it sounds like it's of that type.

I'll file a Launchpad bug about this and see if I can pin down how to replicate it. Based on its location in the code, I'd guess that it happens if you're looking at the "My Pages & Collections" block for a user who has at least one page submitted to a group.

The quick and dirty fix is to add this to line 3569 of htdocs/lib/view.php (i.e., towards the top of the "get_myviews_data" function, below the line that reads "global $USER"):

        require_once(get_config('libroot') . 'group.php');

Cheers,

Aaron

bernie carpenter's profile picture
bernie carpenter
Posts: 13
18 August 2016, 12:32

Re: After Mahara upgrade user cant access portfolio page

Thanks Aaron for getting back to me. You are correct, I do have a number of pages submitted to groups ... as well as tons and tons of personal pages.

Anyway, the Quick and Dirty worked a treat. I'm back in business.

Cheers.

Aaron Wells's profile picture
Aaron Wells
Posts: 896
18 August 2016, 16:09

Re: After Mahara upgrade user cant access portfolio page

Hi Bernie,

I've filed a Launchpad bug about this, but I wasn't able to replicate it easily. Under normal circumstances, the "multirecipientnotification" module should load lib/groups.php, which is where that group_homepage_url() function gets defined.

Would you mind answering these questions for me?

1. If you go to Administration -> Extensions, and scroll down to the "Modules" section, does the multirecipientnotification module show up as installed and enabled?

2. What version of Mahara were you upgrading from? And what was the one that you were upgrading from before then?

We tried to put in upgrade code that would force the multirecipient module to get installed and enabled, but I'm wondering if maybe we missed some upgrade sequence.

Cheers,

Aaron

bernie carpenter's profile picture
bernie carpenter
Posts: 13
21 March 2017, 14:18

Return of the Missing Portfolio.

Hi again Aaron,

Sorry I didn't reply to your request ages ago ... I didn't notice it until I just revisited this site after my latest upgrade.

Anyway ... the problem came back!

 

We just upgraded to 16.10.2 and I lost access to my portfolio again.

 

Using your suggestion I had a look at the multirecipientnotification module and found it was greyed out in the admin control panel. As admin I clicked on it and received the response (something like) "multirecipientnotification is now visible" (it went from grey to black writing). I guess it was off and I turned it on?

 

Anyway, that did the trick. Portfolios look fine again now.

Hope this helps.