MantisBT - ATutor
View Issue Details
0005156ATutorImport Contentpublic2013-01-16 13:582013-02-11 12:04
greg 
greg 
normalminoralways
closedfixed 
 
2.1.12.1.1 
SVN
822b105..5c06294 master -> master
0005156: Import OpenLearn content from AContent
Importing OpenLearn content from AContent via live linking fails

I find in ATutor that when using the LTI live link to link Open Learn content that has been imported into AContent, it generates the following errors. The same problem does not occur when linking to content that was created in AContent (e.g. Creating your first lesson in AContent).

----
*Warning*: simplexml_load_string() [function.simplexml-load-string <http://atutor.ca/acontent/ac_lti/ATutor/function.simplexml-load-string> [^]]: Entity: line 1: parser error : Start tag expected, '<' not found in */webserver/content/atutor.ca/docs/acontent/ac_lti/ATutor/include/classes/AContent_lcl/AContent_lcl_processxml.class.php* on line *38*

*Warning*: simplexml_load_string() [function.simplexml-load-string <http://atutor.ca/acontent/ac_lti/ATutor/function.simplexml-load-string> [^]]: <?xml version="1.0" encoding="UTF-8" ?> in */webserver/content/atutor.ca/docs/acontent/ac_lti/ATutor/include/classes/AContent_lcl/AContent_lcl_processxml.class.php* on line *38*

*Warning*: simplexml_load_string() [function.simplexml-load-string <http://atutor.ca/acontent/ac_lti/ATutor/function.simplexml-load-string> [^]]: ^ in */webserver/content/atutor.ca/docs/acontent/ac_lti/ATutor/include/classes/AContent_lcl/AContent_lcl_processxml.class.php* on line *38*
replce
preg_match("/<AContent_LiveContentLink>(.*?)<\/AContent_LiveContentLink>/", $xmlStructure, $match);
with
preg_match("'<AContent_LiveContentLink>(.*?)</AContent_LiveContentLink>'si", $xmlStructure, $match);
No tags attached.
Issue History
2013-01-16 13:58gregNew Issue
2013-01-16 14:01gregSVN Revision# => 822b105..5c06294 master -> master
2013-01-16 14:01gregNote Added: 0005921
2013-01-16 14:01gregStatusnew => resolved
2013-01-16 14:01gregFixed in Version => 2.1.1
2013-01-16 14:01gregResolutionopen => fixed
2013-01-16 14:01gregAssigned To => greg
2013-02-11 12:04gregNote Added: 0006024
2013-02-11 12:04gregStatusresolved => closed

Notes
(0005921)
greg   
2013-01-16 14:01   
replace slashes with single quote for regex delimiter

preg_match("/<AContent_LiveContentLink>(.*?)<\/AContent_LiveContentLink>/", $xmlStructure, $match);
preg_match("'<AContent_LiveContentLink>(.*?)</AContent_LiveContentLink>'si", $xmlStructure, $match);
(0006024)
greg   
2013-02-11 12:04   
closed for 2.1.1