Coding error detected, it must be fixed by a programmer: Invalid property requested, or the property does not has a default value.

Coding error detected, it must be fixed by a programmer: Invalid property requested, or the property does not has a default value.

by Satvir Singh -
Number of replies: 4

Moodle is being installed on Windows Server 2012 R12, IIS 8.5. We are facing problem at page

https://moodle.ptu.ac.in/user/editadvanced.php?id=2

Message being displayed is 

Coding error detected, it must be fixed by a programmer: Invalid property requested, or the property does not has a default value.

More information about this error

Continue

 
Attachment ErrorPage.jpg
Average of ratings: -
In reply to Satvir Singh

Re: Coding error detected, it must be fixed by a programmer: Invalid property requested, or the property does not has a default value.

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Which Moodle version?

Can you turn on Debugging - all the way to Developer - and do it again. We should see extra information.
In reply to Howard Miller

Re: Coding error detected, it must be fixed by a programmer: Invalid property requested, or the property does not has a default value.

by Satvir Singh -
Sorry to miss that
Latest version as on date MOODLE 3.10.1+

Current stage is Installation phase. I am unable to enable debugging.
In reply to Satvir Singh

Re: Coding error detected, it must be fixed by a programmer: Invalid property requested, or the property does not has a default value.

by Matt T -
Follow the instructions in the link Howard sent you under the heading 'What to do if you cannot get to the admin screens'.
In reply to Satvir Singh

Re: Coding error detected, it must be fixed by a programmer: Invalid property requested, or the property does not has a default value.

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

You can enable debugging by adding the following lines to config.php:

@error_reporting(E_ALL | E_STRICT);
@ini_set('display_errors', '1');
$CFG->debug = (E_ALL | E_STRICT);
$CFG->debugdisplay = 1;

These should appear before the require_once(__DIR__ . '/lib/setup.php'); line at the end. Hopefully the error will then have more detail to help troubleshoot the issue.