Installation

fileFromPath subroutine undefined?

fileFromPath subroutine undefined?

by Anneke Bart -
Number of replies: 2
On behalf of out tech person, I wanted to ask if anyone knows what the error below is about.

The error says:
Undefined subroutine &WeBWorK::PG::Translator::fileFromPath called at /opt/webwork/pg/lib/WeBWorK/PG/Translator.pm line 543.

With further details:

The information below can help locate the source of the problem.

  • in WeBWorK::PG::Local::new called at line 53 of /opt/webwork/webwork2/lib/WeBWorK/PG.pm
  • in WeBWorK::PG::new called at line 749 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm
  • in WeBWorK::ContentGenerator::Problem::pre_header_initialize called at line 181 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
  • in WeBWorK::ContentGenerator::go called at line 370 of /opt/webwork/webwork2/lib/WeBWorK.pm


We are updating WeBWorK and this error shows up no matter what you do: add a new problem, try to display an old problem (previous semester)

Any thoughts? Suggestions?

Anneke Bart

In reply to Anneke Bart

Re: fileFromPath subroutine undefined?

by Arnold Pizer -
Hi Anneke,

Do you upgrade both webwork and pg at the same time? You should.

Arnie
In reply to Anneke Bart

Re: fileFromPath subroutine undefined?

by Michael Gage -
This error shows up, but not consistently if the operating system is upgraded to use perl 5.16 or higher.  (The new operating system has an asynchronous loading pattern which is not allowed for in the original code.)  The pull requests
webwork2: #465 and pg #148 address this issue.  Both pull requests need to be applied at once since files are changed in both the webwork2 and pg directories.

After further testing these pull requests will become part of the develop release.