I am in dire need of assistance.
A couple of days ago I enabled maintenance mode on my Moodle 3.2.1 install. Little did I realize it doesn't work like I am used to and, of course, I was totally locked out of my site. I made no changes while the site was in maintenance mode.
I seem to have more than one problem in trying to get it back and I am losing valuable development time. Any help here would be greatly appreciated. I am out of ideas.
Problem 1: The cli scripts won't run because I get the following errors:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in [path_to_site]/lib/setup.php on line 783
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in [path_to_site]/lib/setup.php on line 783
Parse error: syntax error, unexpected T_STRING in [path_to_site]/lib/setup.php on line 783
Line 783 of setup.php, which I have not modified is this:
\core\session\manager::start();
Problem 2: Disabled maintenance mode and still can't get admin access:
I tried a few solutions to the problem in the forum. Adding the line to config.php didn't seem to anything (must have been for 2.x?). I deleted the cache directories from the Moodle data directories. Finally, I edited the database entry in mdl_config and set maintenance_enabled to zero.
Now, I believe maintenance is not enabled, because I can see the class I am developing at the site root, but when I try to go to mysite/admin, I am redirected to mysite/login/index.php which only allows guest access.
Other details:
Originally I had this installed under a joomla site with Joomdle installed and I enabled single-sign-on. I have moved it to be accessible through its own sub-domain but it hasn't made a difference.
I am using the Campus theme and I disabled the "local login" button, but did not disable "all logins".
The site is hosted with Webfaction, running under php 7 and it can be viewed at elearning.disctraininghub.com
Let me know if there is any more information I can provide.