Opened 10 years ago
Closed 10 years ago
#2952 closed defect (bug) (wontfix)
Fatal error: `BBP_Login_Widget::widget()` with PHP 5.2 and WordPress /trunk
| Reported by: | netweb | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | API - Widgets | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
See Job #252.33 https://travis-ci.org/ntwb/bbPress/jobs/130158056
Fatal error: Declaration of BBP_Login_Widget::widget() must be compatible with that of WP_Widget::widget() in /tmp/wordpress/src/wp-content/plugins/bbPress/src/includes/common/widgets.php on line 217 Fatal error: Declaration of BBP_Login_Widget::widget() must be compatible with that of WP_Widget::widget() in /tmp/wordpress/src/wp-content/plugins/bbPress/src/includes/common/widgets.php on line 217
Related: changeset:37425/#WP35981
Quoting kraftbj:
For plugin authors: If your widget does not include a widget() function, you'll need to add an noop function to prevent fatals.
Change History (2)
#1
@
10 years ago
- Keywords close added; needs-patch removed
- Priority high → normal
- Severity major → normal
#2
@
10 years ago
- Keywords close removed
- Milestone 2.6
- Resolution → wontfix
- Status new → closed
The changes upstream have now been reverted, closing this as wontfix:
Via changeset:37648:
Widgets: Revert changeset:37425 and changeset:37427.
The change can cause fatal errors under certain conditions, like when the subclass has a different function signature for widget() or doesn't even implement the method.
See #35981.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The upstream change is going to be reverted, adding
closehere though will keep open until the revert has taken place.See https://core.trac.wordpress.org/ticket/35981#comment:11 & #comment:12 for more discussion/reference