Note: You are currently viewing documentation for Moodle 2.5. Up-to-date documentation for the latest stable version of Moodle may be available here: Blocked site secret.

Blocked site secret

From MoodleDocs
Revision as of 04:37, 28 February 2011 by jerome mouneyrac (talk | contribs)

Note: a secret is sometimes called siteidentifier.

Every site has a unique secret. If during the registration you see the message "your site secret is blocked", it means that the hub administrator blocked your secret. There are multiple reasons for the hub administrator to block a secret:

  • you were using a buggy third party custom script installing Moodle for you. Some scripts install many Moodle sites with the same secret. In this case these sites would be able to update each other registration and they would be able to spam under name of the other site using the same secret. A hub administrator will detect the problem easily and will most likely block the secret.
  • you were using a buggy version of the Mac Moodle package. There was an issue with the official Mac Moodle package that created the same secret for every site (http://tracker.moodle.org/browse/MDL-26619). Mooch blocked this secret.
  • someone stole your secret, the hub administrator detected it (weird behaviour on the hub or you alerted him), and he blocked the secret.

Resolving the issue

  1. you can follow the link indicated on the page where the warning is displayed. Your secret will be regenerated and you will be able to register again.
  2. if the above link didn't work and that you can not update your site to the indicated version on the warning page, the only solution is to edit your database (see bellow explanation) then register again:
Trying to register on Mooch:
mdl_config table: delete the row named siteidentifier.
mdl_registration_hubs: delete the row referencing Mooch
Trying to register on another hub:
mdl_registration_hubs: delete the row referencing this hub

Your secret has been blocked after you registered successfully

Note: If you were trying to register on Mooch you must first delete your current secret. Go in your database, in the mdl_config table look for siteidentifier and delete the row. Go to registration admin page and try to unregister from the Mooch/specific hub. The unregistration should fail (Access control error). Force unregistration option should then be displayed. Force the unregistration, you should now be able to register a new time.