Logged in as admin and I deleted some legacy files from the front page.
I then tried to visit some course pages but got the
"Coding error detected, it must be fixed by a programmer: Unknown property legacyclass of $PAGE. "
Logged out and back in again and problem persisted.
I can view the fron page but not any course pages.
Logged in as a non admin user and the problem persists.