WeBWorK Main Forum

Epoch error with gateway quiz

Epoch error with gateway quiz

by Mark Hamrick -
Number of replies: 1
Hello all,

Anyone had epoch errors with the gateway quiz? It still works, but gives the error below.

Error messages

The 'epoch' parameter ("WeBWorK::ContentGenerator::GatewayQuiz=HASH(0x7fcd45836df0)") to DateTime::from_epoch did not pass regex check
at /usr/lib/perl5/DateTime.pm line 457
DateTime::from_epoch(undef, 'epoch', 'WeBWorK::ContentGenerator::GatewayQuiz=HASH(0x7fcd45836df0)', 'time_zone', 1289336919) called at /opt/webwork/webwork2/lib/WeBWorK/Utils.pm line 597
WeBWorK::Utils::formatDateTime('WeBWorK::ContentGenerator::GatewayQuiz=HASH(0x7fcd45836df0)', 1289336919) called at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 965
WeBWorK::ContentGenerator::timestamp('WeBWorK::ContentGenerator::GatewayQuiz=HASH(0x7fcd45836df0)', 'HASH(0x7fcd48a6b8f0)') called at /opt/webwork/webwork2/lib/WeBWorK/Template.pm line 152
WeBWorK::Template::template('/opt/webwork/webwork2/conf/templates/math/gateway.template', 'WeBWorK::ContentGenerator::GatewayQuiz=HASH(0x7fcd45836df0)') called at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 491
WeBWorK::ContentGenerator::content('WeBWorK::ContentGenerator::GatewayQuiz=HASH(0x7fcd45836df0)') called at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm line 195
WeBWorK::ContentGenerator::go('WeBWorK::ContentGenerator::GatewayQuiz=HASH(0x7fcd45836df0)') called at /opt/webwork/webwork2/lib/WeBWorK.pm line 353
WeBWorK::dispatch('Apache2::RequestRec=SCALAR(0x7fcd44aa04b8)') called at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 115
eval {...} called at /opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 115
Apache::WeBWorK::handler('Apache2::RequestRec=SCALAR(0x7fcd44aa04b8)') called at -e line 0
eval {...} called at -e line 0

Call stack

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

  • in Carp::confess called at line 457 of /usr/lib/perl5/DateTime.pm
  • in DateTime::from_epoch called at line 597 of /opt/webwork/webwork2/lib/WeBWorK/Utils.pm
  • in WeBWorK::Utils::formatDateTime called at line 965 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
  • in WeBWorK::ContentGenerator::timestamp called at line 152 of /opt/webwork/webwork2/lib/WeBWorK/Template.pm
  • in WeBWorK::Template::template called at line 491 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
  • in WeBWorK::ContentGenerator::content called at line 195 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
  • in WeBWorK::ContentGenerator::go called at line 353 of /opt/webwork/webwork2/lib/WeBWorK.pm

In reply to Mark Hamrick

Re: Epoch error with gateway quiz

by Danny Glin -
I had the same problem in August. IIRC it was an issue with formatDateTime that was fixed in early September. If you update your /opt/webwork/webwork2/lib directory to the latest version it should fix the problem.