Full information:
I had to move Moodle to a new Ubuntu server. The old server corrupted and I had been temporarily running Moodle from an Instant VM Recovery. The new server is the same OS, same version as the old one. While I had to move anyway, I figured it was a good time to upgrade Moodle. Because I am patently insane, I decided to also move to a new database server. The old mySQL database was on Windows (not my idea), but the new one is on Ubuntu. I host 7 different instances of Moodle on this server. Each school district used to have their own and now I host them all on this server. So here's what I did:
Old Version - 2.5.2
Intermediate Version - 2.9.5
New version - 3.0.2
So, here's basically what I did.
1 - Move files from old server to new server and make sure everything works.
2 - Move database to new server (export/import via command line).
3 - Change config.php file and make sure everything works.
4 - Backup config.php file and empty Moodle directory.
5 - Copy in config.php file and Moodle 2.9.5 files.
6 - Run upgrade from CLI. Check to make sure everything works.
7 - Empty Moodle directory.
8 - Copy in config.php file and Moodle 3.0.2 files.
9 - Run upgrade from CLI. Check to make sure everything works.
Moodle runs great. It's significantly faster than before (login time went from ~45 seconds to right around ~2 seconds). I can get to all the courses, I can add users and change themes. From the outside, everything is fantastic. Truly better than I could have expected.
Unfortunately, on the admin side not everything is as nice as it seems on the surface. I'm nearly certain I have something wrong with the server for this because I have the exact same error for each of my Moodle instances. When I try to go to the Site Administration > Notifications link, it either comes up blank, or with a 500 error. Same if I go to the Plugins and try to do an upgrade or change to any plugins. Here are the errors being logged by Apache.
[Sun Apr 10 21:37:58.083892 2016] [:error] [pid 28356] [client 207.46.13.105:26737] PHP Fatal error: Cannot redeclare class moodle_database in /var/www/html/moodle_maisd_net/macc/lib/dml/moodle_database.php on line 63
[Sun Apr 10 21:48:47.670494 2016] [:error] [pid 28354] [client 180.76.15.21:44013] PHP Fatal error: Cannot redeclare class moodle_recordset in /var/www/html/moodle_maisd_net/macc/lib/dml/moodle_recordset.php on line 37
[Sun Apr 10 22:31:27.441666 2016] [:error] [pid 28580] [client 23.236.246.2:58387] PHP Fatal error: Cannot redeclare class moodle_database in /var/www/html/moodle_maisd_net/macc/lib/dml/moodle_database.php on line 63, referer: http://moodle.maisd.net/
[Mon Apr 11 12:49:26.524910 2016] [:error] [pid 889] [client 96.36.52.2:45014] Default exception handler: Coding error detected, it must be fixed by a programmer: No further information available for this branch Debug: \nError code: codingerror\n* line 128 of /lib/ajax/getnavbranch.php: coding_exception thrown\n, referer: http://moodle.maisd.net/greenville/course/view.php?id=111
If I turn debugging on in Moodle (I can get to that page), I get this:
Fatal error: Cannot redeclare class lesson in /var/www/html/moodle_maisd_net/macc/mod/lesson/locallib.php on line 0
So my question is this, what did I miss? Did I forget to install something for PHP?
Any help is greatly appreciated.