Forums | Mahara Community

Mahara/Moodle integration /
Help! Error while exporting content to Mahara


anonymous profile picture
Account deleted
Posts: 3

11 October 2012, 19:47

Hi,
      I'm running Moodle 2.3.2 and Mahra 1.5.4
      With this community's help, I have integrated Moodle and Mahara succesfully.
Now, I just go on trying to export content to Mahara. At first, I managed to export forum posts to Mahara.
Luckily, it did well in HTML format. But, in Leap2A format, it failled and the error is as follows.

Failed to start communication with remote server: remote server error: code: , message: FATAL: XML file is not well formed! Please consult Mahara's error log for more informationERROR 4:
4: remote server error: code: , message: FATAL: XML file is not well formed! Please consult Mahara's error log for more information

Judging from the above, the error seems to come form Mahaha.
Any information or any idea would be greatly appreciated.

Thanks.
Alexander, Kuo.

anonymous profile picture
Account deleted
Posts: 197

11 October 2012, 21:07

Hi Alexander,

Could you please post the logs it mentions? We would need to see those to make a suggestion. The errors could be in moodle with mahara merely logging the error it experienced. We don't know until we see the logs.

Remember to remove any private information such as passwords that appear in the logs.

Thanks,
Melissa.

anonymous profile picture
Account deleted
Posts: 3

12 October 2012, 2:24

Hi Melissa,

Thanks for your reply!

In the logs of Mahara server:
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*] [WAR] 82 (import/leap/lib.php:122) simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "/data/mahara/upload/temp/import/3/extract/leap2a.xml"
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*] Call stack (most recent first):
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * log_message("simplexml_load_file() [function.simplexml-load-fil...", 8, true, true, "/usr/local/www/apache22/data/mahara/import/leap/li...", 122) at /usr/local/www/apache22/data/mahara/lib/errors.php:446
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * error(2, "simplexml_load_file() [<a href='function.simplexml...", "/usr/local/www/apache22/data/mahara/import/leap/li...", 122, array(size 2)) at Unknown:0
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * simplexml_load_file("/data/mahara/upload/temp/import/3/extract/leap2a.x...", "SimpleXMLElement", 67584) at /usr/local/www/apache22/data/mahara/import/leap/lib.php:122
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * PluginImportLeap->process() at /usr/local/www/apache22/data/mahara/api/xmlrpc/lib.php:478
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * send_content_ready("321154faa314cab0cdc1b014f93265ec", "username", "leap2a", array(size 4), 1) at Unknown:0
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * call_user_func_array("send_content_ready", array(size 5)) at /usr/local/www/apache22/data/mahara/api/xmlrpc/lib.php:127
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * api_dummy_method("portfolio/mahara/lib.php/send_content_ready", array(size 5), "send_content_ready") at Unknown:0
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * xmlrpc_server_call_method(resource(#26), "<?xml version="1.0" encoding="utf-8"?>
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*] <methodCall...", "send_content_ready", array(size 1)) at /usr/local/www/apache22/data/mahara/api/xmlrpc/dispatcher.php:194
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * Dispatcher->__construct("<?xml version="1.0" encoding="utf-8"?>
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*] <methodCall...", true, true) at /usr/local/www/apache22/data/mahara/api/xmlrpc/server.php:142
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*] [WAR] 82 (import/leap/lib.php:124) FATAL: XML file is not well formed! Please consult Mahara's error log for more information
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*] Call stack (most recent first):
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * PluginImportLeap->process() at /usr/local/www/apache22/data/mahara/api/xmlrpc/lib.php:478
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * send_content_ready("321154faa314cab0cdc1b014f93265ec", "username", "leap2a", array(size 4), 1) at Unknown:0
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * call_user_func_array("send_content_ready", array(size 5)) at /usr/local/www/apache22/data/mahara/api/xmlrpc/lib.php:127
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * api_dummy_method("portfolio/mahara/lib.php/send_content_ready", array(size 5), "send_content_ready") at Unknown:0
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * xmlrpc_server_call_method(resource(#26), "<?xml version="1.0" encoding="utf-8"?>
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*] <methodCall...", "send_content_ready", array(size 1)) at /usr/local/www/apache22/data/mahara/api/xmlrpc/dispatcher.php:194
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]   * Dispatcher->__construct("<?xml version="1.0" encoding="utf-8"?>
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*] <methodCall...", true, true) at /usr/local/www/apache22/data/mahara/api/xmlrpc/server.php:142
[Fri Oct 12 15:15:51 2012] [error] [client 140.*.*.*]

Alexander.

anonymous profile picture
Account deleted
Posts: 48

14 October 2012, 16:41

Hi Alexander,

Thanks for that, I have some ideas about your problem and have sent you a PM about it.

Cheers,

Hugh

anonymous profile picture
Account deleted
Posts: 3

14 October 2012, 19:41

Hi Hugh,

  I can't find the leap2a.xml file in /data/mahara/upload/temp/import/3/extract/.
  Any ideas?
  Cheers,

Alexander.

anonymous profile picture
Account deleted
Posts: 48

15 October 2012, 16:09

Hi Alexander,

Did you try my suggestions in PM? If you retransfer it from Moodle the directory may change, but the new directory will be shown in the logs.

You may not of seen the latest PM I sent, if you check your notifications (https://mahara.org/account/activity) and select "Message from other users" in the activity type.

Let me know how you get on.

Cheers,

Hugh

Yaju Mahida's profile picture
Posts: 131

26 March 2013, 16:48

We are also experiencing this issue and I have investigated this.

Not sure about the solution but I have put my comments at https://bugs.launchpad.net/mahara/+bug/988254 which can be solution.

Can I please get feedback about that ?

 

A post by Account deleted was deleted

A post by Account deleted was deleted

16 May 2014, 23:58

I have peer networked Moodle (2.6.2) and Mahara (1.8.2) successfully for Single-Sign-On. When I attempt to export content to Mahara portfolio I receive the following errors:

Échec de communication avec le serveur distant : remote server error: code: , message: Files receieved did not exactly match what was in the manifestERROR 4:
4: remote server error: code: , message: Files receieved did not exactly match what was in the manifest

Mr Alexander Kuo You said that you successfully export HTML content can you pleas tell me how you did it

16 results