Hello everybody
I have a custom book printing function that I wrote a few years ago, which has always worked fine until moodle 3.1. At one point I do this:
$file = $fs->get_file($fileinfo['contextid'], $fileinfo['component'], $fileinfo['filearea'], $fileinfo['itemid'], $fileinfo['filepath'], $fileinfo['filename']);
which now seems to be failing with the error message 'warning: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'
I note that here it says 'your are allowed to do this ONLY from mod/mymodule/* code, it is not acceptable to do this anywhere else.', but I am calling it from mod/book/tool/print/xxx.php so it should work, and it has always worked before.
Any thoughts anybody?
Thanks,
Chris