Importing Leap2A file throws an error

Bug #1646628 reported by Niranjan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Invalid
Undecided
Unassigned

Bug Description

Version : 17:04
Browser : FF

While testing this bug https://bugs.launchpad.net/mahara/+bug/1632913 I came across another, here it is

Steps to reproduce:

1) Create a page and add few comments to the page
2) Now Export it as a Leap2A file
3) Login as another user
4) Now try to import the file that has been exported earlier at step 2

Result: The page gets imported but it displays few warning messages as below

[WAR] 4a (artefact/annotation/import/leap/lib.php:0) Declaration of LeapImportAnnotation::setup_view_relationships(SimpleXMLElement $entry, PluginImportLeap $importer) should be compatible with LeapImportArtefactPlugin::setup_view_relationships(SimpleXMLElement $entry, PluginImportLeap $importer, $strategy, array $otherentries)

Call stack (most recent first):

    log_message("Declaration of LeapImportAnnotation::setup_view_re...", 8, true, true, "/home/niranjanbandi/code/mahara/htdocs/artefact/an...", 0) at /home/niranjanbandi/code/mahara/htdocs/lib/errors.php:521
    error(2, "Declaration of LeapImportAnnotation::setup_view_re...", "/home/niranjanbandi/code/mahara/htdocs/artefact/an...", 0, array(size 10)) at /home/niranjanbandi/code/mahara/htdocs/lib/mahara.php:1569
    require_once() at /home/niranjanbandi/code/mahara/htdocs/lib/mahara.php:1569
    safe_require("import", "leap/annotation", "lib.php", "require_once", true) at /home/niranjanbandi/code/mahara/htdocs/import/leap/lib.php:440
    PluginImportLeap->create_strategy_listing() at /home/niranjanbandi/code/mahara/htdocs/import/leap/lib.php:153
    PluginImportLeap->build_default_load_mapping() at /home/niranjanbandi/code/mahara/htdocs/import/leap/lib.php:169
    PluginImportLeap->process(1) at /home/niranjanbandi/code/mahara/htdocs/import/index.php:243
    import_submit(object(Pieform), array(size 3)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:543
    Pieform->__construct(array(size 5)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:164
    Pieform::process(array(size 5)) at /home/niranjanbandi/code/mahara/htdocs/lib/mahara.php:4799
    pieform(array(size 5)) at /home/niranjanbandi/code/mahara/htdocs/import/index.php:167
    print_upload_form() at /home/niranjanbandi/code/mahara/htdocs/import/index.php:61

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Can you please upload the Leap2A file just in case?

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Also: Do you just export that page or do you export the entire portfolio?

Changed in mahara:
status: New → Incomplete
Revision history for this message
Niranjan (niranjan528) wrote :

Please find it attahced Kristina

Revision history for this message
Niranjan (niranjan528) wrote :
Revision history for this message
Niranjan (niranjan528) wrote :

My mistake. checked out on different bug and when checkoed out with master branch it looks fine

Changed in mahara:
status: Incomplete → Invalid
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.