I can update users, but I can't install them.

I can update users, but I can't install them.

by Bilal Şentürk -
Number of replies: 12

Hello there,

I'm having trouble installing users with a CSV file. However, I cannot register manually. I cannot upload with a file.

Moodle 3.6.3
Attachment Image 2019-03-11 at 11.33.49 AM.png
Average of ratings: Useful (1)
In reply to Bilal Şentürk

Re: I can update users, but I can't install them.

by Ken Task -
Picture of Particularly helpful Moodlers

Go to Site Admin -> Server -> PHP Info.

Do you see anything related to APC for PHP there?

https://tracker.moodle.org/browse/MDL-43349

Turn on debugging and try to upload your .csv file again.   Let's see what Moodle is complaining about! smile

'spirit of sharing', Ken


In reply to Ken Task

Re: I can update users, but I can't install them.

by Bilal Şentürk -

Thank you first for replying. I saw this when I opened the debug.

debug message

In reply to Bilal Şentürk

Re: I can update users, but I can't install them.

by Ken Task -
Picture of Particularly helpful Moodlers

Have never run across:
undefined method cachestore_dummy::find_by_prefix()

What version of Moodle? and other details about setup ... OS moodledata ownerships/permissions ... etc. ... the typical stuff.

Can see on the bottom box looks like it's trying to purge cache session for current user.
You!!!  Interesting.

Go to:
Site administration -> Development ->Purge caches
Try either or bth ... all caches or selected.

Also check ...
Site administration -> Plugins -> Caching -> Configuration

If that doesn't clear the error and sessions still shows.
From command line, go to moodledata/sessions/ and manually remove all files
there.   That will kick you out and you'll have to login again.

'spirit of sharing', Ken


In reply to Ken Task

Re: I can update users, but I can't install them.

by Bilal Şentürk -

Version: 3.6.3

I did this but did not find a solution.

In reply to Bilal Şentürk

Re: I can update users, but I can't install them.

by Dom Seneque -

We got the error:


"Exception - Call to undefined method cachestore_dummy::find_by_prefix()"


For us the error was caused by having no cache stores in the Caching configuration page


> Site administration > Plugins > Caching >  Configuration


In the 'Stores' column the counts were all 0.


To fix it we:

1. Went to the .../moodledata/muc/ folder (via shell or ftp)

2. Renamed the 'config.php' file to 'config.php.old'

3. By doing this the system created a new 'config.php' with default settings

4. When we returned to > Site administration > Plugins > Caching >  Configuration screen the following were set

| File cache (Ready) (1 store)

| Session cache (Ready) (1 store)

| Static request cache (Ready) (1 store)


When we added a new user no exception message was displayed and the confirmation email was sent.


Hope this helps.

Average of ratings: Useful (11)
In reply to Dom Seneque

Re: I can update users, but I can't install them.

by Séverin TERRIER -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

A big thank you Dom for this solution.

Since updating from Moodle 3.5.4 to 3.5.5, on one of my Moodle sites, the CAS synchronisation task failed with the same error, blocking other scheduled tasks sad

And i had no cache store defined.

With your solution, the cache where defined, and the error disapeared, allowing all scheduled tasks to run well again smile

But thinking more, i think Moodle should ensure these cache stores are well defined, or better handle the case when they're not, to avoid such blocking error and things.

Séverin

In reply to Dom Seneque

Re: I can update users, but I can't install them.

by Zack At Work -
MVP! Thank you for sharing this, your solution did the trick.
In reply to Dom Seneque

Re: I can update users, but I can't install them.

by Samuel Bocanegra -

Funcionó perfectamente en la versión 3.8.3+. Muchas gracias!!

In reply to Dom Seneque

Re: I can update users, but I can't install them.

by Karim Hallar -


Thank you!!! For this thread, 

I ve migrate to a dedicated server and i was stuck with this error. YOU GOT IN THE BALD

In reply to Dom Seneque

Re: I can update users, but I can't install them.

by Marcos S Salvatierra -

Very thanks. Work fine and solve the issue. Occur when upgraded from 3.9.1 to 3.9.2+

Thanks again.