Opened 12 years ago
Closed 10 years ago
#2733 closed defect (bug) (fixed)
Importer: reading undefined array index with 'is_null()'
| Reported by: | Offereins | Owned by: | netweb |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | API - Importers | Version: | 2.5.4 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Replace is_null with isset