Olá para todos, bom dia!
Estou iniciando um novo desafio, administrar um Moodle que já está "rodando" tem um tempo.
Recebi uma demanda deste erro "Erro de codificação detectado e deve ser corrigido por um programador: Context does not belong to any course." após um Aluno se autenticar e clicar em "Meus Cursos" (http://e-learning.univiasoft.com.br/my/).
Debugando o erro encontrei este LOG no Apache2: Debug: \nError code: codingerror\n* line 5721 of /lib/accesslib.php: coding_exception thrown\n* line 7338 of /lib/accesslib.php.
O erro ocorre nesta função do código:
/**
* Is this context part of any course? If yes return course context.
*
* @param bool $strict true means throw exception if not found, false means return false if not found
* @return context_course context of the enclosing course, null if not found or exception
*/
public function get_course_context($strict = true) {
if ($strict) {
throw new coding_exception('Context does not belong to any course.');
} else {
return false;
}
}
Alguém já passou por algum problema parecido?
Poderia me auxiliar ao menos onde iniciar a análise?
Muito obrigado.