I am trying to update grade points for the user but i got stock at including gradelib.php which is located in lib folder.
After lot of time i found that CFG properties are not able to read.
This is how i am reading CFG proprties
I checked that $CFG->dirroot is configured in config.php. I don't have any idea how to debug this issue.
Can anyone please suggest?