guest access - moodle 3.7.2 - disable form

guest access - moodle 3.7.2 - disable form

Napisane przez: Karina Compta ()
Liczba odpowiedzi: 4

We have updated to the latest moodle version (3.7.2), we have available guest access, but since this version after you click on guest access one form is opened where you have to complete firstname, lastname and email. When you complete that information at first time there is no problem, but when you want to visit again one open course and want to enter as guest, again that form is presented, and if you want to complete again the information asked that is not possible because moodle take email like email just registered.

I want to disable that form like in older version, we don't need that information and that is causing problems and also that is adding blank information in user´s list.

Thanks.



Załącznik ($a)
W odpowiedzi na Karina Compta

Re: guest access - moodle 3.7.2 - disable form

Napisane przez: Ken Task ()
Obraz Particularly helpful Moodlers

Am going to venture a guess, that before the upgrade to 3.7.2, this could have been a pre-existing problem.

When Moodle first installed, there were only 2 users ... user id 1 guest, and user id 2, the person making the initial install.

Do a query of your DB:

mysql> select id,username,firstname,lastname,email from mdl_user where username='guest';

You should see it's different than any other account.  Note below, a guest account on a 3.7.x, never edited, has no lastname and really won't be listed when doing anything with users in the Moodle Admin UX:

+----+----------+------------+----------+----------------+
| id | username | firstname  | lastname | email          |
+----+----------+------------+----------+----------------+
|  1 | guest    | Guest user |          | root@localhost |

That's unless, someone in the past, had changed the user id 2.

So do you have a user ID 1?   Is that still 'guest'?

'SoS', Ken

W odpowiedzi na Ken Task

Re: guest access - moodle 3.7.2 - disable form

Napisane przez: Karina Compta ()
Hello Ken, we don't have a user ID 1, there are many (more than 200)  but not 1
We have two different moodle installations, 3.6.3 and 3.7.2

With 3.6.3 we don't have problems, and we did a query as you suggested and we got | 1 | guest | Guest user | | root@localhost |

We did a query of 3.7.2 DB (the installation where we are having problem) and we didn't get guest 1

guest
Karina.
W odpowiedzi na Karina Compta

Re: guest access - moodle 3.7.2 - disable form

Napisane przez: Ken Task ()
Obraz Particularly helpful Moodlers

The reason you see sooooooo many users as guest ... some filled out what was missing to gain access as Guest (they actually modified the account ... notice you blackened some EMail addresses).

To be honest, don't think one can insert a user ID row 1 ... what account is at userid 1?   Maybe that user really isn't active any more or could be wiped out and the data replaced with true Guest info.

Even if you changed that row to guest, the password for it is special ... what one sees there is unique to each site I think and basically is a 'blank' password ... even though you see data in there!

Could be a way to gen a blank password via command line ... but that's beyond me!  Maybe someone knows!

How many courses/accounts (not the errant guest) do you have in the 3.7? 

Unless someone else can come up with a better idea (hope so!) ... you might have to resort to standing up a fresh 3.7 with only guest/admin accounts, then restoring all the courses with users to get a usable system. :|  Double checking your first course restored that had guest access enabled to see if function as it should.

'SoS', Ken

W odpowiedzi na Ken Task

Re: guest access - moodle 3.7.2 - disable form

Napisane przez: Ken Task ()
Obraz Particularly helpful Moodlers

Just had an idea which might work ... if ...

Is your 3.7.x a clone of your 3.6.x?   If so, the passwords don't change on clones/upgrades so am guessing you could copy the text you see in the password column of the 3.6.x and paste it into the password column of a user id 1 guest account.

Even if that didn't work ... no harm done ... cept your still stuck with the issue.

But if it did ... that would save a lot of time and work!

Fingers crossed!

'SoS', Ken