Portfolio Export from Moodle fails

Bug #600873 reported by Dan Marsden
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Undecided
Dan Marsden

Bug Description

When exporting a file from the Assignment mod in Moodle 2.0 to Mahara via the portfolio plugin I get the following error in Moodle:
Failed to start communication with remote server: Payload not encryptedERROR 1:
1:Payload not encrypted

This seems to occur as the function send_content_ready returns an empty response...

tracing this further it seems to die in Mahara when the following call is made in add_artefacts() in import/file/lib.php

                $id = ArtefactTypeFile::save_file(
                    $uzd . $f->actualfilename,
                    $data,
                    $this->get('usrobj'),
                    true
                );

I haven't had a chance to see why that is failing - might get a chance on the weekend to look closer.

Tags: leap2a
Revision history for this message
Dan Marsden (danmarsden) wrote :

traced slightly further to function new_file in artefact/file/lib.php

this call fails:
        if ($archive = ArtefactTypeArchive::new_archive($path, $data)) {

Revision history for this message
Dan Marsden (danmarsden) wrote :

issue occurs if PHP 5 is installed - new version of Pear class added here:
http://gitorious.org/mahara/mahara/commit/613ae7c581c5976e69f95a526a3c0fb54d24f8d3
calls the new file PEAR5.php if php is installed and certain functions are being called (like is_tar)

fixed by adding the PEAR5.php file to master.

Changed in mahara:
assignee: nobody → Dan Marsden (danmarsden)
status: New → Fix Committed
milestone: none → 1.3.0
tags: added: leap2a
Changed in mahara:
status: Fix Committed → Fix Released
Revision history for this message
Richard van Iwaarden (richardvi) wrote :

I reported this again here: https://tracker.moodle.org/browse/MDL-52112

Why is this bug affecting us with Moodle 3.11.2+ (Build: 20210812) and Mahara 21.04.0. Any ideas? Are we using the wrong PHP version? We are running PHP 7.4

Revision history for this message
Robert Lyon (robertl-9) wrote :

Hi Richard,

Looking at https://moodle.org/mod/forum/discuss.php?d=231094 it sounds like the same error that you are getting.

Could it be a firewall / proxy issue between your Moodle and Mahara sites?

Cheers
Robert

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.