catalyst / moodle-auth_outage

Planned, graduated user and admin friendly moodle outages
https://moodle.org/plugins/auth_outage
17 stars 33 forks source link

PHP Notice Error from bootstrap.php #196

Closed katcher closed 4 years ago

katcher commented 4 years ago

Server log displays following error when course is accessed moodle 3.9 Undefined variable: root in /public/home/39/auth/outage/bootstrap.php on line 74,

brendanheywood commented 4 years ago

thanks @katcher should be fixed now, please retest

katcher commented 4 years ago

Hi Brendan, giving a different error now! My site is in a subdir The error now: Undefined index: url in /public/home/39/auth/outage/bootstrap.php on line 74

for debug I printed out the parse_url of wwwroot Array ( [scheme] => https [host] => moodle-snbx.xxx.yy [path] => /39 )

I am guessing that path should be $path = $rooturl['path'];