Opened 10 years ago
Closed 8 years ago
#2733 closed defect (bug) (fixed)
Importer: reading undefined array index with 'is_null()'
Reported by: | Offereins | Owned by: | netweb |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | 2.5.4 |
Component: | API - Importers | Keywords: | has-patch commit |
Cc: |
Description
While importing a phpBB forum with version 2.5.4 the following error appears repeatedly:
Notice: Undefined index: to_fieldname in \wp-content\plugins\bbpress\includes\admin\converter.php on line 898
I'm not sure if this is related to the fact that, previous to this point, I removed all plugin data with a bbPress reset, as well as that the import was interrupted and restarted with a purge.
Guessing this is probably not phpBB related, so suggested is to check the array value with isset()
and replace the ! is_null()
check, since isset()
also returns false
when the value equals to null. Patch for trunk attached.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Replace is_null with isset