Fatal error: Cannot redeclare class moodle_recordset in /var/www/moodle/lib/dml/moodle_recordset.php on line 37

Re: Fatal error: Cannot redeclare class moodle_recordset in /var/www/moodle/lib/dml/moodle_recordset.php on line 37

by Ken Task -
Number of replies: 0
Picture of Particularly helpful Moodlers

First, don't run what you run ... did some googling, however ... that could be dangerous ... and found a StackOverFlow discussion about Ubuntu:

https://stackoverflow.com/questions/708140/php-fatal-error-cannot-redeclare-class

While the above isn't specific to Moodle, there was one responder in the above discussion that suggested restarting fastcgi.   Since you are running nginx, didn't mention what running for PHP under nginx.

service php-fastcgi restart
Maybe???

The discussion also said that wasn't really a fix as the error might occur again later, but ....

Good luck!

'spirit of sharing', Ken