Upgrading to 2.16

Upgrading to 2.16

by Geoffrey Cox -
Number of replies: 2

I followed the upgrade instructions to upgrade webwork from 2.15 to 2.16 and now my math equations on problems only display as "[math]".

Below each problem is the following warning message:

Failed to evaluate module TikZImage: Can't locate in @INC (you may need to install the TikZImage module) (@INC contains: /opt/webwork/pg/lib /opt/webwork/webwork2/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /etc/apache2) at (eval 860) line 1

Any ideas?


Attachment Capture.PNG
In reply to Geoffrey Cox

Re: Upgrading to 2.16

by Danny Glin -
The missing TikzImage module makes me suspect that you did not also upgrade the PG code to 2.16, as that module is new in PG 2.16.  You will have to run the git commands in the /opt/webwork/pg directory as well as the webwork2 directory.  Also make sure that you restart apache after updating WeBWorK code.

Seeing "[math]" instead of typeset equations means that MathJax isn't doing its job.  This is usually because your browser is not getting the MathJax javascript files from the server.  If this is not solved by upgrading pg, then there are a few troubleshooting steps:
  1. Hold down shift and reload the page.  Doing a shift-reload doesn't just reload the page, it reloads all of the dependencies as well.  Since MathJax has moved since the previous version this will clear your cache of old MathJax files.
  2. Make sure that you have installed the new version of MathJax.  This is handled by the "npm install" step in the upgrade instructions.  If this has been run successfully, then you should see a mathjax directory in /opt/webwork/webwork2/htdocs/node_modules
  3. If these don't solve the problem, then the next step would be to look at your browser's error console (usually under developer tools).  Any errors there might help diagnose the problem.
In reply to Danny Glin

Re: Upgrading to 2.16

by Geoffrey Cox -

Thanks for the help, Danny.  I totally forgot to update the pg code. Duh.  

Everything works great now!