<meta name="viewport" content="width=device-width, initial-scale=1.0">
These tags are missing a closing tag, causing the XML parser to report an error when it hits the </head> while still expecting a </meta>. They should end with "/>" instead of ">".
Furthermore, on line 129 of system.template there is a <script> block that should be escaped with //<![CDATA[ ... //]>; otherwise the XML parser chokes on that too.
(I'm puzzled that no one else has run into these problems. Is my XML parser more stringent than everyone else's for some reason?)
Unfortunately I am still stuck; now I am getting a different error message "wrong element 'html'", without any indication of where the error is coming from, making it rather harder to track down. Any suggestions would be very welcome...
$PARmacro in problems puts out a
<p>tag, but there is no matching
</p, and there is no easy way to fix that. And as you found, those that insert scripts, don't use
//since script tags are automatically CDATA in HTML (but not XHTML).
I recommend setting your DOCTYPE to
<DOCTYPE html>, and not trying to do XHTML. That is a losing battle.
I had a guess last night that maybe what's happening is that webwork is trying to use some sort of internal XML communication, but something is going wrong and it's getting a full HTML response where it expected just an XML snippet. Could that be it?
XML::Parser. The only place that I see
XML::Parserbeing used is in
webwork2/lib/WeBWorK/Utils/DBImportExport.pm, and that is in the code for importing a course database. So I don't see where this error could be coming from in the homework sets editor. Is there more to the error message (like a complete stack trace, perhaps farther down on the page)? Can you give us the top portion of the HTML file that is being reported with the message? Can you give a more precise statement of what actions cause this message?
I don't see any reason the
XML::Parsercode should be processing the
at /opt/webwork/webwork2/lib/WebworkClient.pm line 195. End Errors
An error occured while processing your request. For help, please send mail to this site's webmaster (root@localhost), including all of the following information as well as what what you were doing when the error occured.
Wed Apr 06 15:28:26 2016
Can't call method "result" on an undefined value at /opt/webwork/webwork2/lib/WebworkClient.pm line 200.
The information below can help locate the source of the problem.
in WebworkClient::xmlrpcCall called at line 319 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/instructorXMLHandler.pm
in WeBWorK::ContentGenerator::instructorXMLHandler::pre_header_initialize called at line 184 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::go called at line 382 of /opt/webwork/webwork2/lib/WeBWorK.pm
First, on which page exactly are you having trouble. Is it via the render button on the Problem Set Detail 2 page, or viewing a problem in the PG Problem Editor 2, or viewing a problem in the PG Problem Editor 3?
Second, could you find out what version your XML::Parser module is. The command
perl -MXML::Parser -e 'print $XMarser::VERSION."\n"';
should do it.
Third, do you have access to another WeBWorK server use can use to make sure that the problems you are rendering do render correctly.
This happens in two places: (1) when I select subjects, chapters, etc. in the Library Browser, and (2) when editing a single homework set and I click either "Render All" or the "Render Problem" button on a single problem.
My XML::Parser version is 2.36.
I do not have easy access to another webwork server, but I am confident that the problems render correctly on their own, because (1) they are unmodified from the OPL, and (2) they render correctly when I show them in a separate tab.