Problem in Block Messages

Problem in Block Messages

by Andreas R. -
Number of replies: 8

Hi

We´ve got a strange error. Since Moodle 3.2.1 - if a admin click on messages comes the error warning "Invalid user". The debug shows me:

Debug info: SELECT id FROM {user} WHERE id = ? AND deleted = ?
[array (
0 => '4597',
1 => 0,
)]
Error code: invaliduser
Stack trace:

    line 1526 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
    line 1502 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
    line 6188 of /lib/accesslib.php: call to moodle_database->get_record()
    line 282 of /user/lib.php: call to context_user::instance()
    line 203 of /message/classes/helper.php: call to user_get_user_details()
    line 182 of /message/classes/helper.php: call to core_message\helper::show_online_status()
    line 497 of /message/classes/api.php: call to core_message\helper::create_contact()
    line 108 of /message/index.php: call to core_message\api::get_conversations()


All other users (Role student, teacher) have no problems to call the messages. Any help for me?

Greets Andreas


Average of ratings: -
In reply to Andreas R.

Re: Problem in Block Messages

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers

Has user 4597 been suspended/deleted?

In reply to Jon Bolton

Re: Problem in Block Messages

by Andreas R. -

Hi Jon

Thanks for reply, i think yes. I´ve investigate in this and come back!


Greets Andy

In reply to Andreas R.

Re: Problem in Block Messages

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

Your code does not seem to match the 3.2.1 code.

The error message indicates:

"line 6188 of /lib/accesslib.php: call to moodle_database->get_record()"

But that line in 3.2.1 is not the one quoted. You can see it here:

Do you perhaps have some core modifications?

mike

In reply to Mike Churchward

Re: Problem in Block Messages

by Andreas R. -

Hi mike

We have no modification! I check the accesslib.php and can confirm what you wrote. The file is in every point the same. I will investigate some more and come back.


Greets

In reply to Andreas R.

Re: Problem in Block Messages

by leslie tindale -

Hi, 

I have the same problem....caused immediately after the upgrade to 3.2. Have tried everything , asked for help from all and sundry but no joy sad Wondering if there is a solution or do I try reinstalling  the entire moodle server .

In fact, our case is worse- we get the error for every user , even on clicking on "Messages"

any help would be really appreciated before we have to take the drastic step go a reinstall from scratch


In reply to leslie tindale

Re: Problem in Block Messages - Solved!

by Andreas R. -

Hi leslie

I make a upgrade to the last stable version today and the error is gone!


Greets Andy

In reply to Andreas R.

Re: Problem in Block Messages - Solved!

by remon saweris -

Dear,

I upgrade to the last one 3.2.1+ and still have the same problem for the old user but the new user can use message normally any suggestion please