Installation

2.17 upgrade => mathjax and images not rendering . . .

2.17 upgrade => mathjax and images not rendering . . .

by Andrew Leahy -
Number of replies: 1

. . . but only on Hmwk Sets Editor and Library browser.  

I've just upgraded to 2.17 using the Ubuntu 22.04 virtual image.  After some installation issues (see my other posts) I created a course account and started to create some problem sets. The current issue is that the math (mathjax or images) is not being rendered in the 'Set Detail' page under the Hmwk Sets Editor or in the Library browser BUT (e.g.) when I "Open in New Window" a problem in the Hmwk Sets Editor, the math display just fine.  Similarly when I open the problems from the Homework Sets link.

I'm getting a couple of different errors depending on configuration.  Running webwork in Firefox yields the output attached below.  Chrome yields something similar in the red error box: 

"/webwork2/html2xml: Unexpected token '<', "Webwor"... is not valid JSON

As noted in another post, I'm putting WebWork behind an apache reverse proxy.  I'm getting these errors when $server_root_url is set to my external  https address (following a previous post).  Prior to that, using the internal http address for $server_root_url, I was having similar problems:  Math was actually rendered on the Homework Sets pages BUT math segments were completely blank on the Hmwk Sets Editor or in the Library browser with lots of Mixed Content errors in the developer window. 

Interestingly, when my $server_root_url is set to the external https the Library Browser page refuses to run also.  When you make a choice under "Subject:" an error page pops up.  I have a partial image of that which I'll attach to another post.

Attachment error1.png
In reply to Andrew Leahy

Re: 2.17 upgrade => mathjax and images not rendering . . .

by Andrew Leahy -

The error popup thrown by the Library Browser after selecting a Subject: is shown (in part) below.