Error message when adding a new course

Error message when adding a new course

by Frank Shelton -
Number of replies: 1

I am seeing this error message when clicking on add course or add user.

Exception - Using $this when not in object context


My web host provider recently updated to the stable version of PHP 7.   Is that a cause?  Is there anyway to debug?

Average of ratings: -
In reply to Frank Shelton

Re: Error message when adding a new course

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Frank,
you're probably running a version of Moodle below 3.2: it looks like your hosting provider updated PHP from 7.0 to 7.1.

Ask your hosting provider to change PHP version back to 7.0, update your Moodle instance to the latest 3.5 and then ask for the PHP 7.1 update.

HTH,
Matteo