Installation

Error "Can't locate macro file PGstandard.pl" after upgrading to 2.19

Error "Can't locate macro file PGstandard.pl" after upgrading to 2.19

by Jeremy Lounds -
Number of replies: 2

Hello,

I have followed the installation instructions for Ubuntu 24.04 on a fresh VM, but after I copy over and "unarchive" some courses (from a server running ver 2.14), none of the problems will display. Nor will they display in the Library Browser.

It is sure to be something simple I am overlooking, but cannot figure it out!

I did notice that for 2.19, the .pl files in /opt/webwork/pg/ are organized into subfolders, but on the 2.14 they are not. Perhaps it is not looking in the subfolders?

ERRORS from evaluating PG file: Undefined subroutine &main::beginproblem called at line 30 of Library/CollegeOfIdaho/setAlgebra_05_03_FactoringByGrouping/53IntAlg_15_FactorGrouping.pg

Error details

ERROR caught by Translator while processing problem file: Library/CollegeOfIdaho/setAlgebra_05_03_FactoringByGrouping/53IntAlg_15_FactorGrouping.pg

(clip)

    Can't locate macro file |PGstandard.pl| via path: |.|,<br/> |[TMPL]/macros|,<br/> |[PG]/macros/|,<br/> |[TMPL]/MSU-MTH-Library/macros/124|,<br/> |[TMPL]/Library/macros/Dartmouth|,<br/> |[TMPL]/Library/macros/Union|,<br/> |[TMPL]/Library/macros/NAU|,<br/> |[TMPL]/Library/macros/Michigan|
    Can't locate macro file |MathObjects.pl| via path: |.|,<br/> |[TMPL]/macros|,<br/> |[PG]/macros/|,<br/> |[TMPL]/MSU-MTH-Library/macros/124|,<br/> |[TMPL]/Library/macros/Dartmouth|,<br/> |[TMPL]/Library/macros/Union|,<br/> |[TMPL]/Library/macros/NAU|,<br/> |[TMPL]/Library/macros/Michigan|
    Can't locate macro file |CofIdaho_macros.pl| via path: |.|,<br/> |[TMPL]/macros|,<br/> |[PG]/macros/|,<br/> |[TMPL]/MSU-MTH-Library/macros/124|,<br/> |[TMPL]/Library/macros/Dartmouth|,<br/> |[TMPL]/Library/macros/Union|,<br/> |[TMPL]/Library/macros/NAU|,<br/> |[TMPL]/Library/macros/Michigan|
    Processing of this PG problem was not completed. Probably because of a syntax error. The translator died prematurely and no PG warning messages were transmitted. at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 636.

Thank you!

Jeremy


In reply to Jeremy Lounds

Re: Error "Can't locate macro file PGstandard.pl" after upgrading to 2.19

by Glenn Rice -

I can tell from the list of locations that your error shows that the $pg{directories}{macrosPath} is not set correctly.  It is showing paths in the OPL.  No macros from the OPL are used anymore (in fact they have all been removed from the OPL).

In reply to Glenn Rice

Re: Error "Can't locate macro file PGstandard.pl" after upgrading to 2.19

by Jeremy Lounds -
Thank you!!

The problem was that $pg{directories}{macrosPath} was being overwritten in course.conf and did not include the new subfolders.

Jeremy