#22425 closed defect (bug) (fixed)
Trunk Dashboard Throwing Fatal Error
| Reported by: | miqrogroove | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | External Libraries | Version: | 3.5 |
| Severity: | major | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Just installed trunk 3.5-beta2-22546 in debug mode. The dashboard Incoming Links widget displayed this:
Fatal error: Call to undefined method DOMElement::getLineNo() in wp-includes/SimplePie/Locator.php on line 280
Checked logs and found no other entries.
After navigating away and returning to the dashboard, error repeats.
Attachments (1)
Change History (8)
#3
@
14 years ago
Yup, that line is
if ($this->base_location < $link->getLineNo())
Probably should be
if ($this->base_location < ( method_exists( $link, 'getLineNo' ) ? $link->getLineNo() : 1 ) )
#4
@
14 years ago
rmccue added a fix a month ago on the github repo --
https://github.com/simplepie/simplepie/commit/75baa9651ee04c8c7d57702a8d5f1b7b6eb58605
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The method is only available since PHP 5.3.0.
There's a
method_exists()check in two places, but not in that one.Related: https://github.com/simplepie/simplepie/issues/223