by Ken Task.
By chance do you have something wordpress or other in front of your Moodle? ... and a moodle addon to interact with that?
So you never saw a form that allowed you to turn on debugging by doing directly to /admin/settings.php?section=debugging?
So your site is https://somesite.somenet.net/moodle/ and after you login as admin level, you use the browser url line which has something like:
https://somesite.somenet.net/moodle/
and add at the tail end ...
admin/settings.php?section=debugging
So now your URL line looks like:
https://somesite.somenet.net/moodle/admin/settings.php?section=debugging
All on the URL line. You hit enter from key board to tell browser to 'go'.
It just shows the same error and went no where.
Strange ... very strange.
Let's add these lines to your config.php file:
@error_reporting(E_ALL | E_STRICT); // NOT FOR PRODUCTION SERVERS!
@ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
$CFG->debug = (E_ALL | E_STRICT); // === DEBUG_DEVELOPER - NOT FOR PRODUCTION SERVERS!
$CFG->debugdisplay = 1; // NOT FOR PRODUCTION SERVERS!
Do NOT add those lines to the bottom of the file beyond the comment about php closing tag.
Add them just above those comments.
No need to restart anything ... just go to site and login ... now let's see what Moodle might say.
The query shows (at least the rows asked for) that you DB is a 3.8.x ... a 3.9 database has
mysql> select * from mdl_config where name like '%license%';
+-----+-------------------------+-------------------------------------------------------------------------+
| id | name | value |
+-----+-------------------------+-------------------------------------------------------------------------+
| 28 | licenses | unknown,allrightsreserved,public,cc,cc-nd,cc-nc-nd,cc-nc,cc-nc-sa,cc-sa |
| 29 | sitedefaultlicense | unknown |
| 152 | rememberuserlicensepref | 1 |
+-----+-------------------------+-------------------------------------------------------------------------+
Since you've had to essentially replace EVERYTHING .. did you check ownerships/permissions again on files that were restored to site?
About caches ... time to get nasty ... use whatever you have to browse files in your site, and go to moodledata directory. In there there is a cache directory. Remove the contents of ... again ... remove the contents of ... the cache directory. Do same for the localcache directory and for the sessions directory (if that exist).
I'll bet next time you'll take the time to check Site Admin Menu, Server, Environment to see if you server meets specs. Too bad that's link to environment isn't on the notifications 'nag screen' to remind admin user to do so (that's been suggested but ....).
'SoS', Ken