Open dajan opened 9 years ago
Hi Dajan,
What versions of Moodle and Mahara are you using?
Were you able to replicate this with any other users? Also, the assignment will not let you submit your mahara profile page or dashboard page, so make sure it's actually a brand new page that you're attempting to submit.
I notice this issue is from a few months ago, so you may also want to upgrade your plugins to see if there's still a problem.
Hello,
I have a similar problem. Version of Mahara assignment plugin is 2015021005. We run moodle 2.7 on ssl. Moodle can log into Mahara, but assignment submission plugin always show no available pages.
I do a test using moodle 2.7 working on http. Assignment submission plugin work well. I am not sure how to fix this problem.
--Jungle CHEN
If users can roam from Moodle to Mahara, but the assignment plugin shows no Mahara pages available, then my guess would be that the Curl install on the Moodle web server doesn't like the SSL certificate on the Mahara web server.
MNet (and the Mahara assignment plugin, which uses Mnet for webservices) requires the Mahara & Moodle servers to send HTTP requests to each other via Curl. The Curl install will have its own set of acceptable certificates, and depending on your server OS these may be somewhat out of date.
You could test this out by writing a quick PHP script to do a curl request for your Mahara server, and run it on your Moodle server. If that doesn't show any problems, then try running the same script on your Mahara server, requesting your Moodle server. http://php.net/manual/en/curl.examples.php
If you do find that the problem is Curl not liking the SSL certificates, then you have two options:
I am using this plugin since years successfully. Since two weeks I have exactly the same problem
You have no available Mahara pages or collections. Please click here to visit
for only ONE specific user - it is working for all others. Where should I look into?
Version: 3.4.1+ (2017111301.07) Release: 02.28.2018 PHP: 7.0.25-0ubuntu0.16.04.1 Mahara Version | 17.10.3
I had this same issue.
Moodle reports that there are no available Mahara pages or collections when a Mahara page or collection contains the control character 0B
Steps to reproduce:
Create the 0B character to your browser using the  ; (the output will be a rectangle )
Copy this character into the Mahara DB view table under the description field (make sure the owner is the same as the Moodle user who trying to retrieve the page)
Log into Moodle with user and try to retrieve pages
The reason for the issue is due to the xmlrpc_decode() function, when this function is converting XML data to native PHP types and if that XML data has the control character 0B then it returns no data)
1/ I have installed the new Mahara assignement plugin on a Moodle/Mahara couple already married. The authentication is made on Moodle and the users roams to Mahara without problems. The installation was made from the Install plugin page on Moodle (no download or git install)
2/ I have created a new Assignement with the Mahara type
3/ I logged as a student. This student can roam to Mahara from Moodle
4/ As the same student I open the assignment and try to submit a Mahara page
Attended behaviour --> A list of Collections / Pages to submit to Moodle Actual behaviour --> Error message "ePortfolio Gymnyon You have no available Mahara pages or collections. Please click here to visit "ePortfolio Gymnyon" and create a new one."
5/ Clicking on the link provided in the error message roams the student to Mahara and all the eP's pages and collections are visible and accessible.
-dajan