Forums | Mahara Community

Support /
Export Portfolio Not Working


anonymous profile picture
Account deleted
Posts: 4

20 April 2010, 2:29

Dear Iñaki Arenaza

any suggest of real zip/unzip for Win32, I have no idea on that!

Thanks so much!!!

anonymous profile picture
Account deleted
Posts: 15

10 September 2010, 4:29

Hi Fox,

I followed Iñaki's instructions then Googled a zip/unzip command line exe and stumbled across this one:

http://stahlforce.com/dev/index.php?tool=zipunzip

I've got it working on our live server without any problems. Not sure if this is a recommended source, but it works a treat.

Mike

Iñaki Arenaza's profile picture
Posts: 253
Lino Oliveira's profile picture
Posts: 54

21 October 2010, 10:17

Hi

I use the zip and unzip comands suggested by Mike Wilson.

I can save files from Moodle to Mahara (thath also use zip command) but I got the same error message when I access the export menu in Mahara.

Some help?

Regards from Portugal

Lino

Dan Tina's profile picture
Posts: 20

05 October 2012, 5:50

Hi,

In case this helps anyone, the problem was resolved for me by simply making sure when specifying $cfg->pathtounzip and $cfg->pathtozip in config.php (assuming your Mahara installation is on Ubuntu / Linux), I didn't add the .exe extension for zip / unzip.  You should have it as follows:

$cfg->pathtounzip = '/usr/bin/unzip';
$cfg->pathtozip   = '/usr/bin/zip';

Dan

anonymous profile picture
Account deleted
Posts: 14

15 November 2012, 10:21

When we try to export a portfolio to a standalone HTML web site we get the error "failed to zip export file." If we try the Leap2A export we get the same error with return code -1073741515 at the end. We followed the instructions from Inaki Arenza to install the zip command in Mahara:

1. Downloaded the zip and unzip binaries from: http://gnuwin32.sourceforge.net/packages/zip.htm and http://gnuwin32.sourceforge.net/packages/unzip.htm

2. Extracted the zip files to C:\zip and C:\unzip

3. Added the following lines to the mahara config.php file

$cfg->pathtounzip = 'C:/unzip/bin/unzip.exe';

$cfg->pathtozip = 'C:/zip/bin/zip.exe';

4. Restarted Apache

Our environment is as follows:

Windows Server 2008 R2

MYSQL

PHP

Apache

Any help would be appreciated! Thanks, Diane

anonymous profile picture
Account deleted
Posts: 34

11 July 2011, 7:50

This might seem a silly question but why not use the php zip functions? I just had to download/deploy the zip .exes with the config addition on 1.4 release candidate.

At least I know what to look out for when upgrading our 1.3.5 installation to 1.4 next week (staff development will be out the way then).

François Marier's profile picture
Posts: 411

11 July 2011, 18:35

It's not a silly question at all. These functions are certainly more convenient, but the way they are designed (they are external C functions, outside of the reach of the PHP interpreter) is not ideal from a security point of view.

We have put some of our thoughts here:

  https://bugs.launchpad.net/mahara/+bug/785467

Cheers,

Francois

18 results