This article is for technical audience with php/moodle development background. If you’re looking for any assistance in Moodle development/ Learning Management System (LMS)/ E-learning solutions, get in touch with AppYug Moodle Developer at: email@example.com
Now, let us jump to the topic, we’d like to discuss Five most common issues/ errors a moodle developer/user might face staring from implementation to execution of a moodle solution.
Issue#1: Moodle installation Dataroot security error
Error: Dataroot location is not secure
You must keep Dataroot folder outside of web folder. This is for the security purpose so that webroot would be unable to access dataroot.
You need to create the ‘moodledata’ directory within the area on your server which is not publicly accessible through the web.
Issue#2: Webpage has a redirect loop
While installing moodle 3.0, all steps have been completed upto update profile now, after entering the admin details and saving it, nothing on the display. When you try to refresh the page it displays message “web page has a redirect loop“.
This may have happened due to improper session and cache stored in moodledata folder. The solution is to enter to your modledata folder then find “cache” folder, delete everything from cache folder. Now follow the same thing for the session folder.
Important Caution: Do not delete the entire moodledata folder.
Issue#3: Database unicode character Error
When installing moodle using new database if database encoding is not properly set you will face this error.
To fix this error, you need to visit PhpMyAdmin and set the database collation in to utf8_unicode_ci
Issue#4: Display Issue while installing moodle it shows Moodle like No CSS version
This issue can be faced while installing a fresh moodle on the web server.
It can get solved by disabling Use slash arguments in
Sites Administration > Server > HTTP.
Please note that ‘Slash arguments’ (using PATH_INFO) is needed for SCORM packages and multiple-file resources to display rightly. However, should your web server does not support ‘slash arguments’ and you are unable to configure it then this setting can be disabled to serve the purpose.
Issue#5: While Migrating Moodle to a new site or server, images are not being displayed and some links leading to the improper address.
In moodle, when we migrate the site on new server the main thing to be taken care of is the path of webroot which is called $CFG->wwwroot
You need to change the value of $CFG->wwwroot in config.php file of your site.
You will also have to change any absolute links stored in the database backup file using find and replace method.
We hope you find this brief article useful. Should you have any questions or require moodle development support, feel free to get in touch with us at AppYug anytime and our expert moodle professionals would be happy to assist further.