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

Login into Mahara-App with "Mahoodle" (Token)

Stefanie Berger's profile picture
Stefanie Berger
Posts: 25
12 January 2019, 3:34

Hello,

We've a Moodle (version 3.5.3+) and a Mahara (version 18.10) connected via mnet.

I want to log in to the Mahara App and get two error messages:
1 "Unable to login to server. Is the server address correct?" (--> it is correct)
Two. "Unable to sync date with the server."

If I want to log into the app as admin via local login, I only get the 2nd error message. Even as an admin I can't use the app.

I have activated the web service and the "Rest" protocol in Mahara. Also Mahara Mobile API and there user token access.

Mahara Webservice 1.png

 

...

Mahara Webservice 2.png

 

I use the iOS app on my iPhone.

Do you have any idea why this might be?

Stefanie

Kristina Hoeppner's profile picture
Kristina Hoeppner
Posts: 5136
14 January 2019, 8:31

Re: Login into Mahara-App with "Mahoodle" (Token)

Hi Stefanie,

Can you please disable the web services that you activated and do the setup via Admin menu -> Extensions -> Plugin administration -> Mobile API?

https://manual.mahara.org/en/18.10/administration/extensions.html#module-mobile-api

That is the best way to ensure that all settings are made correctly.

Was the second error message "Unable to sync date with the server." or was "date" supposed to be "data"?

Cheers

Kristina

 

Stefanie Berger's profile picture
Stefanie Berger
Posts: 25
14 January 2019, 23:06

Re: Login into Mahara-App with "Mahoodle" (Token)

Dear Kristina,

thank you so much for the tip.

I've deactivated the webservice and then it automatically configured it via"Extensions -> Plugin administration -> Mobile API".

But the result is the same.

I've done the "Web service test client" with the token of a user

Protocol: REST
Authentication type: Token
Service: Mahara Mobile API (Token)
Functions: module_mobileapi_sync

and got this results:

 array (
'url' => 'https://mahara.hu-berlin.de/webservice/rest/server.php?wstoken=ee0d424df53d35216b06f003fcc7efb3&wsfunction=module_mobileapi_sync&alt=json',
'results' =>
array (
'error' => true,
'error_number' => 500,
'error_name' => 'Ungültiger externer API Parameter: key: notifications - Ungültiger Parameterwert entdeckt; die Ausführung kann nicht fortgesetzt werden. : Vorausgesetzter Schlüssel fehlt in einzelner Struktur: lastsync',
'error_class' => 'WebserviceParameterException',
'error_message' => 'Ungültiger externer API Parameter: key: notifications - Ungültiger Parameterwert entdeckt; die Ausführung kann nicht fortgesetzt werden. : Vorausgesetzter Schlüssel fehlt in einzelner Struktur: lastsync',
'error_rendered' => 'Ungültiger externer API Parameter: key: notifications - Ungültiger Parameterwert entdeckt; die Ausführung kann nicht fortgesetzt werden. : Vorausgesetzter Schlüssel fehlt in einzelner Struktur: lastsync',
),
'inputs' =>
array (
'blogs' =>
array (
),
'folders' =>
array (
),
'notifications' =>
array (
'types' =>
array (
),
),
'tags' =>
array (
),
'userprofileicon' =>
array (
),
),
)

Which key versus which parameter in which structure could be meant?

All the best and thanks

Stefanie

Kristina Hoeppner's profile picture
Kristina Hoeppner
Posts: 5136
18 January 2019, 9:19

Re: Login into Mahara-App with "Mahoodle" (Token)

Hello Stefanie,

Thank you for the additional information. We'll see if we can replicate the issue. The account that you are planning to log into, is it only connected to MNet or is there another authentication method in play?

Cheers

Kristina

 

Stefanie Berger's profile picture
Stefanie Berger
Posts: 25
29 January 2019, 2:17

Re: Login into Mahara-App with "Mahoodle" (Token)

Thanks a lot, Kristina,

you're right, our users log into Moodle and from there they get access to Mahara via MNET.

 Best regards
Stefanie

Kristina Hoeppner's profile picture
Kristina Hoeppner
Posts: 5136
13 February 2019, 20:49

Re: Login into Mahara-App with "Mahoodle" (Token)

Hi Stefanie,

Sorry for the long wait. I can use the mobile app token successfully on my Moodle to Mahara, and it's a Moodle 3.6. The Moodle version shouldn't matter.

I did see in one of your screenshots, the one that shows the service groups, that you are missing a whole bunch that are needed for the mobile API. In my Mahara, I have the following:

module_mobileapi_sync, module_mobileapi_get_blogs, module_mobileapi_get_folders, module_mobileapi_get_notifications, module_mobileapi_get_tags, module_mobileapi_get_user_profile, module_mobileapi_get_user_profileicon, module_mobileapi_upload_file, module_mobileapi_upload_blog_post

You only seem to have module_mobileapi_get_blogs configured. I'm afraid I don't know why you wouldn't have the other service groups set up as well. When I'm on a clean install of Mahara, I do have all these service groups available by default and thus don't have an explanation why they are not there for you. Did you by any chance remove them manually at some point?

Cheers

Kristina