Leap2A issues

Bug #1358934 reported by Kristina Hoeppner
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Son Nguyen
15.10
Fix Released
Undecided
Unassigned

Bug Description

from Gregor:

1. Export portfolio data (regular export, leap2a format, entire portfolio)
2. Import data back from xml file generated in step 1

Didn't work. Mahara complained with the following error message:

WAR] 73 (D:\xampp183\htdocs\mahara19\import\leap\lib.php:126) simplexml_load_file(): I/O warning : failed to load external entity ""
Call stack (most recent first):

    log_message("simplexml_load_file(): I/O warning : failed to loa...", 8, true, true, "D:\xampp183\htdocs\mahara19\import\leap\lib.php", 126) at D:\xampp183\htdocs\mahara19\lib\errors.php:433
    error(2, "simplexml_load_file(): I/O warning : failed to loa...", "D:\xampp183\htdocs\mahara19\import\leap\lib.php", 126, array(size 2)) at Unknown:0
    simplexml_load_file("", "SimpleXMLElement", 67584) at D:\xampp183\htdocs\mahara19\import\leap\lib.php:126
    PluginImportLeap->read_leap2a_xml_file() at D:\xampp183\htdocs\mahara19\import\leap\lib.php:306
    PluginImportLeap->do_import_from_requests() at D:\xampp183\htdocs\mahara19\import\index.php:294
    do_import() at D:\xampp183\htdocs\mahara19\import\index.php:76

[INF] 73 (D:\xampp183\htdocs\mahara19\import\index.php:297) Leap2A import failed: FATAL: XML file is not well formed! Please consult Mahara's error log for more information

Waiting for genius solutions from Mahara gurus... :)

BTW: Mahara 1.9 (or latest 1.10dev), XAMPP on Windows.

Revision history for this message
Son Nguyen (ngson2000) wrote :

Hi Gregor,

I could not reproduce your issue.
Can you please provide the Leap2a file

Thank you
Son

Changed in mahara:
status: New → In Progress
Revision history for this message
Gregor Anželj (gregor-anzelj) wrote :

Sure...

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

Hi Gregor,

I didn't get an error message either.

I could import your Leap2A file as a new user and got two entries in the contact info: ICQ and Skype.

When you were testing, were you testing on a clean database or on one where you had applied patches before? If the latter is the case, please try it on a clean database as other patches might have interfered.

Cheers
Kristina

Revision history for this message
Son Nguyen (ngson2000) wrote :

Hi Kristina,

If you import the Leap2a file using user self-import feature (Porfolio/Import) you will get the error.

I am fixing it.

Cheers,
Son

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/3660

Revision history for this message
Robin Leung (robin-leung) wrote :

Is there a fix for this?

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Hi Robin,

The current status of this bug is that Son submitted the patch https://reviews.mahara.org/3660 to fix it, but some issues were found in that patch during code review.

Are you being affected by this bug?

Cheers,
Aaron

Revision history for this message
Son Nguyen (ngson2000) wrote :

I' ll refix the patch

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/3660
Committed: https://git.nzoss.org.nz/mahara/mahara/commit/28621d05856b6b36a93c52d24c9c2d0e74071f5b
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 28621d05856b6b36a93c52d24c9c2d0e74071f5b
Author: Son Nguyen <email address hidden>
Date: Mon Aug 25 13:35:58 2014 +1200

Refactor the storing import data in the session (Bug 1358934)

also fix the issue of importing a single leap2a file

Change-Id: I44187f522f616749ce4bf441c4797143fe20bc7c
Signed-off-by: Son Nguyen <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
milestone: none → 15.10.0
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
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.