I have a 1.9.10+ install, relatively fresh. Actually, almost virgin.
Today I uploaded a batch of images and tried to add them to a lesson. When the insert-images pop-up screen appeared it carried the warning:
Notice: Undefined variable: httpsrequired in /home/bca19560/public_html/insegnanti-inglese.info/moodle/lib/editor/htmlarea/popups/insert_image.php on line 14
I was and am unable to add images to lessons or quizzes, or to anything else as far as I can see. Looking at the php file listed in the error message I see:
if ($httpsrequired or (!empty($_SERVER['HTTPS']) and $_SERVER['HTTPS'] != 'off')) {
$url = preg_replace('|https?://[^/]+|', '', $CFG->wwwroot).'/lib/editor/htmlarea/';
} else {
$url = $CFG->wwwroot.'/lib/editor/htmlarea/';
}
I tried to comment out these lines. The error message went away but the pop-up refused to close (or allow me to complete adding the image) when I tested this. Obviously it's not the answer.
What can I do? I need to add images (I was in the process of creating a batch of flashcards) and this is a rather serious issue..
Thanks.