Publicaciones hechas por por Tim Hunt

Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers

To do this, I have a file called test.php sitting in the root of my Moodle dev environment. I can put random code in there, and load the page in my browser, to see the result. Primitive, but it works. Currently, that file seems to contain

set_url('/test.php');
$PAGE->set_context(context_system::instance());

echo $OUTPUT->header();
print_object(userdate((new DateTimeImmutable("today 23:59", core_date::get_server_timezone_object()))->getTimestamp()));
echo $OUTPUT->footer();
Promedio de valuaciones (ratings):Useful (2)
Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers
Yes.

Basically, at the moment when the quiz attempt is created (that is, when the student clicks 'Start attempt'), the quiz follows what you have set up. So, if Q1 is a questoin picked at random from category X, then it will pick one question from what is in that category at that time.
Promedio de valuaciones (ratings):Useful (3)
Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers

Can you get any more information about that error?

If you open the Developer tools in your web browser, and swtich to the Network tab, you should be able to see that request being made to the server, and the resonse that comes back that triggers the error being displayed. The full details of that request and response might tell us more.

Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers
There is a (1½) optino that should go between the two you mention. If you have a custom theme you can change a lot using this technique https://docs.moodle.org/dev/Overriding_a_renderer.

A theme can also replace icons, and change the templates that generate the HTML for some things.