MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005156ATutorImport Contentpublic2013-01-16 13:582013-02-11 12:04
Reportergreg 
Assigned Togreg 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version2.1.1Fixed in Version2.1.1 
Summary0005156: Import OpenLearn content from AContent
DescriptionImporting OpenLearn content from AContent via live linking fails
Steps To Reproduce
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*
Additional Informationreplce
preg_match("/<AContent_LiveContentLink>(.*?)<\/AContent_LiveContentLink>/", $xmlStructure, $match);
with
preg_match("'<AContent_LiveContentLink>(.*?)</AContent_LiveContentLink>'si", $xmlStructure, $match);
TagsNo tags attached.
Affects versionSVN
SVN Revision#822b105..5c06294 master -> master
Attached Files

- Relationships

-  Notes
(0005921)
greg (administrator)
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 (administrator)
2013-02-11 12:04

closed for 2.1.1

- Issue History
Date Modified Username Field Change
2013-01-16 13:58 greg New Issue
2013-01-16 14:01 greg SVN Revision# => 822b105..5c06294 master -> master
2013-01-16 14:01 greg Note Added: 0005921
2013-01-16 14:01 greg Status new => resolved
2013-01-16 14:01 greg Fixed in Version => 2.1.1
2013-01-16 14:01 greg Resolution open => fixed
2013-01-16 14:01 greg Assigned To => greg
2013-02-11 12:04 greg Note Added: 0006024
2013-02-11 12:04 greg Status resolved => closed


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker