Forums | Mahara Community

Support /
Export Portfolio HTML Not Working


Chris Kenniburg's profile picture
Posts: 34

22 October 2010, 13:48

I am running Ubuntu and the HTML Portfolio export is not working.  It seems to get hung up on "Preparing Comment" and it just hangs there in the progress bar.   The Leap export works fine and it generates the zip file.

Is there a server package I need to install for Ubuntu to use the HTML export feature?

anonymous profile picture
Account deleted
Posts: 214

25 October 2010, 4:03

Hi Chris,

You don't mention what versions you're using of Mahara, or Ubuntu. This could be helpful.

Could you check your apache error log - this will almost certainly have some errors which can give us some clue. If you could paste them here, then that we should be able to help more -- and hopefully improve Mahara for other users.

Andrew

Chris Kenniburg's profile picture
Posts: 34

26 October 2010, 7:13

Hello Andrew,

Sorry, I am running Ubuntu 8.04 and the latest Mahara that I downloaded friday.

Here are some error codes I am seeing in the logs:

[Tue Oct 26 08:06:36 2010] [error] [client 10.99.16.90] [WAR] 27 (lib/mahara.php:1098) require_once(/var/www/community/artefact/comment/export/html/lib.php) [function.require-once]: failed to open stream: No such file or directory, referer: http://community.dearbornschools.org/export/
[Tue Oct 26 08:06:36 2010] [error] [client 10.99.16.90] Call stack (most recent first):, referer: http://community.dearbornschools.org/export/
[Tue Oct 26 08:06:36 2010] [error] [client 10.99.16.90]   * log_message("require_once(/var/www/community/artefact/comment/e...", 8, true, true, "/var/www/community/lib/mahara.php", 1098) at /var/www/community/lib/errors.php:444, referer: http://community.dearbornschools.org/export/
[Tue Oct 26 08:06:36 2010] [error] [client 10.99.16.90]   * error(2, "require_once(/var/www/community/artefact/comment/e...", "/var/www/community/lib/mahara.php", 1098, array(size 9)) at /var/www/community/lib/mahara.php:1098, referer: http://community.dearbornschools.org/export/
[Tue Oct 26 08:06:36 2010] [error] [client 10.99.16.90]   * safe_require() at /var/www/community/lib/mahara.php:1098, referer: http://community.dearbornschools.org/export/
[Tue Oct 26 08:06:36 2010] [error] [client 10.99.16.90]   * safe_require("export", "html/comment", "lib.php", "require_once", true) at /var/www/community/export/html/lib.php:141, referer: http://community.dearbornschools.org/export/
[Tue Oct 26 08:06:36 2010] [error] [client 10.99.16.90]   * PluginExportHtml->export() at /var/www/community/export/download.php:102, referer: http://community.dearbornschools.org/export/
[Tue Oct 26 08:06:36 2010] [error] [client 10.99.16.90] , referer: http://community.dearbornschools.org/export/
[Tue Oct 26 08:06:36 2010] [error] [client 10.99.16.90] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/var/www/community/artefact/comment/export/html/lib.php' (include_path='/var/www/community/lib/:/var/www/community/lib/pear/:.:/usr/share/php:/usr/share/pear') in /var/www/community/lib/mahara.php on line 1098, referer: http://community.dearbornschools.org/export/

Chris Kenniburg's profile picture
Posts: 34

26 October 2010, 7:53

I went in and apparently the export file that is missing is indeed missing in the artefact/comment/export/html directory.

I downloaded the mahara.tar.gz file.  I am goign to try another download to see if it is just missing from my download.

Chris Kenniburg's profile picture
Posts: 34

26 October 2010, 11:08

When I downloaded other archives of Mahara, there was no html export folder located here:

/artefact/comment/export/html/lib.php

I just had a leap folder.  Is this a separate plugin that is needed or something the server is supposed to create when activated or installing Mahara?

Thanks,

Chris

anonymous profile picture
Account deleted
Posts: 808

26 October 2010, 17:38

Hi Chris,

That file (/artefact/comment/export/html/lib.php) doesn't exist, but Mahara shouldn't die like that when it doesn't exist.

Looking at your errors I think it's caused by a problem with a replacement php 'realpath' function in Ubuntu 8.04; see this comment:

 http://php.net/manual/en/function.realpath.php#82770

I've filed a bug report at https://bugs.launchpad.net/mahara/+bug/667051 and we'll make sure there's some kind of fix for this in the next release.

Chris Kenniburg's profile picture
Posts: 34

26 October 2010, 18:13

Is there a fix I can apply in the meantime?  Would updating to Ubuntu 10.10 help or fix this?

anonymous profile picture
Account deleted
Posts: 808

26 October 2010, 20:40

In lib/mahara.php, around line 1082, find this line:

    if (!$realpath = realpath($fullpath)) {

Directly above it, add this:

    if (!empty($nonfatal) && !file_exists($fullpath)) {
        return false;
    }

That should fix the problem.

Chris Kenniburg's profile picture
Posts: 34

27 October 2010, 6:37

AWESOME!  That did the trick!  Thank you very much.

anonymous profile picture
Account deleted
Posts: 8

06 December 2010, 2:52

Hello guys,

 

Anyone can help me with my previous question??

I've been doing some testing, when I export a single view to HTML, the page has most of the designs except for theme colors

but when I export an entire profile, or a collection, the page of the profile/collection misses all formatting. Plus, for the collection, the several tabs listed at the top (representing different views) don't really work !!! =/

Is anyone facing the same problem?? Is there a way to fix this?

Regards,

Lama

11 results