Multiple records found, only one record expected.

Multiple records found, only one record expected.

by Willy Castro -
Number of replies: 1

Thanks in advance for any contribution on this issue. 

Suddenly in my moodle I lost the admin access, for all the admin users. Professors an students are working fine. 

When I log in as admin user the next is a blank page. At the bottom I find the next message Multiple records found, only one record expected.  

I have no access to any admin menu/options. 

Version: 3.9.3 (20201109)

Linux Debian. Last distributions of MySQL

 PHP  7.3.19-1

Best!

Willy



Average of ratings: -
In reply to Willy Castro

Re: Multiple records found, only one record expected.

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Enable debugging by inserting the following lines to config.php:

@error_reporting(E_ALL | E_STRICT);
@ini_set('display_errors', '1');
$CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;

Put these before the require_once(__DIR__ . '/lib/setup.php'); line. This should show more details with the "Multiple records found" error.