$PAGE->context accessed before it was known.

$PAGE->context accessed before it was known.

by Danny Wahl -
Number of replies: 4
Coding error detected, it must be fixed by a programmer: $PAGE->context accessed before it was known.

Stack trace:
  • line 329 of /lib/pagelib.php: coding_exception thrown
  • line 583 of /lib/pagelib.php: call to moodle_page->magic_get_context()
  • line 1219 of /lib/weblib.php: call to moodle_page->__get()
  • line 826 of /lib/pagelib.php: call to format_string()
  • line 37 of /course/delete.php: call to moodle_page->set_title()
-----

I tried to delete a course from category:Miscellaneous -> 'Moodle 2 Test Course' as site Administrator. Currently on: Moodle 2.0 Preview 4+ (Build: 20100712)
Average of ratings: -
In reply to Danny Wahl

Re: $PAGE->context accessed before it was known.

by dina patil -
Yes i am having the same problem ???
Any help?
In reply to dina patil

Re: $PAGE->context accessed before it was known.

by Andrew Davis -
Hello. I have raised a bug to have this fixed. MDL-23737
In reply to Andrew Davis

Re: $PAGE->context accessed before it was known.

by dina patil -
Thanks Mr. Andrew.

I am getting this error when i am trying deleting the course of any category.

Please see the scree shot (attached) ,

Thanks
Mangesh

Attachment error_on_delete_course.PNG
In reply to Danny Wahl

Re: $PAGE->context accessed before it was known.

by Sam Hemelryk -
Hi guys,

This issue should have been resolved in updates that occurred on 3rd Aug 10.
I've tested this, and marked the issue resolved now. If you CVS update and find you are still getting the error please reopen the issue.

Cheers
Sam