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

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

Bilal Şentürk -
回帖数: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
附件 Image 2019-03-11 at 11.33.49 AM.png
平均分:Useful (1)
回复Bilal Şentürk

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

Ken Task -
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! 微笑

'spirit of sharing', Ken


回复Ken Task

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

Bilal Şentürk -

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

debug message

回复Bilal Şentürk

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

Ken Task -
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


回复Ken Task

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

Bilal Şentürk -

Version: 3.6.3

I did this but did not find a solution.

回复Bilal Şentürk

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

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.

回复Dom Seneque

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

Séverin TERRIER -
Documentation writers的头像 Particularly helpful Moodlers的头像 Testers的头像 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 伤心

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 微笑

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

回复Dom Seneque

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

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