MaharaProject / moodle-assignsubmission_mahara

Old, unmaintained Mahara assignment submission plugin for Moodle
https://moodle.org/plugins/view/assignsubmission_mahara
4 stars 10 forks source link

No pages or collection found #3

Open dajan opened 9 years ago

dajan commented 9 years ago

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

upats commented 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.

junglechen commented 8 years ago

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

agwells commented 8 years ago

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

agwells commented 8 years ago

If you do find that the problem is Curl not liking the SSL certificates, then you have two options:

  1. Add your web server's certificate authority to Curl's list of trusted certificates. I can't offer any specific advice on how to do this, except to Google it.
  2. Tell Curl to ignore the certificate problems, by setting the CURLOPT_SSL_VERIFYPEER curl option to false. This is less secure, but easier to do (though you will need to track down the Curl code in Moodle and/or Mahara to find the right place for it). For MNet, SSL certificate verification is actually not strictly necessary, because Mnet uses its own symmetric keys to encrypt everything. But the Curl functions used by Mnet are also used throughout Mahara & Moodle, so this will make your whole application less secure.
hermannkm commented 6 years ago

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

Kevin-Hipwell commented 5 years ago

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:

  1. Create the 0B character to your browser using the &#11 ; (the output will be a rectangle )

  2. 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)

  3. 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)