Recently Updated Pages

Search Engine Indexing

There are two settings in your Moodle related to search engine indexing of the site. These can be...

Add Site Admins through cfg.php tool

You can use the site configuration admin/cli/cfg.php tool to add a site admin if you know the use...

SQLInjection Protection

One of the most important things you can do if you are developing your own Moodle plugins is to e...

Web Service Course or Activity not Accessible

If you are using a web service function like enrol_manual_enrol_users to enrol users into a cours...

Web Service Responses in JSON Format

To get web service responses in JSON format (e.g. with the REST protocol), you can pass the query...

User Profile Field Select Options

If you need to get the list of user profile field select options for your plugin, you can query t...

Showing additional fields on user profile page

The fields displayed on the user profile page (public profile) are controlled by the code in lib/...

Office 365 Email Settings

A few tips when configuring an Office 365 email account for your SMTP server settings in Moodle: ...

Mahara and Google Analytics

You can add the Google Analytics script snippet to a configuration parameter called additionalhtm...

Language Pack Cache

You can purge the language pack cache through the Cache Administration page. Simply find the Lang...

Too Many Connections

When your Moodle database is overloaded you might see errors like this (MySQL/MariaDB) in your PH...

Setting up a Scheduled Task for your Plugin

Ther are two parts to setting up a scheduled task in your plugin. Create the task class under c...

Welcome

Welcome to the Moodle Wiki, where you can find all kinds of useful information related to Moodle ...

PHP Session Save Path

You can find the session.save_path through php info or using the command line: php -i | grep ses...

Learn PHP

PHP: The Right Way "PHP: The Right Way is an easy-to-read, quick reference for PHP popular codin...

PHP get key and value in loop

A cool little trick with foreach loops in PHP is you can get both the key and the value of associ...

PHP Syntax Check

Ever had to make a change to a PHP file on the fly only to discover you made a syntax error? E.g....

Assigning Site Administrations through the Database

The following steps can be used to add your user as a siteadmin in the database if required. Ste...

Undefined Property $webserviceprotocols

When this error occurs there is no result from the web service. In the PHP error log the followin...

Hide My Profile Messages

To hide the navigation: My Profile > Messages For all users: This is set by the config...

Back to top