After upgrading webwork to 2.18 whenever i try to access any existing course im encountering this error
Error messages
Can't locate object method "unparsed_uri" via package "WeBWorK::ContentGenerator::ProblemSets" at /opt/webwork/pg/lib/WeBWorK/Authen/CAS.pm line 118.
Context
113: #my $cas_certs = $ce->{authen}{cas_options}{certs};
114: #my $cas = new AuthCAS(casUrl => $cas_url,
115: # CAFile => $cas_certs);
116: my $cas = new AuthCAS(%{ $ce->{authen}{cas_options}{AuthCAS_opts} });
117:
118: my $service = $c->unparsed_uri();
119: # Remove the "ticket=..." parameter that the CAS server added
120: # (Not sure if the second test is really needed.)
121: $service =~ s/[?&]ticket=[^&]*$//
122: or $service =~ s/([?&])ticket=[^&]*&/$1/;
123: $service = $ce->{server_root_url} . $service;