Ticket #5106 (closed defect (bug): wontfix)
MagpieRSS rss.php debug function is called out of scope
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | General | Version: | 2.3 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
MagpieRSS rss.php debug function is called out of scope
Repro: Always
- At ~ line 870 of rss.php set MAGPIE_DEBUG 2
- Add a sidebar feed widget
ACTUAL RESULT
Fatal error: Call to undefined function debug() in /var/www/wp/trunk/wp-includes/rss.php on line 466
EXPECTED RESULT
Debug output.
ADDITIONAL DETAILS
Function debug is part of RSSCache, and should be invoked as such. Though not sure where it and some other functions aren't static.
Not that it is likely that that RSSCache needs debugging, but I was lazy and was just going to use it in that file when I was investigating a different problem.
Attachments
Change History
comment:2
foolswisdom — 4 years ago
- Keywords has-patch removed
Otto42, thanks for taking a shot at fixing this.
Looking at your patch I don't think it will work. function debug contains:
{{$this->error("MagpieRSS [debug] $debugmsg", $lvl); }}
What is this? Surprised that passed your testing of the patch.
I think the debug function is specific to debugging the RSSCache, and otherwise a generic name like 'debug' is awkward.
- Status changed from new to closed
- Resolution set to wontfix
We have now switched to SimplePie.


Looks like debug wasn't supposed to be part of RSSCache to me. Try this patch on for size, see if it fixes the issue.