"Invalid user" when creating new user

Dit forumbericht is verwijderd

Aantal antwoorden: 10
De inhoud van dit forumbericht is verwijderd en kan niet meer getoond worden.
Als antwoord op Verwijderde gebruiker

Re: "Invalid user" when creating new user

door Matteo Scaramuccia -

Ciao Pietro,
take a look at MDL-60824: please, update your 3.4 with the latest weekly available in https://download.moodle.org/releases/latest/ when the issue will be closed... hopefully starting from this weekend.

HTH,
Matteo

Gemiddelde van de beoordelingen: Useful (3)
Als antwoord op Matteo Scaramuccia

Dit forumbericht is verwijderd

De inhoud van dit forumbericht is verwijderd en kan niet meer getoond worden.
Als antwoord op Verwijderde gebruiker

Re: "Invalid user" when creating new user

door Ken Task -
Foto van Particularly helpful Moodlers

Another user having same issue:

https://moodle.org/mod/forum/discuss.php?d=361951#p1459576

I just installed a fresh 3.4+ the other day and have no such error?!!!!????

CentOS 7, PHP 7.0.18, MySQL 5.6.38
no such problems in adding user manually.

$release  = '3.4+ (Build: 20171116)'; // Human-friendly version name
$version  = 2017111300.01;              // 20171113      = branching date

Is yours an upgrade or frresh install?   Upgrade from what version and how?

Did you finish taking the tour ... that should pop-up when first visiting admin side or the front page after logging on IF using boost theme.

Have/Use any custom blocks on front page?   Have/use a custtom theme?

Kinda a stretch, but there is a new line in config.php that might come into play:

 'dbcollation' => '',

What does your's say?

When you run the following from moodlecode/admin/cli/

php mysql_compressed_rows.php -i

What does it say?

????? Strange!!!

'spirit of sharing', Ken


Gemiddelde van de beoordelingen:  -
Als antwoord op Ken Task

Re: "Invalid user" when creating new user

door Matteo Scaramuccia -

Hi Ken,
it depends on having custom profile fields too.

HTH,
Matteo

Gemiddelde van de beoordelingen: Useful (1)
Als antwoord op Matteo Scaramuccia

Re: "Invalid user" when creating new user

door Ken Task -
Foto van Particularly helpful Moodlers

Ahhhhh Soooooo!

Is there a tutorial on how to read/interpret a stack trace? :|

Now that I have looked at that again can figure out that is did hint at that - guess it would help to have some true programming experience with Moodle, huh.

Thanks, Matteo!

'spirit of sharing', Ken

Gemiddelde van de beoordelingen:  -
Als antwoord op Ken Task

Re: "Invalid user" when creating new user

door Matteo Scaramuccia -

Hi Ken,
unfortunately there's no "good" tutorial but common sense, experience and a bit of luck too: the more the code is structured the more the stack trace could give you hints at first glance.
Exceptions should give you the final reason for the failure and going back into the traced file/method names could give you an idea of the context creating that failure then you need to move into the code of that version to do the first insights, at least to create the steps to reproduce it.

Here, the first glance is a user id set to -1, that raises the invalid user error.
The rest of the story has been well told (and fixed!) by David in the issue above.

HTH,
Matteo

Gemiddelde van de beoordelingen: Useful (1)
Als antwoord op Matteo Scaramuccia

Re: "Invalid user" when creating new user

door Ken Task -
Foto van Particularly helpful Moodlers

Thanks, Matteo.   Hmmm .... looking for an 'easier button' isn't possible (to be expected really).  Ouch ... the combo of 'common sense, experience, and ... luck' .... well, I can get plenty of #2 there but sometimes lack 'common sense' (server 'common sense' isn't human) ... and of recent, no so 'lucky' in some cases.

So troubleshooting is a never ending journey.   But all that is what makes 'server life' more interesting, huh!

'spirit of sharing', Ken

Gemiddelde van de beoordelingen:  -
Als antwoord op Ken Task

Re: "Invalid user" when creating new user

door Matteo Scaramuccia -
So troubleshooting is a never ending journey. But all that is what makes 'server life' more interesting, huh!

Same here! Ja

Gemiddelde van de beoordelingen:  -
Als antwoord op Matteo Scaramuccia

Re: "Invalid user" when creating new user

door Kevin Leliard -
Moodle Guru's

Ken Task & Matteo Scaramuccia -> Just want to say thank you so much for the time and effort you put in to helping keep moodle up and running and to helping resolve issues for us clueless types.

Just installed the latest weekly fix as per your instructions and well ......   Its now working!!!!!  

Thanks so Much!





Bijlage Screen Shot 2017-11-25 at 00.39.21.png
Gemiddelde van de beoordelingen:  -