Issue Details (XML | Word | Printable)

Key: MDL-13276
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Petr Skoda
Reporter: Mark Nielsen
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Fatal error in files/index.php

Created: 01/Feb/08 03:50 AM   Updated: 12/Feb/08 06:20 AM
Component/s: Lib
Affects Version/s: 1.8
Fix Version/s: 1.8.5

Participants: Mark Nielsen, Nicolas Martignoni and Petr Skoda
Security Level: None
QA Assignee: Nicolas Martignoni
Resolved date: 03/Feb/08
Affected Branches: MOODLE_18_STABLE
Fixed Branches: MOODLE_18_STABLE


 Description  « Hide
Here is the error:

Fatal error: Call to a member function get_id() on a non-object in /path/to/lib/blocklib.php on line 920

Here is the traceback:

    * line 919 of lib/blocklib.php: call to debugging()
    * line 453 of lib/blocklib.php: call to blocks_get_by_page()
    * line 2710 of lib/adminlib.php: call to blocks_setup()
    * line 47 of files/index.php: call to admin_externalpage_print_footer()
    * line 616 of files/index.php: call to html_footer()

To reproduce:

1. On the site home page, add a resource that links to a file or web page.
2. Click on the Choose or upload a file... button
3. Error is displayed at the bottom.

I haven't tested to see if this is still a problem in 1.9 or later, but the code is different post 1.8 due to MDL-9647

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda added a comment - 03/Feb/08 06:11 AM
fixed in cvs, thanks for the report

Nicolas Martignoni added a comment - 12/Feb/08 06:20 AM
Closing, verified on MOODLE_18_STABLE from CVS.