Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.2
-
None
-
None
-
Windows 2008 R2; IIS 7.5, MS-SQL 2008, FastC
-
Microsoft SQL
-
MOODLE_22_STABLE
-
-
Description
When I try to delete a course or try to restore Moodle 1.9 or 2.x backup I get the following error;
Fatal error: Cannot redeclare callback_social_load_content() (previously declared in S:\inetpub\wwwroot\moodle\course\format\easypost\lib.php:36) in S:\inetpub\wwwroot\moodle\course\format\social\lib.php on line 38
The course name is created from the failed restore when I click on it I get the following error;
Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
More information about this error
Debug info: Argument 2 passed to has_capability() must be an instance of context, boolean given, called in S:\inetpub\wwwroot\moodle\course\lib.php on line 1501 and defined
Stack trace:
line 365 of \lib\setuplib.php: coding_exception thrown
line 348 of \lib\accesslib.php: call to default_error_handler()
line 1501 of \course\lib.php: call to has_capability()
line 241 of \course\format\topics\format.php: call to print_section()
line 240 of \course\view.php: call to require()