So i am having issues with my moodle site, where a certain user tries to acces a question bank in a course, the site tries to load the page but fails, when i activate debbuging, i get the following message
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 10477400 bytes) in /lib/dml/mysqli_native_moodle_database.php on line 1313
So, this user is the only one in this course that cannot access the question bank, they have the exact same role and permissions as the other users in the course.
I have tried:
- purging the caches;
- changing this user's preferecences to default;
- forcing quizzes where they had "in progress" state to "finished";
- comparing this user's permissions with other users from the course(they were equal);
- checking if the user had a role in the category where the course is from, to see if there's an override in permissions from the category to the course(the user is not enroled in any roles in the category);
Checking the logs of the user in the course, when they try to access the question bank, there are no logs related to this user accessing the question bank.
So, for short, apparently the problem is not the memory size for the site, since my admin user and other users in the course with the same roles and permissions can access the question bank normaly.