Help! Locked Out Of Moodle Due To SSL Error

Help! Locked Out Of Moodle Due To SSL Error

by Scott Custer -
Number of replies: 1

We have been using Moodle in our training center for 2+ years with no issues. Two days ago we suddenly began receiving the error below. From the research, I gather this is related to an SSL issue (although we've never had an SSL installed on this site). My host provider (HostGator) said to reconfigure the login module to use http:// instead of https://. However, because of the error below, it is impossible to login. Does anyone know of a way to log in to the system not from the login page?? I have full access to the server (although not a techie). Thanks. Here's the error:

An error occurred during a connection to www.immigrantnurse.com.

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)

Average of ratings: -
In reply to Scott Custer

Re: Help! Locked Out Of Moodle Due To SSL Error

by Guillermo Madero -

Someone must have changed the Use HTTPS for logins (loginhttps) value at Site administration > Security > HTTP security.

If you can access your DB via PhpMyAdmin, open the mdl_config table and look for the register with "loginhttps". It will surely have a value of "1" (one). Change it to "0" (zero), either by hand or with the following SQL statement:

UPDATE mdl_config SET value = 0 WHERE name = 'loginhttps';

Hope this helps!

--- edit.

At one post it was mentioned that adding the following line in config.php might also work (though it is an old post):

$CFG->loginhttps=false;