Questions tagged [moodle]
Moodle is an open source learning management system (LMS) written in PHP.
3,051
questions
0
votes
0
answers
24
views
How to get course progress in Moodle 4?
I will leave my question below. My problem is that I want to obtain the progress that is seen when you enter the system interface and the user sees if they have 50/100% of the progress of the course, ...
0
votes
1
answer
24
views
reCAPTCHA Enterprise has locked me out of my website
I'm learning how to create a Moodle, which is an LMS. So, my website is a Moodle one. The Moodle software already had it set up to include the option of using reCAPTCHA, so I created a key and input ...
0
votes
0
answers
22
views
Moodle: Visitors get automatically connected anonymously, how to prevent that?
I had Moodle 3.11 i upgraded to 4.2 following the procedure from the docs. But after the upgrade, (i also moved it to a new VM) i notice that when ever I go to the platform, on the top right corner it ...
0
votes
0
answers
8
views
Rest Webservice Moodle: Reset a test attempt for a quiz for a user
I want to reset a test result for a user over the rest API from Moodle 4.1 and don't find a solution. Is there a way to do this?
I have the user id from the user from moodle and the course id and ...
0
votes
0
answers
11
views
Login page disappeared after disable the authentication
In Moodle, I disabled Web services authentication & OAuth 2, and after
I logged out I could not log in again and there is no login form as in
the attached screenshot.
Login page: login screen
0
votes
0
answers
27
views
Angular page with moodle integration
I'm not very experienced in programming, but I'm working on a project for a friend's music school. It involves creating an Angular web page that is more informational and visually pleasing, with some ...
0
votes
0
answers
21
views
Getting Marking Guides Criterion Scores for Graded User Using Web Services in Moodle
I'm currently working with Moodle Learning Management System to get student grades for my client's system.
How can I get marking guide criterion assessments/grades of students in moodle using REST API....
0
votes
0
answers
50
views
Cloudflare Tunnel + Apache + Moodle
I'm trying to install Moodle 4.2 stable on my Ubuntu 22.04.
Since I don't have a public IP, I hope using tunnel so that others can visit the website.
Please help, thanks. Tell me if any other ...
1
vote
1
answer
67
views
(Windows) PHP has not been properly configured with the PGSQL extension so that it can communicate with PostgreSQL
I am installing Moodle on a Windows server using PostgreSQL 12 and PHP version 8.2.12
During the install process, I get the following:
Error: database driver problem detected
The site administrator ...
1
vote
0
answers
38
views
Issues creating users Moodle's REST API
I'm being tasked with automating some tasks with a Moodle installation with a program such as n8n. I've been having success with a lot of different hurdles up until this one. I am trying to use POST ...
1
vote
1
answer
70
views
Connecting Moodle LMS to a Redis server for Moodle caching
I am trying to connect a Moodle 3.9 website that's hosted on a Windows Server 2019 computer to a Redis instance running on a Red Hat Redis server so that I can configure Moodle to use Redis for ...
1
vote
1
answer
25
views
Moodle best way to get information about user points in course and the whole points in the course
I am seeking assistance in determining a user's overall score and the maximum achievable score in a course. My goal is to calculate the percentage of total points the user has achieved throughout the ...
1
vote
1
answer
23
views
I'm having problems accessing a category from a question bank in Moodle
I'm having problems accessing a category from a question bank in Moodle.
I'm using Moodle in version 4.0 and PHP in version 7.4.
When I try to access a category from a question bank in Moodle this ...
0
votes
1
answer
21
views
tinyMCE in upgraded moodle 4.2.1 not working
After a server upgrade to moodle 4.2.1 tinyMCE editor stopped working: the toolbar is empty.
Nginx raises errors like:
Primary script unknown while reading response header from upstream, client: 151....
0
votes
1
answer
35
views
How to render a new menu to display a menu bar in moodle
I am trying to custom the classic theme to a theme (called theant theme) as a child theme of the theme boost.
I want to get all courses with their links in my moodle to display them as a menu in all ...
0
votes
0
answers
18
views
Is it posible to use NGINX as a reverse proxy and to serve static files?
currently I have two servers. One with a moodle and another with an Angular App.
The .conf file on Moodle is:
server {
listen 80;
root /var/www/html/moodle;
index index.php index.html ...
-2
votes
1
answer
43
views
Special Moodle SQL-Statement to get all managers and course-creators with firstname, lastname, course and mail
Is it possible to make a SQL query in Moodle that will provide the following output for all course creators and managers
|coursecategory ID|coursecategory name| firstname|lastname|emailadress|rule (...
0
votes
0
answers
29
views
Cant Embed iframes in Moodle
For some reason i cant embed iframes in a moodle course when using html, looking online there is a setting in the site admin to allow iframes which i have now set to true (screenshot below) however im ...
-1
votes
1
answer
111
views
Import javascript in browser console (moodle)
I'm trying to import js code into the browser console and I'm not being able to. I've tried 'src', 'innerHTML', etc.
Is there a way to make it work?
I have also tried uploading the file 'jszip.min.js' ...
2
votes
1
answer
36
views
Set editor as dirty in Moodle via js
I am working on an advanced grading plugin and have added a button to the grading screen, that changes the content of the (atto) editor via .setHTML in js.
However, pressing the save button afterwards ...
0
votes
0
answers
67
views
Stuck on Splash Page Issue with Moodle Mobile App on Android
I'm currently facing an issue with the Moodle mobile application I'm developing. When I build my app on Android, it gets stuck on the splash page, and the expected functionality does not work. I have ...
0
votes
1
answer
49
views
Accessing Moodle via Python Requests
Hello fellow stackoverflowers,
I am currently programming a python script that should download feedback files from courses in Moodle,
The script can login successfully into moodle. But for every GET ...
0
votes
1
answer
36
views
How to log in Moodle 3.10?
I wrote my own authentication plugin for Moodle 3.10. I would just like to add a log whenever the login fails. Something like this:
$log->info('User with username XYZ could not login.');
How to do ...
0
votes
2
answers
52
views
Moodle Course Custom SQL Report: Select students, group they belong to and final assessment grade for a specific course
👋
I'm pretty knew to programming in general, and I wanted to try to build a Moodle Custom SQL query, but I've had no success so far.
I wanted to SELECT a few fields from the user table, as well as ...
0
votes
0
answers
31
views
Get current user group inside course in Moodle
In Moodle, I have some courses where the users are assigned to groups. I need to make the user group info in the course to be available via JavaScript, so that I can access the group info and do stuff ...
1
vote
1
answer
91
views
Moodle Installation php problems
Hello guys, i want to solve a problem in moodle 3.11.8 : Fatal error: Type of xml_format_exception::$line must be int (as in class Exception) in /var/www/moodle/lib/xmlize.php on line 0.
i use PHP 8.1....
1
vote
1
answer
38
views
Cannot reach local plugin observer using user_loggedin event
I'm just learning how to do a local plugin on Moodle :
I'm trying to execute an action while the user log in
Here is my folder :
local
firsttimeconnect
classes
observer.php
db
events.php
...
1
vote
0
answers
49
views
Moodle API Integration not working. What could be the issue?
I'm doing an integration between a laravel + API of Moodle regarding the manual enrol of a user to a specific course.
Before this, I did the process of create the user using the API, and it works like ...
-1
votes
2
answers
68
views
Moodle SQL-Statement to show all Messages that habe been sent to a user with special id
How can I use SQL to query which messages were sent to the user with ID 100?
1
vote
1
answer
57
views
Moodle 3.11 - delete Activity - overwrite Confirm Dialog on module deletion
I have written an activity module for Moodle 3.11 and want to inform the manager, when deleting my module from the course, that user entries will be deleted as well.
At the moment, when the manager ...
1
vote
1
answer
44
views
how to fetch Iframe state change in Moodle environment
So I developed a block in Moodle which will detect the video play and pause state (uploaded video on server) and working everything well, but today I had a new requirement that it should work on ...
0
votes
0
answers
22
views
Create activity in Moodle via web service
Is it possible to create an activity (e.g. forum) in Moodle, specifically in a Moodle course, by using a web service? If so, which web service do I have to use for this?
Thx 4 help
0
votes
0
answers
41
views
Getting apache2 303 error while installing Moodle
I try installing Moodle 3.11 on Alt Linux. I run install.php, configure the DB configs, and get 303 error from apache2 access_log. Apache2 access_log screenshot.
The DB on the other virtual machine, ...
1
vote
0
answers
23
views
Problem with the meeting createtime for the BBB plugin
Each time someone join a meeting the program go through a condition which test if the meeting has a create date "createtime". So each time a request is send to create a new record. But I don'...
0
votes
0
answers
32
views
Navigation menu swap item positions
I want to move Other Languages in the positions of My modules and My modules to Other Languages
This is a moodle platform and i am trying to find some additional css or html to put inside
i try ...
0
votes
0
answers
40
views
How to implement Availability API (Restrict Access) for Site Announcement posts in Moodle?
I am implementing the Site Announcement block in our Moodle site, and I need to restrict access for each of the announcement based on Institution field of the User Profile.
As Site Announcement block ...
0
votes
1
answer
34
views
Ubuntu Apache Configuration - Proxy
I have a Linux/Ubuntu Virtual Machine that uses 22.04LTS
I have a website hosted in WP Engine, which is running a ProxyPass from an NGINX server to this Ubuntu VM.
Whenever a user visits the following ...
0
votes
0
answers
46
views
Trouble Submitting Quiz Attempts in Moodle 4.2.1 via cURL - mod_quiz_save_attempt
Using Moodle 4.2.1, I'm attempting to submit a quiz attempt via the following curl command, but it's not working as expected. I've tried various examples from ChatGPT and searched for documentation on ...
0
votes
1
answer
48
views
How to assign calendar:manageownentries capability to authenticated user which is a teacher in a course
In moodle 4.1, due to some security reasons, i have to remove the calendar:manageownentries capability from the authenticated user. I have to assign this capability to a authenticated user which is ...
0
votes
1
answer
83
views
How to import&change moodle's boost font
I'm trying to change my font so that it affects my whole moodle.
The font is coming from an scss file from bootstrap.
I've seen this question, however using that is not working.
I've also seen this SO ...
0
votes
0
answers
26
views
Moodle create page with tutor contact details
The point to create Moodle tutor contact page. The enrolled student on the course when click on "Contact Tutor" from home page navigate to tutor page contacts, like email, mobile or/and ...
0
votes
1
answer
29
views
Why the Mobile plugin support code for Edwiser course format not reflecting as output in Moodle app?
By following the Creating mobile course format plugin development guide, I am developing a mobile plugin support of the Edwiser course format for the Moodle App. But after creating db/mobile.php, ...
0
votes
2
answers
42
views
How can I edit functionality in Moodle in the 'Restrict Access' section for an assignment?
I want to change the text field under the "choose.." to a drop down. I'm under the impression that I need to make this change in the Availability folder in moodle?
0
votes
0
answers
16
views
Moodle errror Error: syntax error, unexpected '|', expecting variable (T_VARIABLE) [duplicate]
i have hosted a moodle server on an online server hoster. now when i went to my moodle page, the following error occurred: Error: syntax error, unexpected '|', expecting variable (T_VARIABLE)
also i ...
1
vote
0
answers
35
views
Moodle let user change his own picture
Im working on a moodle new theme and I want to let user change his picture from his profile page what should I do?
I overide the profile page then I tried to make it but i think it will need a new php ...
1
vote
0
answers
40
views
how to convert pluginfile image text link moodle?
I am using Moodle version 4.1.1 in which I am using a custom API that I have created. In the custom API, I am getting the question data from the Moodle question table in which there is question text, ...
0
votes
0
answers
39
views
Delete all the data after Re enrolment in Moodle
I have been using Moodle for the past year. I am facing a problem when I re-enroll a user. This means if I unenroll a user and enroll him again in the course.
The old data like his progress and other ...
0
votes
0
answers
27
views
I have a problem with Moodle where the role of Teacher, nor anyone else, only Manager and admin can edit the course
I have several courses set up, in each one I have assigned 2 Teachers and a Manager among the participants. Two weeks ago the Teacher activated the "Editing Mode" tab and everything worked ...
0
votes
1
answer
42
views
How to sync onPremisesSamAccountName with Moodle user profile?
I'm currently trying to add a custom user profile field and set it through oAuth2 services. I'm running Moodle 4.1.5.
I created the user profile field in Moodle with a short name, a name, a ...
0
votes
1
answer
57
views
Cannot get moodle to install on my remote server/virtual machine
I'm playing with a free MS Azure account, and am trying to upload an open-source LMS (Learning Management System) called Moodle onto it. I've set up the virtual machine/SSH, am in the server via ...